@pnp/cli-microsoft365 6.0.0-beta.42305df → 6.0.0-beta.49b3c0a

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 (124) hide show
  1. package/.eslintrc.js +15 -2
  2. package/README.md +5 -0
  3. package/dist/Command.js +16 -2
  4. package/dist/m365/aad/commands/app/app-add.js +36 -13
  5. package/dist/m365/commands/status.js +6 -1
  6. package/dist/m365/outlook/commands/mail/mail-send.js +55 -31
  7. package/dist/m365/planner/commands/bucket/bucket-get.js +1 -1
  8. package/dist/m365/planner/commands/plan/plan-get.js +5 -20
  9. package/dist/m365/pp/commands/Environment.js +3 -0
  10. package/dist/m365/pp/commands/card/card-get.js +110 -0
  11. package/dist/m365/pp/commands/card/card-list.js +68 -0
  12. package/dist/m365/pp/commands/dataverse/dataverse-table-list.js +6 -12
  13. package/dist/m365/pp/commands/environment/environment-get.js +75 -0
  14. package/dist/m365/pp/commands/gateway/gateway-get.js +70 -0
  15. package/dist/m365/pp/commands/solution/Solution.js +3 -0
  16. package/dist/m365/pp/commands/solution/solution-get.js +117 -0
  17. package/dist/m365/pp/commands/solution/solution-list.js +87 -0
  18. package/dist/m365/pp/commands.js +6 -0
  19. package/dist/m365/spfx/commands/project/project-doctor.js +4 -1
  20. package/dist/m365/spfx/commands/project/project-externalize.js +4 -1
  21. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010001_YORC_version.js +2 -1
  22. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010002_YORC_isCreatingSolution.js +2 -1
  23. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010003_YORC_packageManager.js +2 -1
  24. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010004_YORC_componentType.js +2 -1
  25. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010005_YORC_environment.js +2 -1
  26. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010006_YORC_framework.js +3 -2
  27. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010007_YORC_isDomainIsolated.js +2 -1
  28. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010008_YORC_nodeVersion.js +2 -1
  29. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010009_YORC_sdkVersions_microsoft_graph_client.js +56 -0
  30. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010010_YORC_sdkVersions_teams_js.js +56 -0
  31. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.14.0.js +0 -2
  32. package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.16.0-beta.1.js → upgrade-1.16.0-beta.2.js} +44 -28
  33. package/dist/m365/spfx/commands/project/project-upgrade.js +1 -1
  34. package/dist/m365/spfx/commands/spfx-doctor.js +39 -9
  35. package/dist/m365/spo/commands/contenttype/contenttype-add.js +82 -43
  36. package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +53 -21
  37. package/dist/m365/spo/commands/contenttype/contenttype-get.js +35 -14
  38. package/dist/m365/spo/commands/eventreceiver/EventReceiver.js +3 -0
  39. package/dist/m365/spo/commands/eventreceiver/eventreceiver-remove.js +182 -0
  40. package/dist/m365/spo/commands/file/file-copy.js +25 -39
  41. package/dist/m365/spo/commands/file/file-move.js +24 -37
  42. package/dist/m365/spo/commands/file/file-rename.js +19 -16
  43. package/dist/m365/spo/commands/file/file-roleinheritance-break.js +129 -0
  44. package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +168 -0
  45. package/dist/m365/spo/commands/group/AssociatedGroupPropertiesCollection.js +3 -0
  46. package/dist/m365/spo/commands/group/group-list.js +49 -10
  47. package/dist/m365/spo/commands/list/list-contenttype-add.js +21 -18
  48. package/dist/m365/spo/commands/list/list-contenttype-default-set.js +59 -47
  49. package/dist/m365/spo/commands/list/list-contenttype-list.js +16 -8
  50. package/dist/m365/spo/commands/list/list-contenttype-remove.js +16 -8
  51. package/dist/m365/spo/commands/list/list-roleassignment-add.js +10 -10
  52. package/dist/m365/spo/commands/list/list-roleassignment-remove.js +8 -8
  53. package/dist/m365/spo/commands/list/list-roleinheritance-break.js +14 -6
  54. package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +14 -6
  55. package/dist/m365/spo/commands/list/list-webhook-add.js +19 -11
  56. package/dist/m365/spo/commands/list/list-webhook-get.js +17 -10
  57. package/dist/m365/spo/commands/list/list-webhook-list.js +17 -42
  58. package/dist/m365/spo/commands/list/list-webhook-remove.js +19 -11
  59. package/dist/m365/spo/commands/list/list-webhook-set.js +18 -10
  60. package/dist/m365/spo/commands/listitem/listitem-roleassignment-add.js +239 -0
  61. package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +8 -8
  62. package/dist/m365/spo/commands/site/site-add.js +4 -11
  63. package/dist/m365/spo/commands/{hubsite/hubsite-connect.js → site/site-hubsite-connect.js} +10 -10
  64. package/dist/m365/spo/commands/{hubsite/hubsite-disconnect.js → site/site-hubsite-disconnect.js} +13 -13
  65. package/dist/m365/spo/commands/web/web-roleassignment-add.js +10 -10
  66. package/dist/m365/spo/commands/web/web-roleassignment-remove.js +8 -8
  67. package/dist/m365/spo/commands.js +6 -2
  68. package/dist/m365/teams/commands/channel/channel-add.js +9 -9
  69. package/dist/m365/teams/commands/team/team-set.js +0 -7
  70. package/dist/m365/todo/commands/task/task-add.js +55 -3
  71. package/dist/m365/todo/commands/task/task-set.js +53 -1
  72. package/docs/docs/_clisettings.md +18 -0
  73. package/docs/docs/cmd/outlook/mail/mail-send.md +13 -0
  74. package/docs/docs/cmd/planner/bucket/bucket-add.md +29 -0
  75. package/docs/docs/cmd/planner/bucket/bucket-get.md +29 -0
  76. package/docs/docs/cmd/planner/bucket/bucket-list.md +30 -0
  77. package/docs/docs/cmd/planner/bucket/bucket-remove.md +4 -0
  78. package/docs/docs/cmd/planner/bucket/bucket-set.md +4 -0
  79. package/docs/docs/cmd/planner/plan/plan-add.md +123 -0
  80. package/docs/docs/cmd/planner/plan/plan-get.md +75 -6
  81. package/docs/docs/cmd/planner/plan/plan-list.md +45 -0
  82. package/docs/docs/cmd/planner/plan/plan-remove.md +4 -0
  83. package/docs/docs/cmd/planner/task/task-get.md +0 -3
  84. package/docs/docs/cmd/pp/card/card-get.md +51 -0
  85. package/docs/docs/cmd/pp/card/card-list.md +33 -0
  86. package/docs/docs/cmd/pp/dataverse/dataverse-table-list.md +2 -2
  87. package/docs/docs/cmd/pp/environment/environment-get.md +38 -0
  88. package/docs/docs/cmd/pp/environment/environment-list.md +1 -1
  89. package/docs/docs/cmd/pp/gateway/gateway-get.md +24 -0
  90. package/docs/docs/cmd/pp/solution/solution-get.md +51 -0
  91. package/docs/docs/cmd/pp/solution/solution-list.md +33 -0
  92. package/docs/docs/cmd/spfx/project/project-rename.md +1 -14
  93. package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
  94. package/docs/docs/cmd/spfx/spfx-doctor.md +10 -1
  95. package/docs/docs/cmd/spo/contenttype/contenttype-add.md +20 -2
  96. package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.md +22 -4
  97. package/docs/docs/cmd/spo/contenttype/contenttype-get.md +21 -3
  98. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-get.md +2 -2
  99. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.md +69 -0
  100. package/docs/docs/cmd/spo/file/file-roleinheritance-break.md +54 -0
  101. package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.md +57 -0
  102. package/docs/docs/cmd/spo/group/group-list.md +10 -1
  103. package/docs/docs/cmd/spo/list/list-contenttype-add.md +15 -6
  104. package/docs/docs/cmd/spo/list/list-contenttype-default-set.md +16 -7
  105. package/docs/docs/cmd/spo/list/list-contenttype-list.md +15 -6
  106. package/docs/docs/cmd/spo/list/list-contenttype-remove.md +16 -7
  107. package/docs/docs/cmd/spo/list/list-roleinheritance-break.md +11 -8
  108. package/docs/docs/cmd/spo/list/list-roleinheritance-reset.md +16 -7
  109. package/docs/docs/cmd/spo/list/list-webhook-add.md +15 -16
  110. package/docs/docs/cmd/spo/list/list-webhook-get.md +17 -8
  111. package/docs/docs/cmd/spo/list/list-webhook-list.md +13 -10
  112. package/docs/docs/cmd/spo/list/list-webhook-remove.md +12 -10
  113. package/docs/docs/cmd/spo/list/list-webhook-set.md +15 -13
  114. package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.md +81 -0
  115. package/docs/docs/cmd/spo/site/site-add.md +0 -3
  116. package/docs/docs/cmd/spo/{hubsite/hubsite-connect.md → site/site-hubsite-connect.md} +4 -4
  117. package/docs/docs/cmd/spo/{hubsite/hubsite-disconnect.md → site/site-hubsite-disconnect.md} +7 -7
  118. package/docs/docs/cmd/teams/channel/channel-add.md +4 -4
  119. package/docs/docs/cmd/teams/team/team-clone.md +0 -3
  120. package/docs/docs/cmd/teams/team/team-set.md +0 -3
  121. package/docs/docs/cmd/todo/task/task-add.md +32 -5
  122. package/docs/docs/cmd/todo/task/task-set.md +29 -2
  123. package/package.json +12 -3
  124. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006006_CFG_PS_features.js +0 -60
@@ -11,32 +11,35 @@ m365 spo list webhook list [options]
11
11
  ## Options
12
12
 
13
13
  `-u, --webUrl <webUrl>`
14
- : URL of the site where the list to retrieve webhooks for is located
14
+ : URL of the site where the list is located.
15
15
 
16
16
  `-i, --listId [listId]`
17
- : ID of the list to retrieve all webhooks for. Specify either `listId` or `listTitle` but not both
17
+ : ID of the list. Specify either `listTitle`, `listId` or `listUrl`.
18
18
 
19
19
  `-t, --listTitle [listTitle]`
20
- : Title of the list to retrieve all webhooks for. Specify either `listId` or `listTitle` but not both
20
+ : Title of the list. Specify either `listTitle`, `listId` or `listUrl`.
21
21
 
22
- `--id [id]`
23
- : (deprecated. Use `listId` instead) ID of the list to retrieve all webhooks for. Specify either `id` or `title` but not both
24
-
25
- `--title [title]`
26
- : (deprecated. Use `listTitle` instead) Title of the list to retrieve all webhooks for. Specify either `id` or `title` but not both
22
+ `--listUrl [listUrl]`
23
+ : Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`.
27
24
 
28
25
  --8<-- "docs/cmd/_global.md"
29
26
 
30
27
  ## Examples
31
28
 
32
- List all webhooks for a list with ID _0cd891ef-afce-4e55-b836-fce03286cccf_ located in site _https://contoso.sharepoint.com/sites/project-x_
29
+ List all webhooks for a list with a specific ID in a specific site
33
30
 
34
31
  ```sh
35
32
  m365 spo list webhook list --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf
36
33
  ```
37
34
 
38
- List all webhooks for a list with title _Documents_ located in site _https://contoso.sharepoint.com/sites/project-x_
35
+ List all webhooks for a list with a specific title in a specific site
39
36
 
40
37
  ```sh
41
38
  m365 spo list webhook list --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle Documents
42
39
  ```
40
+
41
+ List all webhooks for a list with a specific URL in a specific site
42
+
43
+ ```sh
44
+ m365 spo list webhook list --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl '/sites/project-x/Documents'
45
+ ```
@@ -11,19 +11,22 @@ m365 spo list webhook remove [options]
11
11
  ## Options
12
12
 
13
13
  `-u, --webUrl <webUrl>`
14
- : URL of the site where the list to remove the webhook from is located
14
+ : URL of the site where the list is located.
15
15
 
16
16
  `-l, --listId [listId]`
17
- : ID of the list from which the webhook should be removed. Specify either `listId` or `listTitle` but not both
17
+ : ID of the list. Specify either `listId`, `listTitle` or `listUrl`.
18
18
 
19
19
  `-t, --listTitle [listTitle]`
20
- : Title of the list from which the webhook should be removed. Specify either `listId` or `listTitle` but not both
20
+ : Title of the list. Specify either `listId`, `listTitle` or `listUrl`.
21
+
22
+ `--listUrl [listUrl]`
23
+ : Server- or site-relative URL of the list. Specify either `listId`, `listTitle` or `listUrl`.
21
24
 
22
25
  `-i, --id <id>`
23
- : ID of the webhook to remove
26
+ : ID of the webhook.
24
27
 
25
28
  `--confirm`
26
- : Don't prompt for confirming removing the webhook
29
+ : Don't prompt for confirmation.
27
30
 
28
31
  --8<-- "docs/cmd/_global.md"
29
32
 
@@ -33,20 +36,19 @@ If the specified id doesn't refer to an existing webhook, you will get a `404 -
33
36
 
34
37
  ## Examples
35
38
 
36
- Remove webhook with ID _cc27a922-8224-4296-90a5-ebbc54da2e81_ from a list with ID _0cd891ef-afce-4e55-b836-fce03286cccf_ located in site _https://contoso.sharepoint.com/sites/ninja_
39
+ Remove webhook with a specific ID from a list retrieved by ID in a specific site
37
40
 
38
41
  ```sh
39
42
  m365 spo list webhook remove --webUrl https://contoso.sharepoint.com/sites/ninja --listId 0cd891ef-afce-4e55-b836-fce03286cccf --id cc27a922-8224-4296-90a5-ebbc54da2e81
40
43
  ```
41
44
 
42
- Remove webhook with ID _cc27a922-8224-4296-90a5-ebbc54da2e81_ from a list with title _Documents_ located in site _https://contoso.sharepoint.com/sites/ninja_
43
-
45
+ Remove webhook with a specific ID from a list retrieved by Title in a specific site
44
46
  ```sh
45
47
  m365 spo list webhook remove --webUrl https://contoso.sharepoint.com/sites/ninja --listTitle Documents --id cc27a922-8224-4296-90a5-ebbc54da2e81
46
48
  ```
47
49
 
48
- Remove webhook with ID _cc27a922-8224-4296-90a5-ebbc54da2e81_ from a list with title _Documents_ located in site _https://contoso.sharepoint.com/sites/ninja_ without being asked for confirmation
50
+ Remove webhook with a specific ID from a list retrieved by URL in a specific site without being asked for confirmation
49
51
 
50
52
  ```sh
51
- m365 spo list webhook remove --webUrl https://contoso.sharepoint.com/sites/ninja --listTitle Documents --id cc27a922-8224-4296-90a5-ebbc54da2e81 --confirm
53
+ m365 spo list webhook remove --webUrl https://contoso.sharepoint.com/sites/ninja --listUrl '/sites/ninja/Documents' --id cc27a922-8224-4296-90a5-ebbc54da2e81 --confirm
52
54
  ```
@@ -11,24 +11,27 @@ m365 spo list webhook set [options]
11
11
  ## Options
12
12
 
13
13
  `-u, --webUrl <webUrl>`
14
- : URL of the site where the list which contains the webhook is located
14
+ : URL of the site where the list is located.
15
15
 
16
16
  `-l, --listId [listId]`
17
- : ID of the list which contains the webhook which should be updated. Specify either `listId` or `listTitle` but not both
17
+ : ID of the list. Specify either `listId`, `listTitle` or `listUrl`.
18
18
 
19
19
  `-t, --listTitle [listTitle]`
20
- : Title of the list which contains the webhook which should be updated. Specify either `listId` or `listTitle` but not both
20
+ : Title of the list. Specify either `listId`, `listTitle` or `listUrl`.
21
21
 
22
- `-i, --id [id]`
23
- : ID of the webhook to update
22
+ `--listUrl [listUrl]`
23
+ : Server- or site-relative URL of the list. Specify either `listId`, `listTitle` or `listUrl`.
24
+
25
+ `-i, --id <id>`
26
+ : ID of the webhook to update.
24
27
 
25
28
  `-n, --notificationUrl [notificationUrl]`
26
- : The new notification url
29
+ : The new notification url.
27
30
 
28
31
  `-e, --expirationDateTime [expirationDateTime]`
29
- : The new expiration date
32
+ : The new expiration date. _Note: Expiration Time cannot be more than 6 months in future_
30
33
 
31
- --8<-- "docs/cmd/_global.md"
34
+ --8<-- "docs/cmd/\_global.md"
32
35
 
33
36
  ## Remarks
34
37
 
@@ -36,21 +39,20 @@ If the specified `id` doesn't refer to an existing webhook, you will get a `404
36
39
 
37
40
  ## Examples
38
41
 
39
- Update the notification url of a webhook with ID _cc27a922-8224-4296-90a5-ebbc54da2e81_ which belongs to a list with ID _0cd891ef-afce-4e55-b836-fce03286cccf_ located in site _https://contoso.sharepoint.com/sites/ninja_ to _https://contoso-functions.azurewebsites.net/webhook_
42
+ Update the notification url of a webhook with a specific ID attached to a list with a specific ID in a specific site to a specific URL
40
43
 
41
44
  ```sh
42
45
  m365 spo list webhook set --webUrl https://contoso.sharepoint.com/sites/ninja --listId 0cd891ef-afce-4e55-b836-fce03286cccf --id cc27a922-8224-4296-90a5-ebbc54da2e81 --notificationUrl https://contoso-functions.azurewebsites.net/webhook
43
46
  ```
44
47
 
45
- Update the expiration date of a webhook with ID _cc27a922-8224-4296-90a5-ebbc54da2e81_ which belongs to a list with title _Documents_ located in site _https://contoso.sharepoint.com/sites/ninja_ to _October 9th, 2018 at 6:15 PM_
48
+ Update the expiration date of a webhook with a specific ID attached to a list with a specific title in a specific site to a specfic date
46
49
 
47
50
  ```sh
48
51
  m365 spo list webhook set --webUrl https://contoso.sharepoint.com/sites/ninja --listTitle Documents --id cc27a922-8224-4296-90a5-ebbc54da2e81 --expirationDateTime 2018-10-09T18:15
49
52
  ```
50
53
 
51
- From the webhook with ID _cc27a922-8224-4296-90a5-ebbc54da2e81_ which belongs to a list with title _Documents_ located in site _https://contoso.sharepoint.com/sites/ninja_ update the notification url to _https://contoso-functions.azurewebsites.net/webhook_
52
- and the expiration date to _March 2nd, 2019_
54
+ Update the notification url of a webhook with a specific ID attached to a list with a specific URL in a specific site to a specific URL and the expiration date to a specific date
53
55
 
54
56
  ```sh
55
- m365 spo list webhook set --webUrl https://contoso.sharepoint.com/sites/ninja --listTitle Documents --id cc27a922-8224-4296-90a5-ebbc54da2e81 --notificationUrl https://contoso-functions.azurewebsites.net/webhook --expirationDateTime 2019-03-02
57
+ m365 spo list webhook set --webUrl https://contoso.sharepoint.com/sites/ninja --listUrl '/sites/ninja/Documents' --id cc27a922-8224-4296-90a5-ebbc54da2e81 --notificationUrl https://contoso-functions.azurewebsites.net/webhook --expirationDateTime 2019-03-02
56
58
  ```
@@ -0,0 +1,81 @@
1
+ # spo listitem roleassignment add
2
+
3
+ Adds a role assignment to a listitem.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo listitem roleassignment add [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site where the listitem is located
15
+
16
+ `--listId [listId]`
17
+ : ID of the list. Specify either listId, listTitle or listUrl but not multiple.
18
+
19
+ `--listTitle [listTitle]`
20
+ : Title of the list. Specify either listId, listTitle or listUrl but not multiple.
21
+
22
+ `--listUrl [listUrl]`
23
+ : Relative URL of the list. Specify either listId, listTitle or listUrl but not multiple.
24
+
25
+ `--listItemId <listItemId>`
26
+ : Id of the listitem to assign the role to.
27
+
28
+ `--principalId [principalId]`
29
+ : The SharePoint Id of the principal. It may be either a user id or group id to add a role assignment for. Specify either upn, groupName or principalId.
30
+
31
+ `--upn [upn]`
32
+ : upn/email of user to assign role to. Specify either upn, groupName or principalId.
33
+
34
+ `--groupName [groupName]`
35
+ : The group name of Azure AD or SharePoint group. Specify either upn, groupName or principalId.
36
+
37
+ `--roleDefinitionId [roleDefinitionId]`
38
+ : ID of role definition. Specify either roleDefinitionId or roleDefinitionName but not both
39
+
40
+ `--roleDefinitionName [roleDefinitionName]`
41
+ : Enter the name of a role definition, like 'Contribute', 'Read', etc. Specify either roleDefinitionId or roleDefinitionName but not both
42
+
43
+ --8<-- "docs/cmd/_global.md"
44
+
45
+ ## Examples
46
+
47
+ Add role assignment to specified listitem in specified list located in specified site for specified principal id and specified role definition id.
48
+
49
+ ```sh
50
+ m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --listItemId 1 --principalId 11 --roleDefinitionId 1073741829
51
+ ```
52
+
53
+ Add role assignment to specified listitem in specified list located in specified site for specified principal id and specified role definition id.
54
+
55
+ ```sh
56
+ m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listId "0CD891EF-AFCE-4E55-B836-FCE03286CCCF" --listItemId 1 --principalId 11 --roleDefinitionId 1073741829
57
+ ```
58
+
59
+ Add role assignment to specified listitem in specified list located in specified site for specified principal id and specified role definition id.
60
+
61
+ ```sh
62
+ m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listUrl "sites/documents" --listItemId 1 --principalId 11 --roleDefinitionId 1073741829
63
+ ```
64
+
65
+ Add role assignment to specified listitem in specified list located in specified site for specified upn and specified role definition id.
66
+
67
+ ```sh
68
+ m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --listItemId 1 --upn "someaccount@tenant.onmicrosoft.com" --roleDefinitionId 1073741829
69
+ ```
70
+
71
+ Add role assignment to specified listitem in specified list located in specified site for specified group and specified role definition id.
72
+
73
+ ```sh
74
+ m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --listItemId 1 --groupName "someGroup" --roleDefinitionId 1073741829
75
+ ```
76
+
77
+ Add role assignment to specified listitem in specified list located in specified site for specified principal id and specified role definition name.
78
+
79
+ ```sh
80
+ m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --listItemId 1 --principalId 11 --roleDefinitionName "Full Control"
81
+ ```
@@ -46,9 +46,6 @@ m365 spo site add [options]
46
46
  `--siteDesignId [siteDesignId]`
47
47
  : Id of the custom site design to use to create the site. When creating a communication site, specify either `siteDesign` or `siteDesignId` (applies to type CommunicationSite)
48
48
 
49
- `--allowFileSharingForGuestUsers`
50
- : (deprecated. Use `shareByEmailEnabled` instead) Determines whether it's allowed to share file with guests (applies to type CommunicationSite)
51
-
52
49
  `--shareByEmailEnabled`
53
50
  : Determines whether it's allowed to share file with guests (applies to type CommunicationSite)
54
51
 
@@ -1,11 +1,11 @@
1
- # spo hubsite connect
1
+ # spo site hubsite connect
2
2
 
3
3
  Connects the specified site collection to the given hub site
4
4
 
5
5
  ## Usage
6
6
 
7
7
  ```sh
8
- m365 spo hubsite connect [options]
8
+ m365 spo site hubsite connect [options]
9
9
  ```
10
10
 
11
11
  ## Options
@@ -29,10 +29,10 @@ If the specified `id` doesn't point to a valid hub site, you will get a `Resourc
29
29
 
30
30
  ## Examples
31
31
 
32
- Connect the site collection with URL _https://contoso.sharepoint.com/sites/contoso-sales_ to the hub site with ID _255a50b2-527f-4413-8485-57f4c17a24d1_
32
+ Connect a specific site collection to a hub site
33
33
 
34
34
  ```sh
35
- m365 spo hubsite connect --siteUrl https://contoso.sharepoint.com/sites/contoso-sales --id 255a50b2-527f-4413-8485-57f4c17a24d1
35
+ m365 spo site hubsite connect --siteUrl https://contoso.sharepoint.com/sites/contoso-sales --id 255a50b2-527f-4413-8485-57f4c17a24d1
36
36
  ```
37
37
 
38
38
  ## More information
@@ -1,11 +1,11 @@
1
- # spo hubsite disconnect
1
+ # spo site hubsite disconnect
2
2
 
3
3
  Disconnects the specified site collection from its hub site
4
4
 
5
5
  ## Usage
6
6
 
7
7
  ```sh
8
- m365 spo hubsite disconnect [options]
8
+ m365 spo site hubsite disconnect [options]
9
9
  ```
10
10
 
11
11
  ## Options
@@ -14,7 +14,7 @@ m365 spo hubsite disconnect [options]
14
14
  : URL of the site collection to disconnect from its hub site
15
15
 
16
16
  `--confirm`
17
- : Don't prompt for confirming disconnecting from the hub site
17
+ : Don't prompt for confirmation
18
18
 
19
19
  --8<-- "docs/cmd/_global.md"
20
20
 
@@ -25,16 +25,16 @@ m365 spo hubsite disconnect [options]
25
25
 
26
26
  ## Examples
27
27
 
28
- Disconnect the site collection with URL _https://contoso.sharepoint.com/sites/sales_ from its hub site. Will prompt for confirmation before disconnecting from the hub site.
28
+ Disconnect a specific site collection from its hub site. Will prompt for confirmation before disconnecting from the hub site.
29
29
 
30
30
  ```sh
31
- m365 spo hubsite disconnect --siteUrl https://contoso.sharepoint.com/sites/sales
31
+ m365 spo site hubsite disconnect --siteUrl https://contoso.sharepoint.com/sites/sales
32
32
  ```
33
33
 
34
- Disconnect the site collection with URL _https://contoso.sharepoint.com/sites/sales_ from its hub site without prompting for confirmation
34
+ Disconnect a specific site collection from its hub site without prompting for confirmation.
35
35
 
36
36
  ```sh
37
- m365 spo hubsite disconnect --siteUrl https://contoso.sharepoint.com/sites/sales --confirm
37
+ m365 spo site hubsite disconnect --siteUrl https://contoso.sharepoint.com/sites/sales --confirm
38
38
  ```
39
39
 
40
40
  ## More information
@@ -23,10 +23,10 @@ m365 teams channel add [options]
23
23
  : The description of the channel to add
24
24
 
25
25
  `--type [type]`
26
- : Type of channel to create: `standard,private`. Default `standard`.
26
+ : Type of channel to create: `standard`, `private`, `shared`. Default `standard`.
27
27
 
28
28
  `--owner [owner]`
29
- : User with this ID or UPN will be added as owner of the private channel. This option is required when type is `private`.
29
+ : User with this ID or UPN will be added as owner of the channel. This option is required when type is `private` or `shared`.
30
30
 
31
31
  --8<-- "docs/cmd/_global.md"
32
32
 
@@ -54,8 +54,8 @@ Add private channel to the specified Microsoft Teams team with owner UPN
54
54
  m365 teams channel add --teamName "Team Name" --name climicrosoft365 --type private --owner john.doe@contoso.com
55
55
  ```
56
56
 
57
- Add private channel to the specified Microsoft Teams team with owner ID
57
+ Add shared channel to the specified Microsoft Teams team with owner ID
58
58
 
59
59
  ```sh
60
- m365 teams channel add --teamId 6703ac8a-c49b-4fd4-8223-28f0ac3a6402 --name climicrosoft365 --type private --owner cc693a7d-4833-4911-a89a-f0fe6e49bf69
60
+ m365 teams channel add --teamId 6703ac8a-c49b-4fd4-8223-28f0ac3a6402 --name climicrosoft365 --type shared --owner cc693a7d-4833-4911-a89a-f0fe6e49bf69
61
61
  ```
@@ -16,9 +16,6 @@ m365 teams team clone [options]
16
16
  `-n, --name [name]`
17
17
  : The display name for the new Microsoft Teams Team to clone
18
18
 
19
- `--displayName [displayName]`
20
- : (deprecated. Use `name` instead) The display name for the new Microsoft Teams Team to clone
21
-
22
19
  `-p, --partsToClone <partsToClone>`
23
20
  : A comma-separated list of the parts to clone. Allowed values are `apps,channels,members,settings,tabs`
24
21
 
@@ -16,9 +16,6 @@ m365 teams team set [options]
16
16
  `-n, --name [name]`
17
17
  : The display name for the Microsoft Teams team for which to update settings
18
18
 
19
- `--displayName [displayName]`
20
- : (deprecated. Use `name` instead) The display name for the Microsoft Teams team for which to update settings
21
-
22
19
  `--description [description]`
23
20
  : The description for the Microsoft Teams team
24
21
 
@@ -11,26 +11,53 @@ m365 todo task add [options]
11
11
  ## Options
12
12
 
13
13
  `-t, --title <title>`
14
- : The title of the task
14
+ : The title of the task.
15
15
 
16
16
  `--listName [listName]`
17
- : The name of the list in which to create the task. Specify either `listName` or `listId` but not both
17
+ : The name of the list in which to create the task. Specify either `listName` or `listId` but not both.
18
18
 
19
19
  `--listId [listId]`
20
- : The id of the list in which to create the task. Specify either `listName` or `listId` but not both
20
+ : The id of the list in which to create the task. Specify either `listName` or `listId` but not both.
21
+
22
+ `--bodyContent [bodyContent]`
23
+ : The body content of the task. In the UI this is called 'notes'.
24
+
25
+ `--bodyContentType [bodyContentType]`
26
+ : The type of the body content. Possible values are `text` and `html`. Default is `text`.
27
+
28
+ `--dueDateTime [dueDateTime]`
29
+ : The date when the task is due. This should be defined as a valid ISO 8601 string in the UTC time zone. Only date value is needed, time value is always ignored.
30
+
31
+ `--importance [importance]`
32
+ : The importance of the task. Possible values are: `low`, `normal`, `high`. Default is `normal`.
33
+
34
+ `--reminderDateTime [reminderDateTime]`
35
+ : The date and time for a reminder alert of the task to occur. This should be defined as a valid ISO 8601 string in the UTC time zone.
21
36
 
22
37
  --8<-- "docs/cmd/_global.md"
23
38
 
24
39
  ## Examples
25
40
 
26
- Add a task with title _New task_ to Microsoft To Do tasks list with the name _My task list_
41
+ Add a task to Microsoft To Do tasks list with with a specific name
27
42
 
28
43
  ```sh
29
44
  m365 todo task add --title "New task" --listName "My task list"
30
45
  ```
31
46
 
32
- Add a task with title _New task_ to Microsoft To Do tasks list with the id `AQMkADlhMTRkOGEzLWQ1M2QtNGVkNS04NjdmLWU0NzJhMjZmZWNmMwAuAAADKvwNgAMNPE_zFNRJXVrU1wEAhHKQZHItDEOVCn8U3xuA2AABmQeVPwAAAA==`
47
+ Add a task to a Microsoft To Do tasks list with a specific id
33
48
 
34
49
  ```sh
35
50
  m365 todo task add --title "New task" --listId "AQMkADlhMTRkOGEzLWQ1M2QtNGVkNS04NjdmLWU0NzJhMjZmZWNmMwAuAAADKvwNgAMNPE_zFNRJXVrU1wEAhHKQZHItDEOVCn8U3xuA2AABmQeVPwAAAA=="
36
51
  ```
52
+
53
+ Create a new task with bodyContent and reminder and flag it as important
54
+
55
+ ```sh
56
+ m365 todo task add --title "New task" --listName "My task list" --bodyContent "I should not forget this" --reminderDateTime 2023-01-01T12:00:00Z --importance high
57
+ ```
58
+
59
+ Create a new task with a specific due date
60
+
61
+ ```sh
62
+ m365 todo task add --title "New task" --listId "AQMkADlhMTRkOGEzLWQ1M2QtNGVkNS04NjdmLWU0NzJhMjZmZWNmMwAuAAADKvwNgAMNPE_zFNRJXVrU1wEAhHKQZHItDEOVCn8U3xuA2AABmQeVPwAAAA==" --dueDateTime 2023-01-01
63
+ ```
@@ -25,18 +25,45 @@ m365 todo task set [options]
25
25
  `--listId [listId]`
26
26
  : The id of the task list in which the task exists. Specify either `listName` or `listId`, not both
27
27
 
28
+ `--bodyContent [bodyContent]`
29
+ : The body content of the task. In the UI this is called 'notes'.
30
+
31
+ `--bodyContentType [bodyContentType]`
32
+ : The type of the body content. Possible values are `text` and `html`. Default is `text`.
33
+
34
+ `--importance [importance]`
35
+ : The importance of the task. Possible values are: `low`, `normal`, `high`.
36
+
37
+ `--dueDateTime [dueDateTime]`
38
+ : The date and time when the task is due. This should be defined as a valid ISO 8601 string in the UTC time zone. Only date value is needed, time value is always ignored.
39
+
40
+ `--reminderDateTime [reminderDateTime]`
41
+ : The date and time for a reminder alert of the task to occur. This should be defined as a valid ISO 8601 string in the UTC time zone.
42
+
28
43
  --8<-- "docs/cmd/_global.md"
29
44
 
30
45
  ## Examples
31
46
 
32
- Update a task with title _New task_ to _Update doco_ in Microsoft To Do tasks list with the name _My task list_
47
+ Update a task with title _New task_ to _Update doco_ in Microsoft To Do tasks list with a specific name
33
48
 
34
49
  ```sh
35
50
  m365 todo task set --id "AAMkADU3Y2E0OTMxLTllYTQtNGFlZS1hZGM0LWI1NjZjY2FhM2RhMABGAAAAAADhr7P77n9xS6PdtDemRwpHBwCin1tvQMXzRKN1hQDz2S3VAAAXXsleAACin1tvQMXzRKN1hQDz2S3VAAAXXzr9AAA=" --title "Update doco" --listName "My task list"
36
51
  ```
37
52
 
38
- Update a task with status from _notStarted_ to _inProgress_ in Microsoft To Do tasks list with the name _My task list_
53
+ Update a task with status from _notStarted_ to _inProgress_ in Microsoft To Do tasks list with a specific name
39
54
 
40
55
  ```sh
41
56
  m365 todo task set --id "AAMkADU3Y2E0OTMxLTllYTQtNGFlZS1hZGM0LWI1NjZjY2FhM2RhMABGAAAAAADhr7P77n9xS6PdtDemRwpHBwCin1tvQMXzRKN1hQDz2S3VAAAXXsleAACin1tvQMXzRKN1hQDz2S3VAAAXXzr9AAA=" --status "inProgress" --listName "My task list"
42
57
  ```
58
+
59
+ Update a task with bodyContent and reminder and flag it as important in Microsoft To Do tasks list with a specific name
60
+
61
+ ```sh
62
+ m365 todo task set --id "AAMkADU3Y2E0OTMxLTllYTQtNGFlZS1hZGM0LWI1NjZjY2FhM2RhMABGAAAAAADhr7P77n9xS6PdtDemRwpHBwCin1tvQMXzRKN1hQDz2S3VAAAXXsleAACin1tvQMXzRKN1hQDz2S3VAAAXXzr9AAA=" --listName "My task list" --bodyContent "I should not forget this" --reminderDateTime 2023-01-01T12:00:00Z --importance high
63
+ ```
64
+
65
+ Update a task with due date in Microsoft To Do tasks list with list id
66
+
67
+ ```sh
68
+ m365 todo task set --id "AAMkADU3Y2E0OTMxLTllYTQtNGFlZS1hZGM0LWI1NjZjY2FhM2RhMABGAAAAAADhr7P77n9xS6PdtDemRwpHBwCin1tvQMXzRKN1hQDz2S3VAAAXXsleAACin1tvQMXzRKN1hQDz2S3VAAAXXzr9AAA=" --listId "AQMkADlhMTRkOGEzLWQ1M2QtNGVkNS04NjdmLWU0NzJhMjZmZWNmMwAuAAADKvwNgAMNPE_zFNRJXVrU1wEAhHKQZHItDEOVCn8U3xuA2AABmQeVPwAAAA==" --dueDateTime 2023-01-01
69
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "6.0.0-beta.42305df",
3
+ "version": "6.0.0-beta.49b3c0a",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",
@@ -101,7 +101,7 @@
101
101
  "contributors": [
102
102
  "Abhishek K M <67158080+Sync271@users.noreply.github.com>",
103
103
  "Ågren, Simon <simon.agren@sogeti.com>",
104
- "Akash Karda <akashkarda@gmail.com>",
104
+ "Ahlawat, Priyanshu <priyanshuahlawat009@gmail.com>",
105
105
  "Albany, Bruce <bruce.albany@gmail.com>",
106
106
  "Auckloo, Reshmee <reshmee011@gmail.com>",
107
107
  "Balasubramaniam, Jayakumar <jayakumar@live.in>",
@@ -116,9 +116,11 @@
116
116
  "Calabro, David <davej.calabro@gmail.com>",
117
117
  "Choudhary, Karnail Singh <pradhankarnail@gmail.com>",
118
118
  "Connell, Andrew <me@andrewconnell.com>",
119
+ "De Cleyre, Nico <nico.de.cleyre@gmail.com>",
119
120
  "Deshpande, Vardhaman <vardhaman.rd@gmail.com>",
120
121
  "Dyjas, Robert <15113729+robdy@users.noreply.github.com>",
121
122
  "Faleel, Mohamed Ashiq <ashiqf@gmail.com>",
123
+ "Flores, Gaston <gaston.flrs@gmail.com>",
122
124
  "Ford, Lee <fordyman@gmail.com>",
123
125
  "Freese, Luise <49960482+LuiseFreese@users.noreply.github.com>",
124
126
  "Georgiev, Velin <velin.georgiev@gmail.com>",
@@ -132,8 +134,8 @@
132
134
  "Högberg, Joakim <joakim.hogberg@bravero.se>",
133
135
  "Hvam, Allan <ahp@delegate.dk>",
134
136
  "Jaakke, Robert <robert.jaakke@mavention.nl>",
135
- "John Rafael <dragonwood0@protonmail.com>",
136
137
  "Kailasam, Balamurugan <kshsbala@engineer.com>",
138
+ "Karda, Akash <akashkarda@gmail.com>",
137
139
  "Kasireddy, Prasad <prasad.gietcse@gmail.com>",
138
140
  "Keijzers, Paul <KbWorks@users.noreply.github.com>",
139
141
  "Kelkar, Vipul <vipul.kelkar@outlook.com>",
@@ -155,7 +157,9 @@
155
157
  "Mücklisch, Steve <steve.muecklisch@gmail.com>",
156
158
  "Nachan, Nanddeep <nanddeepnachan@gmail.com>",
157
159
  "Nachan, Smita <smita.nachan@gmail.com>",
160
+ "Nadir, Daniaal <daniaal1030@gmail.com>",
158
161
  "Nikolić, Aleksandar <alexandair@live.com>",
162
+ "O'Callaghan, Conor <brioscaibriste@gmail.com>",
159
163
  "Otto <berot3@gmail.com>",
160
164
  "Pandey, Vividh <vividh.pandey.13@gmail.com>",
161
165
  "Patil, Atharva <atharvapatil19202@gmail.com>",
@@ -163,12 +167,16 @@
163
167
  "Powney, Mark <powney.mark@outlook.com>",
164
168
  "pramod74 <pramod.lumb@gmail.com>",
165
169
  "Priem, Mark <mark.priem@outlook.com>",
170
+ "Rafael, John <dragonwood0@protonmail.com>",
166
171
  "Raju, Arnie <arnie.raju@thesolutioncollective.com.au>",
167
172
  "Ramalho, David <dramalho@storm.ie>",
173
+ "Rathi, Tanmay <tanmay_rathi@intuit.com>",
168
174
  "Reekmans, Yannick <reekmans.yannick@gmail.com>",
175
+ "Raghwendra Rishabh <rishabhraghwendra2002@gmail.com>",
169
176
  "Romano, Rodrigo <rodrigo@rodrigoromano.net>",
170
177
  "Romão, Douglas <douglas.romao@trentim.com>",
171
178
  "Rozinov, Roman <roman.rozinov@sogeti.com>",
179
+ "Saatçi, Hüseyin <huseyins@comodo.net>",
172
180
  "Schaeflein, Paul <paul@schaeflein.net>",
173
181
  "Schot, Albert-Jan <appie@digiwijs.nl>",
174
182
  "Schouten, Robert <robert.schouten@wortell.nl>",
@@ -181,6 +189,7 @@
181
189
  "Sitaraman, Rajesh <rajesh.sitaraman@outlook.com>",
182
190
  "Sittler, Laurent <laurent.sittler@lsonline.fr>",
183
191
  "Skelly, Pete <peteskelly@gmail.com>",
192
+ "Solazzi, Riccardo <rick.zal239@gmail.com>",
184
193
  "Sotelo, Aaron <soteloaaron16@gmail.com>",
185
194
  "strafe <strafe@users.noreply.github.com>",
186
195
  "Struyf, Elio <info@estruyf.be>",
@@ -1,60 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FN006006_CFG_PS_features = void 0;
4
- const uuid_1 = require("uuid");
5
- const JsonRule_1 = require("../../JsonRule");
6
- class FN006006_CFG_PS_features extends JsonRule_1.JsonRule {
7
- constructor() {
8
- super();
9
- }
10
- get id() {
11
- return 'FN006006';
12
- }
13
- get title() {
14
- return 'package-solution.json features';
15
- }
16
- get description() {
17
- return `In package-solution.json add features section`;
18
- }
19
- get resolution() {
20
- return '';
21
- }
22
- get resolutionType() {
23
- return 'json';
24
- }
25
- get severity() {
26
- return 'Required';
27
- }
28
- get file() {
29
- return './config/package-solution.json';
30
- }
31
- visit(project, findings) {
32
- var _a, _b;
33
- if (!project.packageSolutionJson ||
34
- !project.packageSolutionJson.solution) {
35
- return;
36
- }
37
- if (!project.packageSolutionJson.solution.features) {
38
- const resolution = {
39
- solution: {
40
- features: [
41
- {
42
- title: `${(_a = project.packageJson) === null || _a === void 0 ? void 0 : _a.name} Feature`,
43
- description: `The feature that activates elements of the ${(_b = project.packageJson) === null || _b === void 0 ? void 0 : _b.name} solution.`,
44
- id: (0, uuid_1.v4)(),
45
- version: project.packageSolutionJson.solution.version
46
- }
47
- ]
48
- }
49
- };
50
- const node = this.getAstNodeFromFile(project.packageSolutionJson, 'solution');
51
- this.addFindingWithOccurrences([{
52
- file: this.file,
53
- resolution: JSON.stringify(resolution, null, 2),
54
- position: this.getPositionFromNode(node)
55
- }], findings);
56
- }
57
- }
58
- }
59
- exports.FN006006_CFG_PS_features = FN006006_CFG_PS_features;
60
- //# sourceMappingURL=FN006006_CFG_PS_features.js.map