@pnp/cli-microsoft365 6.0.0-beta.1254da3 → 6.0.0-beta.1cd4e45

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 (184) hide show
  1. package/dist/cli/Cli.js +7 -10
  2. package/dist/m365/aad/commands/app/app-get.js +3 -2
  3. package/dist/m365/aad/commands/app/app-remove.js +3 -2
  4. package/dist/m365/aad/commands/app/app-role-add.js +3 -2
  5. package/dist/m365/aad/commands/app/app-role-list.js +3 -2
  6. package/dist/m365/aad/commands/app/app-role-remove.js +3 -2
  7. package/dist/m365/aad/commands/app/app-set.js +3 -2
  8. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +5 -4
  9. package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +3 -2
  10. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +5 -4
  11. package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +2 -1
  12. package/dist/m365/aad/commands/o365group/o365group-list.js +3 -2
  13. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +3 -2
  14. package/dist/m365/aad/commands/o365group/o365group-teamify.js +3 -2
  15. package/dist/m365/aad/commands/o365group/o365group-user-add.js +2 -1
  16. package/dist/m365/aad/commands/o365group/o365group-user-remove.js +2 -1
  17. package/dist/m365/aad/commands/oauth2grant/oauth2grant-list.js +2 -1
  18. package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +2 -1
  19. package/dist/m365/aad/commands/oauth2grant/oauth2grant-set.js +2 -1
  20. package/dist/m365/aad/commands/sp/sp-add.js +3 -2
  21. package/dist/m365/aad/commands/sp/sp-get.js +3 -2
  22. package/dist/m365/aad/commands/user/user-get.js +5 -4
  23. package/dist/m365/aad/commands/user/user-hibp.js +2 -1
  24. package/dist/m365/aad/commands/user/user-list.js +2 -1
  25. package/dist/m365/aad/commands/user/user-set.js +2 -1
  26. package/dist/m365/aad/commands/user/user-signin-list.js +5 -4
  27. package/dist/m365/base/DateAndPeriodBasedReport.js +3 -2
  28. package/dist/m365/base/PeriodBasedReport.js +2 -1
  29. package/dist/m365/booking/commands/business/business-get.js +2 -1
  30. package/dist/m365/cli/commands/config/config-set.js +1 -0
  31. package/dist/m365/file/commands/file-list.js +2 -1
  32. package/dist/m365/flow/commands/environment/environment-get.js +2 -1
  33. package/dist/m365/flow/commands/flow-disable.js +2 -1
  34. package/dist/m365/flow/commands/flow-enable.js +2 -1
  35. package/dist/m365/flow/commands/flow-export.js +5 -4
  36. package/dist/m365/flow/commands/flow-get.js +2 -1
  37. package/dist/m365/flow/commands/flow-list.js +2 -1
  38. package/dist/m365/flow/commands/flow-remove.js +2 -1
  39. package/dist/m365/flow/commands/run/run-cancel.js +2 -1
  40. package/dist/m365/flow/commands/run/run-get.js +2 -1
  41. package/dist/m365/flow/commands/run/run-list.js +2 -1
  42. package/dist/m365/flow/commands/run/run-resubmit.js +3 -2
  43. package/dist/m365/outlook/commands/mail/mail-send.js +2 -1
  44. package/dist/m365/outlook/commands/message/message-list.js +2 -1
  45. package/dist/m365/outlook/commands/message/message-move.js +2 -1
  46. package/dist/m365/pa/commands/app/app-get.js +2 -1
  47. package/dist/m365/pa/commands/app/app-list.js +2 -1
  48. package/dist/m365/pa/commands/app/app-remove.js +2 -1
  49. package/dist/m365/pa/commands/connector/connector-export.js +2 -1
  50. package/dist/m365/pa/commands/connector/connector-list.js +2 -1
  51. package/dist/m365/pa/commands/environment/environment-get.js +2 -1
  52. package/dist/m365/planner/commands/task/task-add.js +1 -1
  53. package/dist/m365/planner/commands/task/task-checklistitem-add.js +3 -2
  54. package/dist/m365/planner/commands/task/task-checklistitem-list.js +2 -1
  55. package/dist/m365/planner/commands/task/task-checklistitem-remove.js +2 -1
  56. package/dist/m365/planner/commands/task/task-get.js +2 -1
  57. package/dist/m365/planner/commands/task/task-list.js +4 -3
  58. package/dist/m365/planner/commands/task/task-reference-add.js +2 -2
  59. package/dist/m365/planner/commands/task/task-reference-list.js +2 -1
  60. package/dist/m365/planner/commands/task/task-reference-remove.js +1 -1
  61. package/dist/m365/planner/commands/task/task-set.js +2 -2
  62. package/dist/m365/pp/commands/gateway/gateway-get.js +2 -1
  63. package/dist/m365/pp/commands/managementapp/managementapp-add.js +3 -2
  64. package/dist/m365/pp/commands/solution/solution-list.js +5 -11
  65. package/dist/m365/search/commands/externalconnection/externalconnection-get.js +3 -2
  66. package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +3 -2
  67. package/dist/m365/spo/commands/app/app-get.js +2 -1
  68. package/dist/m365/spo/commands/app/app-install.js +2 -1
  69. package/dist/m365/spo/commands/app/app-remove.js +2 -1
  70. package/dist/m365/spo/commands/app/app-retract.js +2 -1
  71. package/dist/m365/spo/commands/app/app-teamspackage-download.js +2 -1
  72. package/dist/m365/spo/commands/app/app-uninstall.js +2 -1
  73. package/dist/m365/spo/commands/app/app-upgrade.js +2 -1
  74. package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +2 -2
  75. package/dist/m365/spo/commands/contenttype/contenttype-get.js +2 -2
  76. package/dist/m365/spo/commands/contenttype/contenttype-list.js +2 -1
  77. package/dist/m365/spo/commands/contenttype/contenttype-remove.js +3 -2
  78. package/dist/m365/spo/commands/customaction/customaction-get.js +3 -2
  79. package/dist/m365/spo/commands/customaction/customaction-remove.js +3 -2
  80. package/dist/m365/spo/commands/customaction/customaction-set.js +2 -1
  81. package/dist/m365/spo/commands/eventreceiver/eventreceiver-list.js +4 -3
  82. package/dist/m365/spo/commands/file/file-add.js +14 -13
  83. package/dist/m365/spo/commands/file/file-checkin.js +4 -3
  84. package/dist/m365/spo/commands/file/file-checkout.js +3 -2
  85. package/dist/m365/spo/commands/file/file-copy.js +2 -1
  86. package/dist/m365/spo/commands/file/file-get.js +3 -2
  87. package/dist/m365/spo/commands/file/file-move.js +2 -1
  88. package/dist/m365/spo/commands/file/file-remove.js +3 -2
  89. package/dist/m365/spo/commands/file/file-rename.js +3 -2
  90. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +1 -1
  91. package/dist/m365/spo/commands/file/file-version-clear.js +114 -0
  92. package/dist/m365/spo/commands/file/file-version-get.js +104 -0
  93. package/dist/m365/spo/commands/file/file-version-list.js +1 -1
  94. package/dist/m365/spo/commands/file/file-version-remove.js +119 -0
  95. package/dist/m365/spo/commands/file/file-version-restore.js +119 -0
  96. package/dist/m365/spo/commands/folder/folder-get.js +3 -2
  97. package/dist/m365/spo/commands/folder/folder-remove.js +2 -1
  98. package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +1 -1
  99. package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +2 -1
  100. package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +1 -1
  101. package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +1 -1
  102. package/dist/m365/spo/commands/group/group-get.js +3 -2
  103. package/dist/m365/spo/commands/group/group-user-add.js +2 -1
  104. package/dist/m365/spo/commands/group/group-user-list.js +3 -2
  105. package/dist/m365/spo/commands/group/group-user-remove.js +3 -2
  106. package/dist/m365/spo/commands/list/list-contenttype-remove.js +1 -1
  107. package/dist/m365/spo/commands/list/list-get.js +1 -1
  108. package/dist/m365/spo/commands/list/list-view-field-add.js +1 -1
  109. package/dist/m365/spo/commands/list/list-view-field-remove.js +1 -1
  110. package/dist/m365/spo/commands/list/list-view-field-set.js +1 -1
  111. package/dist/m365/spo/commands/listitem/listitem-get.js +1 -1
  112. package/dist/m365/spo/commands/listitem/listitem-list.js +3 -3
  113. package/dist/m365/spo/commands/page/Page.js +3 -2
  114. package/dist/m365/spo/commands/page/page-add.js +2 -1
  115. package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +4 -3
  116. package/dist/m365/spo/commands/page/page-control-get.js +2 -1
  117. package/dist/m365/spo/commands/page/page-control-list.js +2 -1
  118. package/dist/m365/spo/commands/page/page-control-set.js +3 -2
  119. package/dist/m365/spo/commands/page/page-get.js +2 -1
  120. package/dist/m365/spo/commands/page/page-header-set.js +6 -5
  121. package/dist/m365/spo/commands/page/page-section-add.js +4 -3
  122. package/dist/m365/spo/commands/page/page-set.js +2 -1
  123. package/dist/m365/spo/commands/site/site-apppermission-add.js +3 -2
  124. package/dist/m365/spo/commands/site/site-hubsite-connect.js +2 -1
  125. package/dist/m365/spo/commands/site/site-rename.js +2 -1
  126. package/dist/m365/spo/commands/site/site-set.js +1 -1
  127. package/dist/m365/spo/commands/sitescript/sitescript-add.js +2 -1
  128. package/dist/m365/spo/commands/spo-search.js +3 -2
  129. package/dist/m365/spo/commands/storageentity/storageentity-get.js +2 -1
  130. package/dist/m365/spo/commands/user/user-get.js +4 -3
  131. package/dist/m365/spo/commands/user/user-remove.js +2 -1
  132. package/dist/m365/spo/commands/userprofile/userprofile-get.js +2 -1
  133. package/dist/m365/spo/commands/web/web-add.js +2 -1
  134. package/dist/m365/spo/commands.js +4 -0
  135. package/dist/m365/teams/commands/app/app-install.js +3 -2
  136. package/dist/m365/teams/commands/app/app-list.js +2 -1
  137. package/dist/m365/teams/commands/app/app-publish.js +14 -15
  138. package/dist/m365/teams/commands/app/app-update.js +2 -1
  139. package/dist/m365/teams/commands/channel/channel-get.js +4 -3
  140. package/dist/m365/teams/commands/channel/channel-member-add.js +4 -3
  141. package/dist/m365/teams/commands/channel/channel-member-list.js +2 -1
  142. package/dist/m365/teams/commands/channel/channel-member-remove.js +2 -1
  143. package/dist/m365/teams/commands/channel/channel-member-set.js +2 -1
  144. package/dist/m365/teams/commands/channel/channel-remove.js +3 -2
  145. package/dist/m365/teams/commands/channel/channel-set.js +3 -2
  146. package/dist/m365/teams/commands/chat/chat-get.js +2 -1
  147. package/dist/m365/teams/commands/chat/chatUtil.js +2 -1
  148. package/dist/m365/teams/commands/funsettings/funsettings-list.js +2 -1
  149. package/dist/m365/teams/commands/funsettings/funsettings-set.js +2 -1
  150. package/dist/m365/teams/commands/guestsettings/guestsettings-list.js +2 -1
  151. package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +2 -1
  152. package/dist/m365/teams/commands/membersettings/membersettings-list.js +2 -1
  153. package/dist/m365/teams/commands/membersettings/membersettings-set.js +2 -1
  154. package/dist/m365/teams/commands/messagingsettings/messagingsettings-list.js +2 -1
  155. package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +2 -1
  156. package/dist/m365/teams/commands/report/report-directroutingcalls.js +3 -2
  157. package/dist/m365/teams/commands/report/report-pstncalls.js +3 -2
  158. package/dist/m365/teams/commands/tab/tab-add.js +2 -1
  159. package/dist/m365/teams/commands/tab/tab-get.js +4 -3
  160. package/dist/m365/teams/commands/tab/tab-list.js +2 -1
  161. package/dist/m365/teams/commands/tab/tab-remove.js +2 -1
  162. package/dist/m365/teams/commands/team/team-archive.js +2 -1
  163. package/dist/m365/teams/commands/team/team-clone.js +2 -1
  164. package/dist/m365/teams/commands/team/team-get.js +2 -1
  165. package/dist/m365/teams/commands/team/team-remove.js +2 -1
  166. package/dist/m365/teams/commands/team/team-set.js +2 -1
  167. package/dist/m365/teams/commands/team/team-unarchive.js +2 -1
  168. package/dist/m365/teams/commands/user/user-app-list.js +3 -2
  169. package/dist/m365/tenant/commands/security/security-alerts-list.js +2 -1
  170. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-get.js +2 -1
  171. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +2 -1
  172. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +2 -1
  173. package/dist/m365/todo/commands/task/task-set.js +2 -1
  174. package/dist/m365/yammer/commands/user/user-get.js +3 -2
  175. package/dist/m365/yammer/commands/yammer-search.js +2 -1
  176. package/dist/utils/aadGroup.js +2 -1
  177. package/dist/utils/powerPlatform.js +3 -2
  178. package/dist/utils/spo.js +3 -2
  179. package/docs/docs/cmd/spo/file/file-version-clear.md +55 -0
  180. package/docs/docs/cmd/spo/file/file-version-get.md +76 -0
  181. package/docs/docs/cmd/spo/file/file-version-remove.md +58 -0
  182. package/docs/docs/cmd/spo/file/file-version-restore.md +58 -0
  183. package/docs/docs/cmd/teams/app/app-publish.md +14 -4
  184. package/package.json +1 -1
@@ -0,0 +1,58 @@
1
+ # spo file version remove
2
+
3
+ Removes a specific version of a specified file
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo file version remove [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-w, --webUrl <webUrl>`
14
+ : The URL of the site where the file is located
15
+
16
+ `--label <label>`
17
+ : Label of version which will be removed
18
+
19
+ `-u, --fileUrl [fileUrl]`
20
+ : The server-relative URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
21
+
22
+ `-i, --fileId [fileId]`
23
+ : The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
24
+
25
+ `--confirm [confirm]`
26
+ : Don't prompt for confirmation.
27
+
28
+ --8<-- "docs/cmd/_global.md"
29
+
30
+ ## Examples
31
+
32
+ Removes a file version in a specific site based on fileId and prompts for confirmation
33
+
34
+ ```sh
35
+ m365 spo file version remove --webUrl https://contoso.sharepoint.com --label "1.0" --fileId 'b2307a39-e878-458b-bc90-03bc578531d6'
36
+ ```
37
+
38
+ Removes a file version in a specific site based on fileUrl and prompts for confirmation
39
+
40
+ ```sh
41
+ m365 spo file version remove --webUrl https://contoso.sharepoint.com --label "1.0" --fileUrl '/Shared Documents/Document.docx'
42
+ ```
43
+
44
+ Removes a file version in a specific site based on fileId without prompting for confirmation
45
+
46
+ ```sh
47
+ m365 spo file version remove --webUrl https://contoso.sharepoint.com --label "1.0" --fileId 'b2307a39-e878-458b-bc90-03bc578531d6' --confirm
48
+ ```
49
+
50
+ Removes a file version in a specific site based on fileUrl without prompting for confirmation
51
+
52
+ ```sh
53
+ m365 spo file version remove --webUrl https://contoso.sharepoint.com --label "1.0" --fileUrl '/Shared Documents/Document.docx' --confirm
54
+ ```
55
+
56
+ ## Response
57
+
58
+ The command won't return a response on success.
@@ -0,0 +1,58 @@
1
+ # spo file version restore
2
+
3
+ Restores a specific version of a specified file
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo file version restore [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-w, --webUrl <webUrl>`
14
+ : The URL of the site where the file is located
15
+
16
+ `--label <label>`
17
+ : Label of version which will be restored
18
+
19
+ `-u, --fileUrl [fileUrl]`
20
+ : The server-relative URL of the file whose version will be restored. Specify either `fileUrl` or `fileId` but not both
21
+
22
+ `-i, --fileId [fileId]`
23
+ : The UniqueId (GUID) of the file whose version will be restored. Specify either `fileUrl` or `fileId` but not both
24
+
25
+ `--confirm [confirm]`
26
+ : Don't prompt for confirmation.
27
+
28
+ --8<-- "docs/cmd/_global.md"
29
+
30
+ ## Examples
31
+
32
+ Restores a file version in a specific site based on fileId and prompts for confirmation
33
+
34
+ ```sh
35
+ m365 spo file version restore --webUrl https://contoso.sharepoint.com --label "1.0" --fileId 'b2307a39-e878-458b-bc90-03bc578531d6'
36
+ ```
37
+
38
+ Restores a file version in a specific site based on fileUrl and prompts for confirmation
39
+
40
+ ```sh
41
+ m365 spo file version restore --webUrl https://contoso.sharepoint.com --label "1.0" --fileUrl '/Shared Documents/Document.docx'
42
+ ```
43
+
44
+ Restores a file version in a specific site based on fileId without prompting for confirmation
45
+
46
+ ```sh
47
+ m365 spo file version restore --webUrl https://contoso.sharepoint.com --label "1.0" --fileId 'b2307a39-e878-458b-bc90-03bc578531d6' --confirm
48
+ ```
49
+
50
+ Restores a file version in a specific site based on fileUrl without prompting for confirmation
51
+
52
+ ```sh
53
+ m365 spo file version restore --webUrl https://contoso.sharepoint.com --label "1.0" --fileUrl '/Shared Documents/Document.docx' --confirm
54
+ ```
55
+
56
+ ## Response
57
+
58
+ The command won't return a response on success.
@@ -17,7 +17,8 @@ m365 teams app publish [options]
17
17
 
18
18
  ## Remarks
19
19
 
20
- You can only publish a Teams app as a global administrator.
20
+ !!! important
21
+ To use this command you must be a Global administrator.
21
22
 
22
23
  ## Examples
23
24
 
@@ -32,17 +33,26 @@ m365 teams app publish --filePath ./teams-manifest.zip
32
33
  === "JSON"
33
34
 
34
35
  ```json
35
- "fbdfd207-83ee-45d8-9c98-5039a1a01207"
36
+ {
37
+ "id": "e3e29acb-8c79-412b-b746-e6c39ff4cd22",
38
+ "externalId": "b5561ec9-8cab-4aa3-8aa2-d8d7172e4311",
39
+ "displayName": "Test App",
40
+ "distributionMethod": "organization"
41
+ }
36
42
  ```
37
43
 
38
44
  === "Text"
39
45
 
40
46
  ```text
41
- fbdfd207-83ee-45d8-9c98-5039a1a01207
47
+ displayName : Test App
48
+ distributionMethod: organization
49
+ externalId : b5561ec9-8cab-4aa3-8aa2-d8d7172e4311
50
+ id : e3e29acb-8c79-412b-b746-e6c39ff4cd22
42
51
  ```
43
52
 
44
53
  === "CSV"
45
54
 
46
55
  ```csv
47
- fbdfd207-83ee-45d8-9c98-5039a1a01207
56
+ id,externalId,displayName,distributionMethod
57
+ e3e29acb-8c79-412b-b746-e6c39ff4cd22,b5561ec9-8cab-4aa3-8aa2-d8d7172e4311,Test App,organization
48
58
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "6.0.0-beta.1254da3",
3
+ "version": "6.0.0-beta.1cd4e45",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",