@pnp/cli-microsoft365 12.0.0-beta.1752794 → 12.0.0-beta.4ac11a7
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/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +15 -1
- package/dist/m365/spfx/commands/SpfxCompatibilityMatrix.js +15 -0
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.24.0-rc.0.js +19 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012021_TSC_excludeDirectories.js +43 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN027002_OVERRIDES_qs.js +33 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN027003_OVERRIDES_uuid.js +33 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.24.0-rc.0.js +77 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +12 -11
- package/dist/m365/spo/commands/navigation/navigation-node-add.js +74 -120
- package/dist/m365/spo/commands/navigation/navigation-node-get.js +4 -13
- package/dist/m365/spo/commands/navigation/navigation-node-set.js +53 -114
- package/dist/m365/spo/commands/page/page-unpublish.js +53 -0
- package/dist/m365/spo/commands/sitescript/sitescript-add.js +22 -37
- package/dist/m365/spo/commands/sitescript/sitescript-get.js +9 -26
- package/dist/m365/spo/commands/sitescript/sitescript-list.js +5 -0
- package/dist/m365/spo/commands/sitescript/sitescript-remove.js +9 -33
- package/dist/m365/spo/commands/sitescript/sitescript-set.js +29 -56
- package/dist/m365/spo/commands.js +1 -0
- package/dist/m365/spp/commands/contentcenter/contentcenter-list.js +5 -0
- package/dist/m365/spp/commands/model/model-get.js +25 -45
- package/dist/m365/spp/commands/model/model-list.js +12 -23
- package/dist/m365/spp/commands/model/model-remove.js +25 -45
- package/dist/utils/spo.js +39 -0
- package/docs/docs/cmd/login.mdx +15 -2
- package/docs/docs/cmd/spo/navigation/navigation-node-add.mdx +45 -30
- package/docs/docs/cmd/spo/navigation/navigation-node-get.mdx +64 -42
- package/docs/docs/cmd/spo/navigation/navigation-node-set.mdx +10 -8
- package/docs/docs/cmd/spo/page/page-unpublish.mdx +63 -0
- package/docs/docs/cmd/teams/tab/tab-add.mdx +19 -0
- package/docs/docs/cmd/teams/tab/tab-get.mdx +19 -0
- package/docs/docs/cmd/teams/tab/tab-list.mdx +19 -0
- package/docs/docs/cmd/teams/tab/tab-remove.mdx +21 -0
- package/docs/docs/cmd/viva/engage/engage-message-add.mdx +17 -0
- package/docs/docs/cmd/viva/engage/engage-message-get.mdx +17 -0
- package/docs/docs/cmd/viva/engage/engage-message-list.mdx +17 -0
- package/docs/docs/cmd/viva/engage/engage-message-remove.mdx +19 -0
- package/package.json +4 -6
|
@@ -16,6 +16,9 @@ m365 spo navigation node set [options]
|
|
|
16
16
|
`-u, --webUrl <webUrl>`
|
|
17
17
|
: Absolute URL of the site.
|
|
18
18
|
|
|
19
|
+
`-l, --location <location>`
|
|
20
|
+
: Navigation type where the node is located. Available options: `QuickLaunch`, `TopNavigationBar`.
|
|
21
|
+
|
|
19
22
|
`--id <id>`
|
|
20
23
|
: Id of the navigation node.
|
|
21
24
|
|
|
@@ -26,10 +29,7 @@ m365 spo navigation node set [options]
|
|
|
26
29
|
: New URL of the navigation node. Specify an empty string `""` to update the navigation label to a linkless label.
|
|
27
30
|
|
|
28
31
|
`--audienceIds [audienceIds]`
|
|
29
|
-
: Comma-separated list of group IDs that will be used for audience targeting.
|
|
30
|
-
|
|
31
|
-
`--isExternal [isExternal]`
|
|
32
|
-
: Whether the navigation node points to an external URL. Valid values: `true` or `false`.
|
|
32
|
+
: Comma-separated list of group IDs that will be used for audience targeting. Specify an empty string `""` to clear this value. The limit is 10 ids per navigation node.
|
|
33
33
|
|
|
34
34
|
`--openInNewWindow [openInNewWindow]`
|
|
35
35
|
: Open the URL in a new window. Valid values: `true` or `false`.
|
|
@@ -41,30 +41,32 @@ m365 spo navigation node set [options]
|
|
|
41
41
|
|
|
42
42
|
To enable/disable audience targeting for the navigation bar, use the [`spo web set`](../web/web-set.mdx) command.
|
|
43
43
|
|
|
44
|
+
SharePoint doesn't allow changing the URL of a navigation node pointing to a page in the current site into an external URL. In that case, the URL isn't updated and no error is returned. To point such a node to an external URL, remove the node using [`spo navigation node remove`](./navigation-node-remove.mdx) and add it again using [`spo navigation node add`](./navigation-node-add.mdx).
|
|
45
|
+
|
|
44
46
|
## Examples
|
|
45
47
|
|
|
46
48
|
Updates the title of a navigation node
|
|
47
49
|
|
|
48
50
|
```sh
|
|
49
|
-
m365 spo navigation node set --webUrl https://contoso.sharepoint.com/sites/marketing --id 2209 --title "Pictures"
|
|
51
|
+
m365 spo navigation node set --webUrl https://contoso.sharepoint.com/sites/marketing --location TopNavigationBar --id 2209 --title "Pictures"
|
|
50
52
|
```
|
|
51
53
|
|
|
52
54
|
Updates the URL of a navigation node
|
|
53
55
|
|
|
54
56
|
```sh
|
|
55
|
-
m365 spo navigation node set --webUrl https://contoso.sharepoint.com/sites/marketing --id 2209 --url "https://www.microsoft.com"
|
|
57
|
+
m365 spo navigation node set --webUrl https://contoso.sharepoint.com/sites/marketing --location QuickLaunch --id 2209 --url "https://www.microsoft.com"
|
|
56
58
|
```
|
|
57
59
|
|
|
58
60
|
Updates audience targeting of a navigation node with 3 groups
|
|
59
61
|
|
|
60
62
|
```sh
|
|
61
|
-
m365 spo navigation node set --webUrl https://contoso.sharepoint.com/sites/marketing --id 2209 --audienceIds "61f78c73-f71a-471e-a3b9-15daa936e200,9524e6b4-e663-44fe-b179-210c963e37e7,c42b8756-494d-4141-a575-45f01320e26a"
|
|
63
|
+
m365 spo navigation node set --webUrl https://contoso.sharepoint.com/sites/marketing --location QuickLaunch --id 2209 --audienceIds "61f78c73-f71a-471e-a3b9-15daa936e200,9524e6b4-e663-44fe-b179-210c963e37e7,c42b8756-494d-4141-a575-45f01320e26a"
|
|
62
64
|
```
|
|
63
65
|
|
|
64
66
|
Updates the navigation node so that it opens in a new window
|
|
65
67
|
|
|
66
68
|
```sh
|
|
67
|
-
m365 spo navigation node set --webUrl https://contoso.sharepoint.com/sites/marketing --id 2209 --openInNewWindow true
|
|
69
|
+
m365 spo navigation node set --webUrl https://contoso.sharepoint.com/sites/marketing --location QuickLaunch --id 2209 --openInNewWindow true
|
|
68
70
|
```
|
|
69
71
|
|
|
70
72
|
## Response
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import Global from '../../_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# spo page unpublish
|
|
6
|
+
|
|
7
|
+
Unpublishes a modern page
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 spo page unpublish [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-u, --webUrl <webUrl>`
|
|
19
|
+
: URL of the site where the page is located.
|
|
20
|
+
|
|
21
|
+
`-n, --name <name>`
|
|
22
|
+
: Name of the page.
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
<Global />
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## Permissions
|
|
29
|
+
|
|
30
|
+
<Tabs>
|
|
31
|
+
<TabItem value="Delegated">
|
|
32
|
+
|
|
33
|
+
| Resource | Permissions |
|
|
34
|
+
|------------|----------------|
|
|
35
|
+
| SharePoint | AllSites.Write |
|
|
36
|
+
|
|
37
|
+
</TabItem>
|
|
38
|
+
<TabItem value="Application">
|
|
39
|
+
|
|
40
|
+
| Resource | Permissions |
|
|
41
|
+
|------------|---------------------|
|
|
42
|
+
| SharePoint | Sites.ReadWrite.All |
|
|
43
|
+
|
|
44
|
+
</TabItem>
|
|
45
|
+
</Tabs>
|
|
46
|
+
|
|
47
|
+
## Examples
|
|
48
|
+
|
|
49
|
+
Unpublish a modern page
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
m365 spo page unpublish --webUrl https://contoso.sharepoint.com/sites/Marketing --name "Style guide.aspx"
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Unpublish a modern page in a subfolder
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
m365 spo page unpublish --webUrl https://contoso.sharepoint.com/sites/Marketing --name "/Styles/Guide.aspx"
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Response
|
|
62
|
+
|
|
63
|
+
The command won't return a response on success.
|
|
@@ -46,6 +46,25 @@ m365 teams tab add [options]
|
|
|
46
46
|
|
|
47
47
|
The corresponding app must already be installed in the team.
|
|
48
48
|
|
|
49
|
+
## Permissions
|
|
50
|
+
|
|
51
|
+
<Tabs>
|
|
52
|
+
<TabItem value="Delegated">
|
|
53
|
+
|
|
54
|
+
| Resource | Permissions |
|
|
55
|
+
|-----------------|-----------------|
|
|
56
|
+
| Microsoft Graph | TeamsTab.Create |
|
|
57
|
+
|
|
58
|
+
</TabItem>
|
|
59
|
+
<TabItem value="Application">
|
|
60
|
+
|
|
61
|
+
| Resource | Permissions |
|
|
62
|
+
|-----------------|-----------------|
|
|
63
|
+
| Microsoft Graph | TeamsTab.Create |
|
|
64
|
+
|
|
65
|
+
</TabItem>
|
|
66
|
+
</Tabs>
|
|
67
|
+
|
|
49
68
|
## Examples
|
|
50
69
|
|
|
51
70
|
Add teams tab for website.
|
|
@@ -40,6 +40,25 @@ m365 teams tab get [options]
|
|
|
40
40
|
|
|
41
41
|
You can only retrieve tabs for teams of which you are a member.
|
|
42
42
|
|
|
43
|
+
## Permissions
|
|
44
|
+
|
|
45
|
+
<Tabs>
|
|
46
|
+
<TabItem value="Delegated">
|
|
47
|
+
|
|
48
|
+
| Resource | Permissions |
|
|
49
|
+
|-----------------|--------------------------------------------------------------|
|
|
50
|
+
| Microsoft Graph | Channel.ReadBasic.All, Team.ReadBasic.All, TeamsTab.Read.All |
|
|
51
|
+
|
|
52
|
+
</TabItem>
|
|
53
|
+
<TabItem value="Application">
|
|
54
|
+
|
|
55
|
+
| Resource | Permissions |
|
|
56
|
+
|-----------------|--------------------------------------------------------------|
|
|
57
|
+
| Microsoft Graph | Channel.ReadBasic.All, Team.ReadBasic.All, TeamsTab.Read.All |
|
|
58
|
+
|
|
59
|
+
</TabItem>
|
|
60
|
+
</Tabs>
|
|
61
|
+
|
|
43
62
|
## Examples
|
|
44
63
|
|
|
45
64
|
Get a Microsoft Teams Tab with the specified ID.
|
|
@@ -30,6 +30,25 @@ You can only retrieve tabs for teams of which you are a member.
|
|
|
30
30
|
|
|
31
31
|
Tabs _Conversations_ and _Files_ are present in every team and therefore not included in the list of available tabs.
|
|
32
32
|
|
|
33
|
+
## Permissions
|
|
34
|
+
|
|
35
|
+
<Tabs>
|
|
36
|
+
<TabItem value="Delegated">
|
|
37
|
+
|
|
38
|
+
| Resource | Permissions |
|
|
39
|
+
|-----------------|-------------------|
|
|
40
|
+
| Microsoft Graph | TeamsTab.Read.All |
|
|
41
|
+
|
|
42
|
+
</TabItem>
|
|
43
|
+
<TabItem value="Application">
|
|
44
|
+
|
|
45
|
+
| Resource | Permissions |
|
|
46
|
+
|-----------------|-------------------|
|
|
47
|
+
| Microsoft Graph | TeamsTab.Read.All |
|
|
48
|
+
|
|
49
|
+
</TabItem>
|
|
50
|
+
</Tabs>
|
|
51
|
+
|
|
33
52
|
## Examples
|
|
34
53
|
|
|
35
54
|
List all tabs in a Microsoft Teams channel.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '../../_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# teams tab remove
|
|
4
6
|
|
|
@@ -28,6 +30,25 @@ m365 teams tab remove [options]
|
|
|
28
30
|
|
|
29
31
|
<Global />
|
|
30
32
|
|
|
33
|
+
## Permissions
|
|
34
|
+
|
|
35
|
+
<Tabs>
|
|
36
|
+
<TabItem value="Delegated">
|
|
37
|
+
|
|
38
|
+
| Resource | Permissions |
|
|
39
|
+
|-----------------|---------------------------|
|
|
40
|
+
| Microsoft Graph | TeamsTab.ReadWriteForTeam |
|
|
41
|
+
|
|
42
|
+
</TabItem>
|
|
43
|
+
<TabItem value="Application">
|
|
44
|
+
|
|
45
|
+
| Resource | Permissions |
|
|
46
|
+
|-----------------|-------------------------------|
|
|
47
|
+
| Microsoft Graph | TeamsTab.ReadWriteForTeam.All |
|
|
48
|
+
|
|
49
|
+
</TabItem>
|
|
50
|
+
</Tabs>
|
|
51
|
+
|
|
31
52
|
## Examples
|
|
32
53
|
|
|
33
54
|
Removes a tab from the specified channel. Will prompt for confirmation
|
|
@@ -41,6 +41,23 @@ In order to use this command, you need to grant the Microsoft Entra application
|
|
|
41
41
|
|
|
42
42
|
:::
|
|
43
43
|
|
|
44
|
+
## Permissions
|
|
45
|
+
|
|
46
|
+
<Tabs>
|
|
47
|
+
<TabItem value="Delegated">
|
|
48
|
+
|
|
49
|
+
| Resource | Permissions |
|
|
50
|
+
|----------|--------------------|
|
|
51
|
+
| Yammer | user_impersonation |
|
|
52
|
+
|
|
53
|
+
</TabItem>
|
|
54
|
+
<TabItem value="Application">
|
|
55
|
+
|
|
56
|
+
This command does not support application permissions.
|
|
57
|
+
|
|
58
|
+
</TabItem>
|
|
59
|
+
</Tabs>
|
|
60
|
+
|
|
44
61
|
## Examples
|
|
45
62
|
|
|
46
63
|
Replies to a message with the ID 1231231231.
|
|
@@ -29,6 +29,23 @@ In order to use this command, you need to grant the Microsoft Entra application
|
|
|
29
29
|
|
|
30
30
|
:::
|
|
31
31
|
|
|
32
|
+
## Permissions
|
|
33
|
+
|
|
34
|
+
<Tabs>
|
|
35
|
+
<TabItem value="Delegated">
|
|
36
|
+
|
|
37
|
+
| Resource | Permissions |
|
|
38
|
+
|----------|--------------------|
|
|
39
|
+
| Yammer | user_impersonation |
|
|
40
|
+
|
|
41
|
+
</TabItem>
|
|
42
|
+
<TabItem value="Application">
|
|
43
|
+
|
|
44
|
+
This command does not support application permissions.
|
|
45
|
+
|
|
46
|
+
</TabItem>
|
|
47
|
+
</Tabs>
|
|
48
|
+
|
|
32
49
|
## Examples
|
|
33
50
|
|
|
34
51
|
Returns the Viva Engage message with the id 1239871123.
|
|
@@ -54,6 +54,23 @@ Feed types
|
|
|
54
54
|
- Private: Private messages received by the user
|
|
55
55
|
- Received: All messages received by the user
|
|
56
56
|
|
|
57
|
+
## Permissions
|
|
58
|
+
|
|
59
|
+
<Tabs>
|
|
60
|
+
<TabItem value="Delegated">
|
|
61
|
+
|
|
62
|
+
| Resource | Permissions |
|
|
63
|
+
|----------|--------------------|
|
|
64
|
+
| Yammer | user_impersonation |
|
|
65
|
+
|
|
66
|
+
</TabItem>
|
|
67
|
+
<TabItem value="Application">
|
|
68
|
+
|
|
69
|
+
This command does not support application permissions.
|
|
70
|
+
|
|
71
|
+
</TabItem>
|
|
72
|
+
</Tabs>
|
|
73
|
+
|
|
57
74
|
## Examples
|
|
58
75
|
|
|
59
76
|
Returns all Viva Engage network messages
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '../../_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# viva engage message remove
|
|
4
6
|
|
|
@@ -36,6 +38,23 @@ To remove a message, you must either:
|
|
|
36
38
|
- be an administrator of the group the message was posted to or
|
|
37
39
|
- be an admin of the network the message is in
|
|
38
40
|
|
|
41
|
+
## Permissions
|
|
42
|
+
|
|
43
|
+
<Tabs>
|
|
44
|
+
<TabItem value="Delegated">
|
|
45
|
+
|
|
46
|
+
| Resource | Permissions |
|
|
47
|
+
|----------|--------------------|
|
|
48
|
+
| Yammer | user_impersonation |
|
|
49
|
+
|
|
50
|
+
</TabItem>
|
|
51
|
+
<TabItem value="Application">
|
|
52
|
+
|
|
53
|
+
This command does not support application permissions.
|
|
54
|
+
|
|
55
|
+
</TabItem>
|
|
56
|
+
</Tabs>
|
|
57
|
+
|
|
39
58
|
## Examples
|
|
40
59
|
|
|
41
60
|
Removes the Viva Engage message with the id _1239871123_
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365",
|
|
3
|
-
"version": "12.0.0-beta.
|
|
3
|
+
"version": "12.0.0-beta.4ac11a7",
|
|
4
4
|
"description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/api.js",
|
|
@@ -111,11 +111,6 @@
|
|
|
111
111
|
"name": "Milan Holemans",
|
|
112
112
|
"email": "11723921+milanholemans@users.noreply.github.com",
|
|
113
113
|
"web": "https://github.com/milanholemans"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"name": "Mathijs Verbeeck",
|
|
117
|
-
"email": "verbeeckmathijs@gmail.com",
|
|
118
|
-
"web": "https://github.com/MathijsVerbeeck"
|
|
119
114
|
}
|
|
120
115
|
],
|
|
121
116
|
"contributors": [
|
|
@@ -161,6 +156,7 @@
|
|
|
161
156
|
"Honen, Nicholas <nickhonen@gmail.com>",
|
|
162
157
|
"Högberg, Joakim <joakim.hogberg@bravero.se>",
|
|
163
158
|
"Hunt, Geoffrey <info@runningdeveloper.com>",
|
|
159
|
+
"Hutzli, Fabian <136681117+fabianhutzli@users.noreply.github.com>",
|
|
164
160
|
"Hvam, Allan <ahp@delegate.dk>",
|
|
165
161
|
"Jaakke, Robert <robert.jaakke@mavention.nl>",
|
|
166
162
|
"Jain, Ayush <urayushjain@gmail.com>",
|
|
@@ -233,6 +229,7 @@
|
|
|
233
229
|
"Shafi, Danish <33339824+builtbydans@users.noreply.github.com>",
|
|
234
230
|
"Shah, Dipen <Dips365@hotmail.com>",
|
|
235
231
|
"Sharma, Dushyant <dushyantsharma17117@gmail.com>",
|
|
232
|
+
"Shreshtha, Sarthak <78229815+Sarthak-Shreshtha01@users.noreply.github.com>",
|
|
236
233
|
"Siatka, Piotr <piotr@valointranet.com>",
|
|
237
234
|
"Sinha, Kislay <kislay_sinha@outlook.com>",
|
|
238
235
|
"Sitaraman, Rajesh <rajesh.sitaraman@outlook.com>",
|
|
@@ -245,6 +242,7 @@
|
|
|
245
242
|
"Svenson, Mikael <miksvenson@gmail.com>",
|
|
246
243
|
"Tane, Peter <peter.tane@gmail.come>",
|
|
247
244
|
"Tatti, Anoop <anoop@live.co.uk>",
|
|
245
|
+
"Thakur, Anikesh <44468436+Anikesh348@users.noreply.github.com>",
|
|
248
246
|
"Thangavel, Sekar <sekar.thangavel@gmail.com>",
|
|
249
247
|
"Thorild, Fredrik <fredrik.thorild@sogeti.com>",
|
|
250
248
|
"Trinder, Garry <garry.trinder@live.com>",
|