@pnp/cli-microsoft365 5.3.0-beta.d2ec1f4 → 5.3.0-beta.ebb13d0

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 (101) hide show
  1. package/.eslintrc.js +1 -0
  2. package/dist/Auth.js +5 -0
  3. package/dist/m365/aad/commands/app/app-add.js +91 -35
  4. package/dist/m365/aad/commands/app/app-role-list.js +1 -1
  5. package/dist/m365/aad/commands/app/app-set.js +91 -0
  6. package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +55 -22
  7. package/dist/m365/aad/commands/group/group-list.js +1 -1
  8. package/dist/m365/aad/commands/groupsetting/groupsetting-list.js +1 -1
  9. package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +1 -1
  10. package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-list.js +1 -1
  11. package/dist/m365/aad/commands/o365group/o365group-conversation-list.js +1 -1
  12. package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +1 -1
  13. package/dist/m365/aad/commands/o365group/o365group-list.js +1 -1
  14. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-clear.js +3 -3
  15. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +1 -1
  16. package/dist/m365/aad/commands/o365group/o365group-user-list.js +2 -2
  17. package/dist/m365/aad/commands/o365group/o365group-user-set.js +2 -2
  18. package/dist/m365/aad/commands/user/user-list.js +1 -1
  19. package/dist/m365/aad/commands/user/user-signin-list.js +1 -1
  20. package/dist/m365/aad/commands.js +1 -1
  21. package/dist/m365/app/commands/app-open.js +64 -0
  22. package/dist/m365/app/commands.js +1 -0
  23. package/dist/m365/base/PowerBICommand.js +10 -0
  24. package/dist/m365/file/commands/file-list.js +1 -1
  25. package/dist/m365/outlook/commands/message/message-list.js +1 -1
  26. package/dist/m365/outlook/commands/room/room-list.js +1 -1
  27. package/dist/m365/outlook/commands/roomlist/roomlist-list.js +1 -1
  28. package/dist/m365/planner/commands/bucket/bucket-add.js +8 -16
  29. package/dist/m365/planner/commands/bucket/bucket-get.js +186 -0
  30. package/dist/m365/planner/commands/bucket/bucket-list.js +10 -19
  31. package/dist/m365/planner/commands/bucket/bucket-remove.js +8 -20
  32. package/dist/m365/planner/commands/bucket/bucket-set.js +9 -21
  33. package/dist/m365/planner/commands/plan/plan-add.js +6 -1
  34. package/dist/m365/planner/commands/plan/plan-details-get.js +12 -15
  35. package/dist/m365/planner/commands/plan/plan-get.js +13 -18
  36. package/dist/m365/planner/commands/plan/plan-list.js +10 -13
  37. package/dist/m365/planner/commands/task/task-add.js +8 -16
  38. package/dist/m365/planner/commands/task/task-details-get.js +6 -0
  39. package/dist/m365/planner/commands/task/task-get.js +138 -7
  40. package/dist/m365/planner/commands/task/task-list.js +15 -24
  41. package/dist/m365/planner/commands/task/task-reference-add.js +75 -0
  42. package/dist/m365/planner/commands/task/task-reference-list.js +45 -0
  43. package/dist/m365/planner/commands/task/task-set.js +9 -18
  44. package/dist/m365/planner/commands.js +4 -1
  45. package/dist/m365/pp/commands/gateway/gateway-list.js +36 -0
  46. package/dist/m365/pp/commands/managementapp/managementapp-list.js +1 -1
  47. package/dist/m365/pp/commands.js +1 -0
  48. package/dist/m365/spo/commands/list/list-roleinheritance-break.js +84 -0
  49. package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +76 -0
  50. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +83 -0
  51. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +79 -0
  52. package/dist/m365/spo/commands/roledefinition/roledefinition-list.js +49 -0
  53. package/dist/m365/spo/commands.js +5 -0
  54. package/dist/m365/teams/commands/app/app-list.js +1 -1
  55. package/dist/m365/teams/commands/channel/channel-list.js +1 -1
  56. package/dist/m365/teams/commands/channel/channel-member-add.js +4 -1
  57. package/dist/m365/teams/commands/channel/channel-member-list.js +1 -1
  58. package/dist/m365/teams/commands/channel/channel-member-remove.js +3 -0
  59. package/dist/m365/teams/commands/channel/channel-member-set.js +3 -0
  60. package/dist/m365/teams/commands/chat/chat-get.js +8 -8
  61. package/dist/m365/teams/commands/chat/chat-list.js +1 -1
  62. package/dist/m365/teams/commands/chat/chat-member-list.js +1 -1
  63. package/dist/m365/teams/commands/chat/chat-message-list.js +1 -1
  64. package/dist/m365/teams/commands/chat/chat-message-send.js +6 -6
  65. package/dist/m365/teams/commands/chat/chatUtil.js +4 -4
  66. package/dist/m365/teams/commands/message/message-list.js +1 -1
  67. package/dist/m365/teams/commands/message/message-reply-list.js +1 -1
  68. package/dist/m365/teams/commands/tab/tab-list.js +1 -1
  69. package/dist/m365/teams/commands/team/team-list.js +1 -1
  70. package/dist/m365/teams/commands/user/user-app-list.js +1 -1
  71. package/dist/m365/teams/commands/user/user-list.js +2 -2
  72. package/dist/m365/tenant/commands/security/security-alerts-list.js +71 -0
  73. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +1 -1
  74. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +1 -1
  75. package/dist/m365/tenant/commands.js +1 -0
  76. package/dist/m365/todo/commands/list/list-list.js +1 -1
  77. package/dist/m365/todo/commands/task/task-list.js +1 -1
  78. package/dist/utils/accessToken.js +18 -0
  79. package/dist/utils/formatting.js +11 -2
  80. package/dist/utils/odata.js +2 -2
  81. package/dist/utils/planner.js +65 -0
  82. package/docs/docs/cmd/aad/app/app-add.md +15 -0
  83. package/docs/docs/cmd/aad/app/app-set.md +17 -0
  84. package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.md +1 -1
  85. package/docs/docs/cmd/app/app-open.md +45 -0
  86. package/docs/docs/cmd/planner/bucket/bucket-get.md +57 -0
  87. package/docs/docs/cmd/planner/task/task-get.md +30 -3
  88. package/docs/docs/cmd/planner/task/task-reference-add.md +45 -0
  89. package/docs/docs/cmd/planner/task/task-reference-list.md +24 -0
  90. package/docs/docs/cmd/pp/gateway/gateway-list.md +21 -0
  91. package/docs/docs/cmd/spo/list/list-roleinheritance-break.md +55 -0
  92. package/docs/docs/cmd/spo/list/list-roleinheritance-reset.md +36 -0
  93. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.md +58 -0
  94. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-reset.md +39 -0
  95. package/docs/docs/cmd/spo/roledefinition/roledefinition-list.md +24 -0
  96. package/docs/docs/cmd/spo/userprofile/userprofile-get.md +1 -1
  97. package/docs/docs/cmd/teams/channel/channel-member-list.md +4 -4
  98. package/docs/docs/cmd/teams/channel/channel-member-remove.md +2 -2
  99. package/docs/docs/cmd/teams/channel/channel-member-set.md +2 -2
  100. package/docs/docs/cmd/tenant/security/security-alerts-list.md +30 -0
  101. package/package.json +1 -1
@@ -0,0 +1,36 @@
1
+ # spo list roleinheritance reset
2
+
3
+ Restores role inheritance on list or library
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo list roleinheritance reset [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site where the list is located
15
+
16
+ `-i, --listId [listId]`
17
+ : ID of the list. Specify either id or title but not both
18
+
19
+ `-t, --listTitle [listTitle]`
20
+ : Title of the list. Specify either id or title but not both
21
+
22
+ --8<-- "docs/cmd/_global.md"
23
+
24
+ ## Examples
25
+
26
+ Restore role inheritance of list with ID _0cd891ef-afce-4e55-b836-fce03286cccf_ located in site _https://contoso.sharepoint.com/sites/project-x_
27
+
28
+ ```sh
29
+ m365 spo list roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf
30
+ ```
31
+
32
+ Restore role inheritance of list with title _test_ located in site _https://contoso.sharepoint.com/sites/project-x_
33
+
34
+ ```sh
35
+ m365 spo list roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle test
36
+ ```
@@ -0,0 +1,58 @@
1
+ # spo listitem roleinheritance break
2
+
3
+ Break inheritance of list item.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo listitem roleinheritance break [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site where the item for which to break role inheritance is located
15
+
16
+ `--listItemId <listItemId>`
17
+ : ID of the item for which to break role inheritance
18
+
19
+ `-l, --listId [listId]`
20
+ : ID of the list. Specify listId or listTitle but not both
21
+
22
+ `-t, --listTitle [listTitle]`
23
+ Title of the list. Specify listId or listTitle but not both
24
+
25
+ `-c, --clearExistingPermissions`
26
+ : Set to clear existing roles from the list item
27
+
28
+ --8<-- "docs/cmd/_global.md"
29
+
30
+ ## Remarks
31
+
32
+ By default, when breaking permissions inheritance, the list item will retain existing permissions. To remove existing permissions, use the `--clearExistingPermissions` option.
33
+
34
+ ## Examples
35
+
36
+ Break inheritance of list item _1_ in list _someList_ located in site _https://contoso.sharepoint.com/sites/project-x_
37
+
38
+ ```sh
39
+ m365 spo listitem roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "_someList_" --id 1
40
+ ```
41
+
42
+ Break inheritance of list item _1_ in list with ID _202b8199-b9de-43fd-9737-7f213f51c991_ located in site _https://contoso.sharepoint.com/sites/project-x_
43
+
44
+ ```sh
45
+ m365 spo listitem roleinheritance break --webUrl https://contoso.sharepoint.com/sites/project-x --listId 202b8199-b9de-43fd-9737-7f213f51c991 --id 1
46
+ ```
47
+
48
+ Break inheritance of list item _1_ in list _someList_ located in site _https://contoso.sharepoint.com/sites/project-x_ with clearing permissions
49
+
50
+ ```sh
51
+ m365 spo listitem roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "_someList_" --id 1 --clearExistingPermissions
52
+ ```
53
+
54
+ Break inheritance of list item _1_ in list with ID _202b8199-b9de-43fd-9737-7f213f51c991_ located in site _https://contoso.sharepoint.com/sites/project-x_ with clearing permissions
55
+
56
+ ```sh
57
+ m365 spo listitem roleinheritance break --webUrl https://contoso.sharepoint.com/sites/project-x --listId 202b8199-b9de-43fd-9737-7f213f51c991 --id 1 --clearExistingPermissions
58
+ ```
@@ -0,0 +1,39 @@
1
+ # spo listitem roleinheritance reset
2
+
3
+ Restores the role inheritance of list item, file, or folder
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo listitem roleinheritance reset [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site where the item for which to reset role inheritance is located
15
+
16
+ `--listItemId <listItemId>`
17
+ : ID of the item for which to reset role inheritance
18
+
19
+ `--listId [listId]`
20
+ : ID of the list. Specify listId or listTitle but not both
21
+
22
+ `--listTitle [listTitle]`
23
+ : Title of the list. Specify listId or listTitle but not both
24
+
25
+ --8<-- "docs/cmd/_global.md"
26
+
27
+ ## Examples
28
+
29
+ Restore role inheritance of list item with id 8 from list with ID _0cd891ef-afce-4e55-b836-fce03286cccf_ located in site _https://contoso.sharepoint.com/sites/project-x_
30
+
31
+ ```sh
32
+ m365 spo listitem roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listItemId 8 --listId 0cd891ef-afce-4e55-b836-fce03286cccf
33
+ ```
34
+
35
+ Restore role inheritance of list item with id 8 from list with title _test_ located in site _https://contoso.sharepoint.com/sites/project-x_
36
+
37
+ ```sh
38
+ m365 spo listitem roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listItemId 8 --listTitle test
39
+ ```
@@ -0,0 +1,24 @@
1
+ # spo roledefinition list
2
+
3
+ Gets list of role definitions for the specified site
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo roledefinition list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site for which to retrieve role definitions
15
+
16
+ --8<-- "docs/cmd/_global.md"
17
+
18
+ ## Examples
19
+
20
+ Return list of role definitions for site _https://contoso.sharepoint.com/sites/project-x_
21
+
22
+ ```sh
23
+ m365 spo roledefinition list --webUrl https://contoso.sharepoint.com/sites/project-x
24
+ ```
@@ -1,4 +1,4 @@
1
- # spo userprofile set
1
+ # spo userprofile get
2
2
 
3
3
  Get SharePoint user profile properties for the specified user
4
4
 
@@ -35,10 +35,10 @@ m365 teams conversationmember list [options]
35
35
 
36
36
  ## Examples
37
37
 
38
- List the members of a specified Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 00:00000000000000000000000000000000@thread.skype
38
+ List the members of a specified Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 19:00000000000000000000000000000000@thread.skype
39
39
 
40
40
  ```sh
41
- m365 teams channel member list --teamId 00000000-0000-0000-0000-000000000000 --channelId 00:00000000000000000000000000000000@thread.skype
41
+ m365 teams channel member list --teamId 00000000-0000-0000-0000-000000000000 --channelId 19:00000000000000000000000000000000@thread.skype
42
42
  ```
43
43
 
44
44
  List the members of a specified Microsoft Teams team with name _Team Name_ and channel with name _Channel Name_
@@ -47,8 +47,8 @@ List the members of a specified Microsoft Teams team with name _Team Name_ and c
47
47
  m365 teams channel member list --teamName "Team Name" --channelName "Channel Name"
48
48
  ```
49
49
 
50
- List all owners of the specified Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 00:00000000000000000000000000000000@thread.skype
50
+ List all owners of the specified Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 19:00000000000000000000000000000000@thread.skype
51
51
 
52
52
  ```sh
53
- m365 teams channel member list --teamId 00000000-0000-0000-0000-000000000000 --channelId 00:00000000000000000000000000000000@thread.skype --role owner
53
+ m365 teams channel member list --teamId 00000000-0000-0000-0000-000000000000 --channelId 19:00000000000000000000000000000000@thread.skype --role owner
54
54
  ```
@@ -44,10 +44,10 @@ m365 teams conversationmember remove [options]
44
44
 
45
45
  ## Examples
46
46
 
47
- Remove the user _johndoe@example.com_ from the Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 00:00000000000000000000000000000000@thread.skype
47
+ Remove the user _johndoe@example.com_ from the Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 19:00000000000000000000000000000000@thread.skype
48
48
 
49
49
  ```sh
50
- m365 teams channel member remove --teamId 00000000-0000-0000-0000-000000000000 --channelId 00:00000000000000000000000000000000@thread.skype --userName "johndoe@example.com"
50
+ m365 teams channel member remove --teamId 00000000-0000-0000-0000-000000000000 --channelId 19:00000000000000000000000000000000@thread.skype --userName "johndoe@example.com"
51
51
  ```
52
52
 
53
53
  Remove the user with id 00000000-0000-0000-0000-000000000000 from the Microsoft Teams team with name _Team Name_ and channel with name _Channel Name_
@@ -38,10 +38,10 @@ m365 teams channel member set [options]
38
38
 
39
39
  ## Examples
40
40
 
41
- Updates the role of the user _johndoe@example.com_ to owner in the Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 00:00000000000000000000000000000000@thread.skype
41
+ Updates the role of the user _johndoe@example.com_ to owner in the Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 19:00000000000000000000000000000000@thread.skype
42
42
 
43
43
  ```sh
44
- m365 teams channel member set --teamId 00000000-0000-0000-0000-000000000000 --channelId 00:00000000000000000000000000000000@thread.skype --userName "johndoe@example.com" --role owner
44
+ m365 teams channel member set --teamId 00000000-0000-0000-0000-000000000000 --channelId 19:00000000000000000000000000000000@thread.skype --userName "johndoe@example.com" --role owner
45
45
  ```
46
46
 
47
47
  Updates the role of the user with id 00000000-0000-0000-0000-000000000000 to member in the Microsoft Teams team with name _Team Name_ and channel with name _Channel Name_
@@ -0,0 +1,30 @@
1
+ # tenant security alerts list
2
+
3
+ Gets the security alerts for a tenant
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 tenant security alerts list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `--vendor [vendor]`
14
+ : The vendor to return alerts for. Possible values `Azure Advanced Threat Protection`, `Azure Security Center`, `Microsoft Cloud App Security`, `Azure Active Directory Identity Protection`, `Azure Sentinel`, `Microsoft Defender ATP`. If omitted, all alerts are returned
15
+
16
+ --8<-- "docs/cmd/_global.md"
17
+
18
+ ## Examples
19
+
20
+ Get all security alerts for a tenant
21
+
22
+ ```sh
23
+ m365 tenant security alerts list
24
+ ```
25
+
26
+ Get security alerts for a vendor with name _Azure Sentinel_
27
+
28
+ ```sh
29
+ m365 tenant security alerts list --vendor "Azure Sentinel"
30
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "5.3.0-beta.d2ec1f4",
3
+ "version": "5.3.0-beta.ebb13d0",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",