@pnp/cli-microsoft365 11.4.0-beta.87732f5 → 11.4.0-beta.f54089d
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/.devproxy/api-specs/sharepoint.yaml +43 -0
- package/README.md +1 -1
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +1 -1
- package/dist/AuthServer.js +2 -4
- package/dist/Command.js +2 -2
- package/dist/cli/cli.js +9 -9
- package/dist/m365/adaptivecard/commands/adaptivecard-send.js +10 -11
- package/dist/m365/app/commands/app-open.js +3 -4
- package/dist/m365/app/commands/permission/permission-add.js +4 -5
- package/dist/m365/base/AppCommand.js +3 -3
- package/dist/m365/booking/commands/business/business-get.js +6 -8
- package/dist/m365/booking/commands/business/business-list.js +2 -1
- package/dist/m365/cli/commands/app/app-add.js +5 -7
- package/dist/m365/commands/docs.js +1 -1
- package/dist/m365/commands/login.js +22 -19
- package/dist/m365/commands/logout.js +1 -1
- package/dist/m365/commands/status.js +2 -1
- package/dist/m365/connection/commands/connection-list.js +2 -1
- package/dist/m365/connection/commands/connection-set.js +15 -29
- package/dist/m365/context/commands/context-remove.js +4 -6
- package/dist/m365/context/commands/option/option-remove.js +5 -7
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-add.js +5 -7
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-get.js +7 -9
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-list.js +4 -5
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-remove.js +8 -10
- package/dist/m365/entra/commands/license/license-list.js +1 -1
- package/dist/m365/entra/commands/m365group/m365group-remove.js +1 -1
- package/dist/m365/entra/commands/multitenant/multitenant-add.js +3 -4
- package/dist/m365/entra/commands/organization/organization-list.js +4 -6
- package/dist/m365/entra/commands/organization/organization-set.js +24 -26
- package/dist/m365/entra/commands/roleassignment/roleassignment-add.js +21 -34
- package/dist/m365/entra/commands/roledefinition/roledefinition-add.js +8 -10
- package/dist/m365/entra/commands/roledefinition/roledefinition-get.js +11 -13
- package/dist/m365/entra/commands/roledefinition/roledefinition-list.js +5 -7
- package/dist/m365/entra/commands/roledefinition/roledefinition-remove.js +11 -13
- package/dist/m365/entra/commands/roledefinition/roledefinition-set.js +15 -17
- package/dist/m365/entra/commands/rolepermission/rolepermission-list.js +5 -7
- package/dist/m365/entra/commands/user/user-session-revoke.js +9 -13
- package/dist/m365/exo/commands/approleassignment/approleassignment-add.js +29 -31
- package/dist/m365/flow/commands/environment/environment-get.js +5 -7
- package/dist/m365/flow/commands/environment/environment-list.js +2 -1
- package/dist/m365/flow/commands/recyclebinitem/recyclebinitem-list.js +4 -6
- package/dist/m365/flow/commands/recyclebinitem/recyclebinitem-restore.js +5 -11
- package/dist/m365/graph/commands/directoryextension/directoryextension-add.js +11 -13
- package/dist/m365/graph/commands/directoryextension/directoryextension-get.js +10 -19
- package/dist/m365/graph/commands/directoryextension/directoryextension-list.js +6 -12
- package/dist/m365/graph/commands/directoryextension/directoryextension-remove.js +11 -20
- package/dist/m365/graph/commands/openextension/openextension-add.js +12 -13
- package/dist/m365/graph/commands/openextension/openextension-get.js +12 -14
- package/dist/m365/graph/commands/openextension/openextension-list.js +11 -13
- package/dist/m365/graph/commands/openextension/openextension-remove.js +13 -15
- package/dist/m365/graph/commands/openextension/openextension-set.js +16 -17
- package/dist/m365/onedrive/commands/onedrive-list.js +2 -1
- package/dist/m365/outlook/commands/mail/mail-searchfolder-add.js +9 -14
- package/dist/m365/outlook/commands/mailbox/mailbox-settings-get.js +8 -12
- package/dist/m365/outlook/commands/mailbox/mailbox-settings-set.js +15 -15
- package/dist/m365/outlook/commands/roomlist/roomlist-list.js +2 -1
- package/dist/m365/pa/commands/environment/environment-get.js +5 -7
- package/dist/m365/pa/commands/environment/environment-list.js +2 -1
- package/dist/m365/planner/commands/tenant/tenant-settings-list.js +1 -1
- package/dist/m365/pp/commands/environment/environment-get.js +5 -7
- package/dist/m365/pp/commands/environment/environment-list.js +3 -4
- package/dist/m365/pp/commands/gateway/gateway-list.js +1 -1
- package/dist/m365/pp/commands/tenant/tenant-settings-list.js +1 -1
- package/dist/m365/pp/commands/website/website-get.js +12 -12
- package/dist/m365/purview/commands/retentionevent/retentionevent-list.js +2 -1
- package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-list.js +1 -1
- package/dist/m365/purview/commands/retentionlabel/retentionlabel-list.js +1 -1
- package/dist/m365/spe/commands/container/container-add.js +10 -15
- package/dist/m365/spe/commands/container/container-permission-list.js +4 -6
- package/dist/m365/spe/commands/container/container-recyclebinitem-list.js +5 -10
- package/dist/m365/spe/commands/container/container-recyclebinitem-restore.js +7 -12
- package/dist/m365/spe/commands/container/container-remove.js +10 -16
- package/dist/m365/spe/commands/containertype/containertype-add.js +15 -20
- package/dist/m365/spe/commands/containertype/containertype-get.js +6 -13
- package/dist/m365/spe/commands/containertype/containertype-remove.js +7 -14
- package/dist/m365/spfx/commands/project/project-upgrade/rules/DependencyRule.js +56 -14
- package/dist/m365/spfx/commands/project/project-upgrade.js +4 -6
- package/dist/m365/spo/commands/file/file-add.js +49 -11
- package/dist/m365/spo/commands/file/file-version-keep.js +10 -14
- package/dist/m365/spo/commands/homesite/homesite-add.js +13 -15
- package/dist/m365/spo/commands/homesite/homesite-get.js +8 -9
- package/dist/m365/spo/commands/homesite/homesite-remove.js +9 -10
- package/dist/m365/spo/commands/homesite/homesite-set.js +13 -14
- package/dist/m365/spo/commands/list/DefaultColumnValue.js +2 -0
- package/dist/m365/spo/commands/list/list-defaultvalue-clear.js +13 -17
- package/dist/m365/spo/commands/list/list-defaultvalue-get.js +124 -0
- package/dist/m365/spo/commands/list/list-defaultvalue-list.js +13 -37
- package/dist/m365/spo/commands/list/list-defaultvalue-remove.js +12 -16
- package/dist/m365/spo/commands/list/list-defaultvalue-set.js +11 -15
- package/dist/m365/spo/commands/list/list-view-add.js +16 -20
- package/dist/m365/spo/commands/listitem/listitem-set.js +1 -1
- package/dist/m365/spo/commands/page/page-control-remove.js +11 -15
- package/dist/m365/spo/commands/page/page-get.js +10 -11
- package/dist/m365/spo/commands/page/page-header-set.js +97 -89
- package/dist/m365/spo/commands/page/page-publish.js +9 -10
- package/dist/m365/spo/commands/page/page-section-remove.js +11 -12
- package/dist/m365/spo/commands/page/page-set.js +26 -26
- package/dist/m365/spo/commands/site/site-appcatalog-list.js +4 -6
- package/dist/m365/spo/commands/site/site-get.js +6 -8
- package/dist/m365/spo/commands/site/site-sharingpermission-set.js +7 -9
- package/dist/m365/spo/commands/site/site-versionpolicy-get.js +11 -13
- package/dist/m365/spo/commands/web/web-alert-list.js +20 -27
- package/dist/m365/spo/commands/web/web-alert-remove.js +15 -20
- package/dist/m365/spo/commands.js +1 -0
- package/dist/m365/spp/commands/model/model-apply.js +18 -24
- package/dist/m365/teams/commands/callrecord/callrecord-list.js +5 -9
- package/dist/m365/teams/commands/chat/chat-message-list.js +26 -27
- package/dist/m365/teams/commands/chat/chat-message-send.js +12 -3
- package/dist/m365/teams/commands/chat/chatUtil.js +1 -1
- package/dist/m365/tenant/commands/people/people-pronouns-set.js +4 -6
- package/dist/m365/tenant/commands/report/report-settings-set.js +4 -6
- package/dist/m365/viva/commands/engage/engage-community-user-add.js +17 -22
- package/dist/m365/viva/commands/engage/engage-community-user-list.js +8 -14
- package/dist/m365/viva/commands/engage/engage-community-user-remove.js +14 -22
- package/dist/m365/viva/commands/engage/engage-role-member-list.js +6 -11
- package/dist/utils/spo.js +30 -2
- package/dist/utils/zod.js +41 -76
- package/docs/docs/cmd/entra/app/app-permission-add.mdx +19 -0
- package/docs/docs/cmd/entra/app/app-permission-list.mdx +19 -0
- package/docs/docs/cmd/entra/app/app-permission-remove.mdx +21 -0
- package/docs/docs/cmd/spo/file/file-add.mdx +140 -1
- package/docs/docs/cmd/spo/list/list-defaultvalue-get.mdx +118 -0
- package/docs/docs/cmd/spo/page/page-header-set.mdx +28 -8
- package/docs/docs/cmd/spo/page/page-set.mdx +35 -5
- package/docs/docs/cmd/teams/chat/chat-message-list.mdx +34 -7
- package/docs/docs/cmd/teams/chat/chat-message-send.mdx +23 -1
- package/npm-shrinkwrap.json +274 -248
- package/package.json +12 -11
|
@@ -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
|
# spo page set
|
|
4
6
|
|
|
@@ -20,16 +22,19 @@ m365 spo page set [options]
|
|
|
20
22
|
: URL of the site where the page to update is located.
|
|
21
23
|
|
|
22
24
|
`-l, --layoutType [layoutType]`
|
|
23
|
-
: Layout of the page. Allowed values `Article`, `Home`, `SingleWebPartAppPage`, `RepostPage`, `HeaderlessSearchResults`, `Spaces`, `Topic`.
|
|
25
|
+
: Layout of the page. Allowed values: `Article`, `Home`, `SingleWebPartAppPage`, `RepostPage`, `HeaderlessSearchResults`, `Spaces`, `Topic`.
|
|
24
26
|
|
|
25
27
|
`-p, --promoteAs [promoteAs]`
|
|
26
|
-
: Update the page purpose. Allowed values `HomePage`, `NewsPage`, `Template`.
|
|
28
|
+
: Update the page purpose. Allowed values: `HomePage`, `NewsPage`, `Template`.
|
|
27
29
|
|
|
28
30
|
`--demoteFrom [demoteFrom]`
|
|
29
|
-
: Update the page purpose back to a regular article. Allowed values `NewsPage`.
|
|
31
|
+
: Update the page purpose back to a regular article. Allowed values: `NewsPage`.
|
|
30
32
|
|
|
31
33
|
`--commentsEnabled [commentsEnabled]`
|
|
32
|
-
: Set to `true`, to enable comments on the page. Allowed values `true`, `false`.
|
|
34
|
+
: Set to `true`, to enable comments on the page. Allowed values: `true`, `false`.
|
|
35
|
+
|
|
36
|
+
`--isRetired [isRetired]`
|
|
37
|
+
: Marks the page as retired, showing a message that the page may be out of date. Allowed values: `true`, `false`.
|
|
33
38
|
|
|
34
39
|
`--publish`
|
|
35
40
|
: Set to publish the page.
|
|
@@ -69,6 +74,25 @@ When using the `--content` option it's possible to enter a JSON string. In Power
|
|
|
69
74
|
|
|
70
75
|
:::
|
|
71
76
|
|
|
77
|
+
## Permissions
|
|
78
|
+
|
|
79
|
+
<Tabs>
|
|
80
|
+
<TabItem value="Delegated">
|
|
81
|
+
|
|
82
|
+
| Resource | Permissions |
|
|
83
|
+
|------------|----------------|
|
|
84
|
+
| SharePoint | AllSites.Write |
|
|
85
|
+
|
|
86
|
+
</TabItem>
|
|
87
|
+
<TabItem value="Application">
|
|
88
|
+
|
|
89
|
+
| Resource | Permissions |
|
|
90
|
+
|------------|---------------------|
|
|
91
|
+
| SharePoint | Sites.ReadWrite.All |
|
|
92
|
+
|
|
93
|
+
</TabItem>
|
|
94
|
+
</Tabs>
|
|
95
|
+
|
|
72
96
|
## Examples
|
|
73
97
|
|
|
74
98
|
Change the layout of the existing page to _Article_
|
|
@@ -89,7 +113,7 @@ Promote the existing article page as a template
|
|
|
89
113
|
m365 spo page set --name page.aspx --webUrl https://contoso.sharepoint.com/sites/a-team --promoteAs Template
|
|
90
114
|
```
|
|
91
115
|
|
|
92
|
-
Demote the existing
|
|
116
|
+
Demote the existing news page
|
|
93
117
|
|
|
94
118
|
```sh
|
|
95
119
|
m365 spo page set --name page.aspx --webUrl https://contoso.sharepoint.com/sites/a-team --demoteFrom NewsPage
|
|
@@ -119,6 +143,12 @@ Set page description
|
|
|
119
143
|
m365 spo page set --name page.aspx --webUrl https://contoso.sharepoint.com/sites/a-team --description "Description to add for the page"
|
|
120
144
|
```
|
|
121
145
|
|
|
146
|
+
Marks a page as retired
|
|
147
|
+
|
|
148
|
+
```sh
|
|
149
|
+
m365 spo page set --name page.aspx --webUrl https://contoso.sharepoint.com/sites/a-team --isRetired true
|
|
150
|
+
```
|
|
151
|
+
|
|
122
152
|
Set page content
|
|
123
153
|
|
|
124
154
|
```sh
|
|
@@ -16,11 +16,33 @@ m365 teams chat message list [options]
|
|
|
16
16
|
|
|
17
17
|
```md definition-list
|
|
18
18
|
`-i, --chatId <chatId>`
|
|
19
|
-
: The ID of the chat conversation
|
|
19
|
+
: The ID of the chat conversation.
|
|
20
|
+
|
|
21
|
+
`--endDateTime [endDateTime]`
|
|
22
|
+
: Time indicating the exclusive end of a time range when the message was created.
|
|
20
23
|
```
|
|
21
24
|
|
|
22
25
|
<Global />
|
|
23
26
|
|
|
27
|
+
## Permissions
|
|
28
|
+
|
|
29
|
+
<Tabs>
|
|
30
|
+
<TabItem value="Delegated">
|
|
31
|
+
|
|
32
|
+
| Resource | Permissions |
|
|
33
|
+
|-----------------|------------------|
|
|
34
|
+
| Microsoft Graph | ChatMessage.Read |
|
|
35
|
+
|
|
36
|
+
</TabItem>
|
|
37
|
+
<TabItem value="Application">
|
|
38
|
+
|
|
39
|
+
| Resource | Permissions |
|
|
40
|
+
|-----------------|----------------------|
|
|
41
|
+
| Microsoft Graph | ChatMessage.Read.All |
|
|
42
|
+
|
|
43
|
+
</TabItem>
|
|
44
|
+
</Tabs>
|
|
45
|
+
|
|
24
46
|
## Examples
|
|
25
47
|
|
|
26
48
|
List the messages from a Microsoft Teams chat conversation
|
|
@@ -29,6 +51,12 @@ List the messages from a Microsoft Teams chat conversation
|
|
|
29
51
|
m365 teams chat message list --chatId 19:2da4c29f6d7041eca70b638b43d45437@thread.v2
|
|
30
52
|
```
|
|
31
53
|
|
|
54
|
+
List messages from a Microsoft Teams chat conversation created before November 1, 2022
|
|
55
|
+
|
|
56
|
+
```sh
|
|
57
|
+
m365 teams chat message list --chatId 19:2da4c29f6d7041eca70b638b43d45437@thread.v2 --endDateTime 2022-11-01T00:00:00Z
|
|
58
|
+
```
|
|
59
|
+
|
|
32
60
|
## Response
|
|
33
61
|
|
|
34
62
|
<Tabs>
|
|
@@ -79,17 +107,17 @@ m365 teams chat message list --chatId 19:2da4c29f6d7041eca70b638b43d45437@thread
|
|
|
79
107
|
<TabItem value="Text">
|
|
80
108
|
|
|
81
109
|
```text
|
|
82
|
-
id shortBody
|
|
83
|
-
-------------
|
|
84
|
-
1667653590582 <p>Hello world</p>
|
|
110
|
+
id createdDateTime shortBody
|
|
111
|
+
------------- ------------------------ ------------------
|
|
112
|
+
1667653590582 2022-11-05T13:06:30.582Z <p>Hello world</p>
|
|
85
113
|
```
|
|
86
114
|
|
|
87
115
|
</TabItem>
|
|
88
116
|
<TabItem value="CSV">
|
|
89
117
|
|
|
90
118
|
```csv
|
|
91
|
-
id,shortBody
|
|
92
|
-
1667653590582,<p>Hello world</p>
|
|
119
|
+
id,createdDateTime,shortBody
|
|
120
|
+
1667653590582,2022-11-05T13:06:30.582Z,<p>Hello world</p>
|
|
93
121
|
```
|
|
94
122
|
|
|
95
123
|
</TabItem>
|
|
@@ -118,4 +146,3 @@ m365 teams chat message list --chatId 19:2da4c29f6d7041eca70b638b43d45437@thread
|
|
|
118
146
|
|
|
119
147
|
</TabItem>
|
|
120
148
|
</Tabs>
|
|
121
|
-
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import Tabs from '@theme/Tabs';
|
|
2
|
+
import TabItem from '@theme/TabItem';
|
|
1
3
|
import Global from '/docs/cmd/_global.mdx';
|
|
2
4
|
|
|
3
5
|
# teams chat message send
|
|
@@ -24,6 +26,9 @@ m365 teams chat message send [options]
|
|
|
24
26
|
|
|
25
27
|
`-m, --message <message>`
|
|
26
28
|
: The message to send
|
|
29
|
+
|
|
30
|
+
`--contentType [contentType]`
|
|
31
|
+
: The content type of the message. Allowed values are `text` and `html`. Default is `text`.
|
|
27
32
|
```
|
|
28
33
|
|
|
29
34
|
<Global />
|
|
@@ -32,12 +37,29 @@ m365 teams chat message send [options]
|
|
|
32
37
|
|
|
33
38
|
A new chat conversation will be created if no existing conversation with the participants specified with emails is found.
|
|
34
39
|
|
|
40
|
+
## Permissions
|
|
41
|
+
|
|
42
|
+
<Tabs>
|
|
43
|
+
<TabItem value="Delegated">
|
|
44
|
+
|
|
45
|
+
| Resource | Permissions |
|
|
46
|
+
|-----------------|-----------------------------|
|
|
47
|
+
| Microsoft Graph | Chat.Read, ChatMessage.Send |
|
|
48
|
+
|
|
49
|
+
</TabItem>
|
|
50
|
+
<TabItem value="Application">
|
|
51
|
+
|
|
52
|
+
This command does not support application permissions.
|
|
53
|
+
|
|
54
|
+
</TabItem>
|
|
55
|
+
</Tabs>
|
|
56
|
+
|
|
35
57
|
## Examples
|
|
36
58
|
|
|
37
59
|
Send a message to a Microsoft Teams chat conversation by id
|
|
38
60
|
|
|
39
61
|
```sh
|
|
40
|
-
m365 teams chat message send --chatId 19:2da4c29f6d7041eca70b638b43d45437@thread.v2 --message "Welcome to Teams"
|
|
62
|
+
m365 teams chat message send --chatId 19:2da4c29f6d7041eca70b638b43d45437@thread.v2 --message "<b>Welcome</b> to Teams" --contentType html
|
|
41
63
|
```
|
|
42
64
|
|
|
43
65
|
Send a message to a single person
|