@pnp/cli-microsoft365 7.6.0-beta.443bfd8 → 7.6.0-beta.480812d
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/README.md +1 -1
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +2 -2
- package/dist/AuthServer.js +1 -1
- package/dist/config.js +2 -2
- package/dist/m365/app/commands/app-get.js +1 -1
- package/dist/m365/app/commands/app-open.js +1 -1
- package/dist/m365/app/commands/permission/permission-add.js +2 -2
- package/dist/m365/app/commands/permission/permission-list.js +2 -2
- package/dist/m365/cli/commands/cli-consent.js +2 -2
- package/dist/m365/cli/commands/cli-reconsent.js +3 -3
- package/dist/m365/commands/login.js +1 -1
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-add.js +1 -0
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-get.js +1 -0
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-list.js +1 -0
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-add.js +1 -0
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-get.js +1 -0
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-list.js +1 -0
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-remove.js +1 -0
- package/dist/m365/entra/commands/app/app-add.js +7 -6
- package/dist/m365/entra/commands/app/app-get.js +4 -3
- package/dist/m365/entra/commands/app/app-list.js +1 -0
- package/dist/m365/entra/commands/app/app-permission-add.js +3 -2
- package/dist/m365/entra/commands/app/app-permission-list.js +1 -1
- package/dist/m365/entra/commands/app/app-remove.js +5 -4
- package/dist/m365/entra/commands/app/app-role-add.js +6 -5
- package/dist/m365/entra/commands/app/app-role-list.js +4 -3
- package/dist/m365/entra/commands/app/app-role-remove.js +6 -5
- package/dist/m365/entra/commands/app/app-set.js +8 -7
- package/dist/m365/entra/commands/approleassignment/approleassignment-add.js +2 -1
- package/dist/m365/entra/commands/approleassignment/approleassignment-list.js +1 -0
- package/dist/m365/entra/commands/approleassignment/approleassignment-remove.js +1 -0
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-add.js +1 -0
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-get.js +1 -0
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-list.js +1 -0
- package/dist/m365/entra/commands/group/group-get.js +1 -0
- package/dist/m365/entra/commands/group/group-list.js +1 -0
- package/dist/m365/entra/commands/group/group-remove.js +1 -0
- package/dist/m365/entra/commands/group/group-user-list.js +1 -0
- package/dist/m365/entra/commands/groupsetting/groupsetting-add.js +1 -0
- package/dist/m365/entra/commands/groupsetting/groupsetting-get.js +1 -0
- package/dist/m365/entra/commands/groupsetting/groupsetting-list.js +1 -0
- package/dist/m365/entra/commands/groupsetting/groupsetting-remove.js +1 -0
- package/dist/m365/entra/commands/groupsetting/groupsetting-set.js +1 -0
- package/dist/m365/entra/commands/groupsettingtemplate/groupsettingtemplate-get.js +1 -0
- package/dist/m365/entra/commands/groupsettingtemplate/groupsettingtemplate-list.js +1 -0
- package/dist/m365/entra/commands/license/license-list.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-add.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-conversation-list.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-conversation-post-list.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-get.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-list.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-clear.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-list.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-remove.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-restore.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-remove.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-renew.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-set.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-teamify.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-user-add.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-user-list.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-user-remove.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-user-set.js +1 -0
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-add.js +1 -0
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-list.js +1 -0
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-remove.js +1 -0
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-set.js +1 -0
- package/dist/m365/entra/commands/policy/policy-list.js +1 -0
- package/dist/m365/entra/commands/siteclassification/siteclassification-disable.js +1 -0
- package/dist/m365/entra/commands/siteclassification/siteclassification-enable.js +1 -0
- package/dist/m365/entra/commands/siteclassification/siteclassification-get.js +1 -0
- package/dist/m365/entra/commands/siteclassification/siteclassification-set.js +1 -0
- package/dist/m365/entra/commands/user/user-add.js +1 -0
- package/dist/m365/entra/commands/user/user-get.js +1 -0
- package/dist/m365/entra/commands/user/user-guest-add.js +1 -0
- package/dist/m365/entra/commands/user/user-hibp.js +1 -0
- package/dist/m365/entra/commands/user/user-license-add.js +1 -0
- package/dist/m365/entra/commands/user/user-license-list.js +1 -0
- package/dist/m365/entra/commands/user/user-license-remove.js +1 -0
- package/dist/m365/entra/commands/user/user-list.js +1 -0
- package/dist/m365/entra/commands/user/user-password-validate.js +1 -0
- package/dist/m365/entra/commands/user/user-recyclebinitem-clear.js +1 -0
- package/dist/m365/entra/commands/user/user-recyclebinitem-list.js +1 -0
- package/dist/m365/entra/commands/user/user-recyclebinitem-remove.js +2 -1
- package/dist/m365/entra/commands/user/user-recyclebinitem-restore.js +1 -0
- package/dist/m365/entra/commands/user/user-remove.js +1 -0
- package/dist/m365/entra/commands/user/user-set.js +1 -0
- package/dist/m365/entra/commands/user/user-signin-list.js +1 -0
- package/dist/m365/outlook/commands/message/message-remove.js +113 -0
- package/dist/m365/outlook/commands.js +1 -0
- package/dist/m365/pp/commands/managementapp/managementapp-add.js +7 -7
- package/dist/m365/spo/commands/folder/FolderColor.js +19 -0
- package/dist/m365/spo/commands/folder/folder-add.js +46 -17
- package/dist/m365/spo/commands/folder/folder-set.js +118 -0
- package/dist/m365/spo/commands/group/group-member-add.js +2 -2
- package/dist/m365/spo/commands/group/group-member-remove.js +1 -1
- package/dist/m365/spo/commands/site/site-apppermission-add.js +2 -2
- package/dist/m365/spo/commands/site/site-recyclebinitem-restore.js +66 -27
- package/dist/m365/spo/commands/tenant/tenant-settings-set.js +1 -1
- package/dist/m365/spo/commands.js +1 -0
- package/dist/m365/teams/commands/tab/tab-get.js +1 -1
- package/dist/utils/spo.js +1 -1
- package/docs/docs/cmd/app/app-get.mdx +10 -10
- package/docs/docs/cmd/app/app-open.mdx +6 -6
- package/docs/docs/cmd/app/permission/permission-add.mdx +2 -2
- package/docs/docs/cmd/app/permission/permission-list.mdx +5 -5
- package/docs/docs/cmd/cli/cli-consent.mdx +2 -2
- package/docs/docs/cmd/cli/cli-reconsent.mdx +6 -6
- package/docs/docs/cmd/entra/app/app-permission-add.mdx +6 -6
- package/docs/docs/cmd/entra/approleassignment/approleassignment-add.mdx +1 -1
- package/docs/docs/cmd/entra/approleassignment/approleassignment-list.mdx +4 -4
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-add.mdx +1 -1
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-get.mdx +1 -1
- package/docs/docs/cmd/entra/group/group-user-add.mdx +7 -7
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-add.mdx +1 -1
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-list.mdx +1 -1
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-remove.mdx +1 -1
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-set.mdx +1 -1
- package/docs/docs/cmd/external/connection/connection-add.mdx +2 -2
- package/docs/docs/cmd/file/file-add.mdx +1 -1
- package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +2 -2
- package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +1 -1
- package/docs/docs/cmd/login.mdx +18 -18
- package/docs/docs/cmd/outlook/message/message-remove.mdx +67 -0
- package/docs/docs/cmd/pa/app/app-owner-set.mdx +1 -1
- package/docs/docs/cmd/pa/app/app-permission-ensure.mdx +3 -3
- package/docs/docs/cmd/pa/app/app-permission-remove.mdx +3 -3
- package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
- package/docs/docs/cmd/planner/roster/roster-add.mdx +5 -5
- package/docs/docs/cmd/planner/roster/roster-get.mdx +7 -7
- package/docs/docs/cmd/planner/roster/roster-member-add.mdx +4 -4
- package/docs/docs/cmd/planner/roster/roster-member-get.mdx +4 -4
- package/docs/docs/cmd/planner/roster/roster-member-list.mdx +2 -2
- package/docs/docs/cmd/planner/roster/roster-member-remove.mdx +5 -5
- package/docs/docs/cmd/planner/roster/roster-plan-list.mdx +1 -1
- package/docs/docs/cmd/planner/roster/roster-remove.mdx +2 -2
- package/docs/docs/cmd/planner/task/task-add.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-get.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-list.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-remove.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-set.mdx +1 -1
- package/docs/docs/cmd/pp/environment/environment-get.mdx +1 -1
- package/docs/docs/cmd/pp/environment/environment-list.mdx +1 -1
- package/docs/docs/cmd/pp/managementapp/managementapp-add.mdx +9 -9
- package/docs/docs/cmd/purview/auditlog/auditlog-list.mdx +1 -1
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.mdx +1 -1
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.mdx +1 -1
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-policysettings-list.mdx +1 -1
- package/docs/docs/cmd/request.mdx +1 -1
- package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +2 -2
- package/docs/docs/cmd/spo/folder/folder-add.mdx +38 -0
- package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-set.mdx +88 -0
- package/docs/docs/cmd/spo/group/group-member-add.mdx +2 -2
- package/docs/docs/cmd/spo/group/group-member-remove.mdx +3 -3
- package/docs/docs/cmd/spo/list/list-roleassignment-add.mdx +3 -3
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.mdx +2 -2
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.mdx +8 -8
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.mdx +2 -2
- package/docs/docs/cmd/spo/site/site-apppermission-add.mdx +2 -2
- package/docs/docs/cmd/spo/site/site-apppermission-set.mdx +2 -2
- package/docs/docs/cmd/spo/site/site-recyclebinitem-restore.mdx +29 -5
- package/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx +89 -89
- package/docs/docs/cmd/spo/user/user-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-roleassignment-add.mdx +3 -3
- package/docs/docs/cmd/spo/web/web-roleassignment-remove.mdx +2 -2
- package/docs/docs/cmd/teams/channel/channel-member-remove.mdx +1 -1
- package/docs/docs/cmd/teams/channel/channel-member-set.mdx +1 -1
- package/docs/docs/cmd/teams/chat/chat-member-remove.mdx +3 -3
- package/docs/docs/cmd/teams/report/report-directroutingcalls.mdx +1 -1
- package/docs/docs/cmd/teams/report/report-pstncalls.mdx +1 -1
- package/docs/docs/cmd/teams/tab/tab-get.mdx +19 -12
- package/docs/docs/cmd/tenant/security/security-alerts-list.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-group-list.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-group-user-add.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-group-user-remove.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-message-add.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-message-get.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-message-like-set.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-message-list.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-message-remove.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-network-list.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-search.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-user-get.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-user-list.mdx +1 -1
- package/npm-shrinkwrap.json +62 -58
- package/package.json +11 -11
- package/dist/m365/spo/commands/folder/folder-rename.js +0 -72
- package/docs/docs/cmd/spo/folder/folder-rename.mdx +0 -44
|
@@ -28,7 +28,7 @@ m365 viva engage group list [options]
|
|
|
28
28
|
|
|
29
29
|
:::warning
|
|
30
30
|
|
|
31
|
-
In order to use this command, you need to grant the
|
|
31
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
32
32
|
|
|
33
33
|
:::
|
|
34
34
|
|
|
@@ -29,7 +29,7 @@ m365 viva engage group user add [options]
|
|
|
29
29
|
|
|
30
30
|
:::warning
|
|
31
31
|
|
|
32
|
-
In order to use this command, you need to grant the
|
|
32
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
33
33
|
|
|
34
34
|
:::
|
|
35
35
|
|
|
@@ -29,7 +29,7 @@ m365 viva engage group user remove [options]
|
|
|
29
29
|
|
|
30
30
|
:::warning
|
|
31
31
|
|
|
32
|
-
In order to use this command, you need to grant the
|
|
32
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
33
33
|
|
|
34
34
|
:::
|
|
35
35
|
|
|
@@ -37,7 +37,7 @@ m365 viva engage message add [options]
|
|
|
37
37
|
|
|
38
38
|
:::warning
|
|
39
39
|
|
|
40
|
-
In order to use this command, you need to grant the
|
|
40
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
41
41
|
|
|
42
42
|
:::
|
|
43
43
|
|
|
@@ -25,7 +25,7 @@ m365 viva engage message get [options]
|
|
|
25
25
|
|
|
26
26
|
:::warning
|
|
27
27
|
|
|
28
|
-
In order to use this command, you need to grant the
|
|
28
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
29
29
|
|
|
30
30
|
:::
|
|
31
31
|
|
|
@@ -29,7 +29,7 @@ m365 viva engage message like set [options]
|
|
|
29
29
|
|
|
30
30
|
:::warning
|
|
31
31
|
|
|
32
|
-
In order to use this command, you need to grant the
|
|
32
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
33
33
|
|
|
34
34
|
:::
|
|
35
35
|
|
|
@@ -40,7 +40,7 @@ m365 viva engage message list [options]
|
|
|
40
40
|
|
|
41
41
|
:::warning
|
|
42
42
|
|
|
43
|
-
In order to use this command, you need to grant the
|
|
43
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
44
44
|
|
|
45
45
|
:::
|
|
46
46
|
|
|
@@ -26,7 +26,7 @@ m365 viva engage message remove [options]
|
|
|
26
26
|
|
|
27
27
|
:::warning
|
|
28
28
|
|
|
29
|
-
In order to use this command, you need to grant the
|
|
29
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
30
30
|
|
|
31
31
|
:::
|
|
32
32
|
|
|
@@ -25,7 +25,7 @@ m365 viva engage network list [options]
|
|
|
25
25
|
|
|
26
26
|
:::warning
|
|
27
27
|
|
|
28
|
-
In order to use this command, you need to grant the
|
|
28
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
29
29
|
|
|
30
30
|
:::
|
|
31
31
|
|
|
@@ -31,7 +31,7 @@ m365 viva engage search [options]
|
|
|
31
31
|
|
|
32
32
|
:::warning
|
|
33
33
|
|
|
34
|
-
In order to use this command, you need to grant the
|
|
34
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
35
35
|
|
|
36
36
|
:::
|
|
37
37
|
|
|
@@ -28,7 +28,7 @@ m365 viva engage user get [options]
|
|
|
28
28
|
|
|
29
29
|
:::warning
|
|
30
30
|
|
|
31
|
-
In order to use this command, you need to grant the
|
|
31
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
32
32
|
|
|
33
33
|
:::
|
|
34
34
|
|
|
@@ -37,7 +37,7 @@ m365 viva engage user list [options]
|
|
|
37
37
|
|
|
38
38
|
:::warning
|
|
39
39
|
|
|
40
|
-
In order to use this command, you need to grant the
|
|
40
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
41
41
|
|
|
42
42
|
:::
|
|
43
43
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"version": "7.6.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@azure/msal-common": "^14.7.
|
|
13
|
-
"@azure/msal-node": "^2.6.
|
|
12
|
+
"@azure/msal-common": "^14.7.1",
|
|
13
|
+
"@azure/msal-node": "^2.6.4",
|
|
14
14
|
"@inquirer/confirm": "^2.0.17",
|
|
15
15
|
"@inquirer/input": "^1.2.16",
|
|
16
16
|
"@inquirer/select": "^1.3.3",
|
|
@@ -19,26 +19,26 @@
|
|
|
19
19
|
"adaptivecards": "^3.0.2",
|
|
20
20
|
"adaptivecards-templating": "^2.3.1",
|
|
21
21
|
"adm-zip": "^0.5.10",
|
|
22
|
-
"applicationinsights": "^2.9.
|
|
22
|
+
"applicationinsights": "^2.9.5",
|
|
23
23
|
"axios": "^1.6.7",
|
|
24
24
|
"chalk": "^5.3.0",
|
|
25
25
|
"clipboardy": "^4.0.0",
|
|
26
26
|
"configstore": "^6.0.0",
|
|
27
|
-
"csv-stringify": "^6.4.
|
|
27
|
+
"csv-stringify": "^6.4.6",
|
|
28
28
|
"easy-table": "^1.2.0",
|
|
29
29
|
"jmespath": "^0.16.0",
|
|
30
30
|
"json-to-ast": "^2.1.0",
|
|
31
31
|
"minimist": "^1.2.8",
|
|
32
32
|
"node-forge": "^1.3.1",
|
|
33
33
|
"omelette": "^0.4.17",
|
|
34
|
-
"open": "^10.0
|
|
34
|
+
"open": "^10.1.0",
|
|
35
35
|
"ora": "^8.0.1",
|
|
36
36
|
"semver": "^7.6.0",
|
|
37
37
|
"strip-json-comments": "^5.0.1",
|
|
38
38
|
"typescript": "^5.3.3",
|
|
39
39
|
"update-notifier": "^7.0.0",
|
|
40
40
|
"uuid": "^9.0.1",
|
|
41
|
-
"yaml": "^2.
|
|
41
|
+
"yaml": "^2.4.1"
|
|
42
42
|
},
|
|
43
43
|
"bin": {
|
|
44
44
|
"m365": "dist/index.js",
|
|
@@ -54,19 +54,19 @@
|
|
|
54
54
|
"@types/json-to-ast": "^2.1.4",
|
|
55
55
|
"@types/minimist": "^1.2.5",
|
|
56
56
|
"@types/mocha": "^10.0.6",
|
|
57
|
-
"@types/node": "^20.11.
|
|
57
|
+
"@types/node": "^20.11.25",
|
|
58
58
|
"@types/node-forge": "^1.3.11",
|
|
59
59
|
"@types/omelette": "^0.4.4",
|
|
60
|
-
"@types/semver": "^7.5.
|
|
60
|
+
"@types/semver": "^7.5.8",
|
|
61
61
|
"@types/sinon": "^17.0.3",
|
|
62
62
|
"@types/update-notifier": "^6.0.8",
|
|
63
63
|
"@types/uuid": "^9.0.8",
|
|
64
64
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
65
65
|
"@typescript-eslint/parser": "^6.21.0",
|
|
66
66
|
"c8": "^8.0.1",
|
|
67
|
-
"eslint": "^8.
|
|
67
|
+
"eslint": "^8.57.0",
|
|
68
68
|
"eslint-plugin-cli-microsoft365": "file:eslint-rules",
|
|
69
|
-
"eslint-plugin-mocha": "^10.
|
|
69
|
+
"eslint-plugin-mocha": "^10.4.1",
|
|
70
70
|
"mocha": "^10.3.0",
|
|
71
71
|
"rimraf": "^5.0.5",
|
|
72
72
|
"sinon": "^17.0.0",
|
|
@@ -203,19 +203,19 @@
|
|
|
203
203
|
}
|
|
204
204
|
},
|
|
205
205
|
"node_modules/@azure/msal-common": {
|
|
206
|
-
"version": "14.7.
|
|
207
|
-
"resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-14.7.
|
|
208
|
-
"integrity": "sha512-
|
|
206
|
+
"version": "14.7.1",
|
|
207
|
+
"resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-14.7.1.tgz",
|
|
208
|
+
"integrity": "sha512-v96btzjM7KrAu4NSEdOkhQSTGOuNUIIsUdB8wlyB9cdgl5KqEKnTonHUZ8+khvZ6Ap542FCErbnTyDWl8lZ2rA==",
|
|
209
209
|
"engines": {
|
|
210
210
|
"node": ">=0.8.0"
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
213
|
"node_modules/@azure/msal-node": {
|
|
214
|
-
"version": "2.6.
|
|
215
|
-
"resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-2.6.
|
|
216
|
-
"integrity": "sha512-
|
|
214
|
+
"version": "2.6.4",
|
|
215
|
+
"resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-2.6.4.tgz",
|
|
216
|
+
"integrity": "sha512-nNvEPx009/80UATCToF+29NZYocn01uKrB91xtFr7bSqkqO1PuQGXRyYwryWRztUrYZ1YsSbw9A+LmwOhpVvcg==",
|
|
217
217
|
"dependencies": {
|
|
218
|
-
"@azure/msal-common": "14.7.
|
|
218
|
+
"@azure/msal-common": "14.7.1",
|
|
219
219
|
"jsonwebtoken": "^9.0.0",
|
|
220
220
|
"uuid": "^8.3.0"
|
|
221
221
|
},
|
|
@@ -313,9 +313,9 @@
|
|
|
313
313
|
}
|
|
314
314
|
},
|
|
315
315
|
"node_modules/@eslint/js": {
|
|
316
|
-
"version": "8.
|
|
317
|
-
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.
|
|
318
|
-
"integrity": "sha512-
|
|
316
|
+
"version": "8.57.0",
|
|
317
|
+
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz",
|
|
318
|
+
"integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==",
|
|
319
319
|
"dev": true,
|
|
320
320
|
"engines": {
|
|
321
321
|
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
@@ -331,13 +331,13 @@
|
|
|
331
331
|
}
|
|
332
332
|
},
|
|
333
333
|
"node_modules/@humanwhocodes/config-array": {
|
|
334
|
-
"version": "0.11.
|
|
335
|
-
"resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.
|
|
336
|
-
"integrity": "sha512-
|
|
334
|
+
"version": "0.11.14",
|
|
335
|
+
"resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz",
|
|
336
|
+
"integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==",
|
|
337
337
|
"dev": true,
|
|
338
338
|
"dependencies": {
|
|
339
|
-
"@humanwhocodes/object-schema": "^2.0.
|
|
340
|
-
"debug": "^4.
|
|
339
|
+
"@humanwhocodes/object-schema": "^2.0.2",
|
|
340
|
+
"debug": "^4.3.1",
|
|
341
341
|
"minimatch": "^3.0.5"
|
|
342
342
|
},
|
|
343
343
|
"engines": {
|
|
@@ -358,9 +358,9 @@
|
|
|
358
358
|
}
|
|
359
359
|
},
|
|
360
360
|
"node_modules/@humanwhocodes/object-schema": {
|
|
361
|
-
"version": "2.0.
|
|
362
|
-
"resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.
|
|
363
|
-
"integrity": "sha512-
|
|
361
|
+
"version": "2.0.2",
|
|
362
|
+
"resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz",
|
|
363
|
+
"integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==",
|
|
364
364
|
"dev": true
|
|
365
365
|
},
|
|
366
366
|
"node_modules/@inquirer/confirm": {
|
|
@@ -950,9 +950,9 @@
|
|
|
950
950
|
}
|
|
951
951
|
},
|
|
952
952
|
"node_modules/@types/node": {
|
|
953
|
-
"version": "20.11.
|
|
954
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.
|
|
955
|
-
"integrity": "sha512-
|
|
953
|
+
"version": "20.11.25",
|
|
954
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.25.tgz",
|
|
955
|
+
"integrity": "sha512-TBHyJxk2b7HceLVGFcpAUjsa5zIdsPWlR6XHfyGzd0SFu+/NFgQgMAl96MSDZgQDvJAvV6BKsFOrt6zIL09JDw==",
|
|
956
956
|
"dependencies": {
|
|
957
957
|
"undici-types": "~5.26.4"
|
|
958
958
|
}
|
|
@@ -973,9 +973,9 @@
|
|
|
973
973
|
"dev": true
|
|
974
974
|
},
|
|
975
975
|
"node_modules/@types/semver": {
|
|
976
|
-
"version": "7.5.
|
|
977
|
-
"resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.
|
|
978
|
-
"integrity": "sha512-
|
|
976
|
+
"version": "7.5.8",
|
|
977
|
+
"resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz",
|
|
978
|
+
"integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==",
|
|
979
979
|
"dev": true
|
|
980
980
|
},
|
|
981
981
|
"node_modules/@types/shimmer": {
|
|
@@ -1455,15 +1455,15 @@
|
|
|
1455
1455
|
}
|
|
1456
1456
|
},
|
|
1457
1457
|
"node_modules/applicationinsights": {
|
|
1458
|
-
"version": "2.9.
|
|
1459
|
-
"resolved": "https://registry.npmjs.org/applicationinsights/-/applicationinsights-2.9.
|
|
1460
|
-
"integrity": "sha512-
|
|
1458
|
+
"version": "2.9.5",
|
|
1459
|
+
"resolved": "https://registry.npmjs.org/applicationinsights/-/applicationinsights-2.9.5.tgz",
|
|
1460
|
+
"integrity": "sha512-APQ8IWyYDHFvKbitFKpsmZXxkzQh0yYTFacQqoVW7HwlPo3eeLprwnq5RFNmmG6iqLmvQ+xRJSDLEQCgqPh+bw==",
|
|
1461
1461
|
"dependencies": {
|
|
1462
1462
|
"@azure/core-auth": "^1.5.0",
|
|
1463
1463
|
"@azure/core-rest-pipeline": "1.10.1",
|
|
1464
1464
|
"@azure/core-util": "1.2.0",
|
|
1465
1465
|
"@azure/opentelemetry-instrumentation-azure-sdk": "^1.0.0-beta.5",
|
|
1466
|
-
"@microsoft/applicationinsights-web-snippet": "
|
|
1466
|
+
"@microsoft/applicationinsights-web-snippet": "1.0.1",
|
|
1467
1467
|
"@opentelemetry/api": "^1.7.0",
|
|
1468
1468
|
"@opentelemetry/core": "^1.19.0",
|
|
1469
1469
|
"@opentelemetry/sdk-trace-base": "^1.19.0",
|
|
@@ -2200,9 +2200,9 @@
|
|
|
2200
2200
|
}
|
|
2201
2201
|
},
|
|
2202
2202
|
"node_modules/csv-stringify": {
|
|
2203
|
-
"version": "6.4.
|
|
2204
|
-
"resolved": "https://registry.npmjs.org/csv-stringify/-/csv-stringify-6.4.
|
|
2205
|
-
"integrity": "sha512-
|
|
2203
|
+
"version": "6.4.6",
|
|
2204
|
+
"resolved": "https://registry.npmjs.org/csv-stringify/-/csv-stringify-6.4.6.tgz",
|
|
2205
|
+
"integrity": "sha512-h2V2XZ3uOTLilF5dPIptgUfN/o2ia/80Ie0Lly18LAnw5s8Eb7kt8rfxSUy24AztJZas9f6DPZpVlzDUtFt/ag=="
|
|
2206
2206
|
},
|
|
2207
2207
|
"node_modules/d3-format": {
|
|
2208
2208
|
"version": "1.4.5",
|
|
@@ -2488,16 +2488,16 @@
|
|
|
2488
2488
|
}
|
|
2489
2489
|
},
|
|
2490
2490
|
"node_modules/eslint": {
|
|
2491
|
-
"version": "8.
|
|
2492
|
-
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.
|
|
2493
|
-
"integrity": "sha512-
|
|
2491
|
+
"version": "8.57.0",
|
|
2492
|
+
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz",
|
|
2493
|
+
"integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==",
|
|
2494
2494
|
"dev": true,
|
|
2495
2495
|
"dependencies": {
|
|
2496
2496
|
"@eslint-community/eslint-utils": "^4.2.0",
|
|
2497
2497
|
"@eslint-community/regexpp": "^4.6.1",
|
|
2498
2498
|
"@eslint/eslintrc": "^2.1.4",
|
|
2499
|
-
"@eslint/js": "8.
|
|
2500
|
-
"@humanwhocodes/config-array": "^0.11.
|
|
2499
|
+
"@eslint/js": "8.57.0",
|
|
2500
|
+
"@humanwhocodes/config-array": "^0.11.14",
|
|
2501
2501
|
"@humanwhocodes/module-importer": "^1.0.1",
|
|
2502
2502
|
"@nodelib/fs.walk": "^1.2.8",
|
|
2503
2503
|
"@ungap/structured-clone": "^1.2.0",
|
|
@@ -2547,12 +2547,13 @@
|
|
|
2547
2547
|
"link": true
|
|
2548
2548
|
},
|
|
2549
2549
|
"node_modules/eslint-plugin-mocha": {
|
|
2550
|
-
"version": "10.
|
|
2551
|
-
"resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.
|
|
2552
|
-
"integrity": "sha512-
|
|
2550
|
+
"version": "10.4.1",
|
|
2551
|
+
"resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.4.1.tgz",
|
|
2552
|
+
"integrity": "sha512-G85ALUgKaLzuEuHhoW3HVRgPTmia6njQC3qCG6CEvA8/Ja9PDZnRZOuzekMki+HaViEQXINuYsmhp5WR5/4MfA==",
|
|
2553
2553
|
"dev": true,
|
|
2554
2554
|
"dependencies": {
|
|
2555
2555
|
"eslint-utils": "^3.0.0",
|
|
2556
|
+
"globals": "^13.24.0",
|
|
2556
2557
|
"rambda": "^7.4.0"
|
|
2557
2558
|
},
|
|
2558
2559
|
"engines": {
|
|
@@ -3090,9 +3091,9 @@
|
|
|
3090
3091
|
}
|
|
3091
3092
|
},
|
|
3092
3093
|
"node_modules/globals": {
|
|
3093
|
-
"version": "13.
|
|
3094
|
-
"resolved": "https://registry.npmjs.org/globals/-/globals-13.
|
|
3095
|
-
"integrity": "sha512-
|
|
3094
|
+
"version": "13.24.0",
|
|
3095
|
+
"resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz",
|
|
3096
|
+
"integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==",
|
|
3096
3097
|
"dev": true,
|
|
3097
3098
|
"dependencies": {
|
|
3098
3099
|
"type-fest": "^0.20.2"
|
|
@@ -4241,9 +4242,9 @@
|
|
|
4241
4242
|
}
|
|
4242
4243
|
},
|
|
4243
4244
|
"node_modules/open": {
|
|
4244
|
-
"version": "10.0
|
|
4245
|
-
"resolved": "https://registry.npmjs.org/open/-/open-10.0.
|
|
4246
|
-
"integrity": "sha512-
|
|
4245
|
+
"version": "10.1.0",
|
|
4246
|
+
"resolved": "https://registry.npmjs.org/open/-/open-10.1.0.tgz",
|
|
4247
|
+
"integrity": "sha512-mnkeQ1qP5Ue2wd+aivTD3NHd/lZ96Lu0jgf0pwktLPtx6cTZiH7tyeGRRHs0zX0rbrahXPnXlUnbeXyaBBuIaw==",
|
|
4247
4248
|
"dependencies": {
|
|
4248
4249
|
"default-browser": "^5.2.1",
|
|
4249
4250
|
"define-lazy-prop": "^3.0.0",
|
|
@@ -5656,9 +5657,12 @@
|
|
|
5656
5657
|
"integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g=="
|
|
5657
5658
|
},
|
|
5658
5659
|
"node_modules/yaml": {
|
|
5659
|
-
"version": "2.
|
|
5660
|
-
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.
|
|
5661
|
-
"integrity": "sha512-
|
|
5660
|
+
"version": "2.4.1",
|
|
5661
|
+
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.1.tgz",
|
|
5662
|
+
"integrity": "sha512-pIXzoImaqmfOrL7teGUBt/T7ZDnyeGBWyXQBvOVhLkWLN37GXv8NMLK406UY6dS51JfcQHsmcW5cJ441bHg6Lg==",
|
|
5663
|
+
"bin": {
|
|
5664
|
+
"yaml": "bin.mjs"
|
|
5665
|
+
},
|
|
5662
5666
|
"engines": {
|
|
5663
5667
|
"node": ">= 14"
|
|
5664
5668
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365",
|
|
3
|
-
"version": "7.6.0-beta.
|
|
3
|
+
"version": "7.6.0-beta.480812d",
|
|
4
4
|
"description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/api.js",
|
|
@@ -245,8 +245,8 @@
|
|
|
245
245
|
"Zachariassen Laksafoss, Trygvi <trygvi.laksafoss@gmail.com>"
|
|
246
246
|
],
|
|
247
247
|
"dependencies": {
|
|
248
|
-
"@azure/msal-common": "^14.7.
|
|
249
|
-
"@azure/msal-node": "^2.6.
|
|
248
|
+
"@azure/msal-common": "^14.7.1",
|
|
249
|
+
"@azure/msal-node": "^2.6.4",
|
|
250
250
|
"@inquirer/confirm": "^2.0.17",
|
|
251
251
|
"@inquirer/input": "^1.2.16",
|
|
252
252
|
"@inquirer/select": "^1.3.3",
|
|
@@ -255,26 +255,26 @@
|
|
|
255
255
|
"adaptivecards": "^3.0.2",
|
|
256
256
|
"adaptivecards-templating": "^2.3.1",
|
|
257
257
|
"adm-zip": "^0.5.10",
|
|
258
|
-
"applicationinsights": "^2.9.
|
|
258
|
+
"applicationinsights": "^2.9.5",
|
|
259
259
|
"axios": "^1.6.7",
|
|
260
260
|
"chalk": "^5.3.0",
|
|
261
261
|
"clipboardy": "^4.0.0",
|
|
262
262
|
"configstore": "^6.0.0",
|
|
263
|
-
"csv-stringify": "^6.4.
|
|
263
|
+
"csv-stringify": "^6.4.6",
|
|
264
264
|
"easy-table": "^1.2.0",
|
|
265
265
|
"jmespath": "^0.16.0",
|
|
266
266
|
"json-to-ast": "^2.1.0",
|
|
267
267
|
"minimist": "^1.2.8",
|
|
268
268
|
"node-forge": "^1.3.1",
|
|
269
269
|
"omelette": "^0.4.17",
|
|
270
|
-
"open": "^10.0
|
|
270
|
+
"open": "^10.1.0",
|
|
271
271
|
"ora": "^8.0.1",
|
|
272
272
|
"semver": "^7.6.0",
|
|
273
273
|
"strip-json-comments": "^5.0.1",
|
|
274
274
|
"typescript": "^5.3.3",
|
|
275
275
|
"update-notifier": "^7.0.0",
|
|
276
276
|
"uuid": "^9.0.1",
|
|
277
|
-
"yaml": "^2.
|
|
277
|
+
"yaml": "^2.4.1"
|
|
278
278
|
},
|
|
279
279
|
"devDependencies": {
|
|
280
280
|
"@actions/core": "^1.10.1",
|
|
@@ -284,19 +284,19 @@
|
|
|
284
284
|
"@types/json-to-ast": "^2.1.4",
|
|
285
285
|
"@types/minimist": "^1.2.5",
|
|
286
286
|
"@types/mocha": "^10.0.6",
|
|
287
|
-
"@types/node": "^20.11.
|
|
287
|
+
"@types/node": "^20.11.25",
|
|
288
288
|
"@types/node-forge": "^1.3.11",
|
|
289
289
|
"@types/omelette": "^0.4.4",
|
|
290
|
-
"@types/semver": "^7.5.
|
|
290
|
+
"@types/semver": "^7.5.8",
|
|
291
291
|
"@types/sinon": "^17.0.3",
|
|
292
292
|
"@types/update-notifier": "^6.0.8",
|
|
293
293
|
"@types/uuid": "^9.0.8",
|
|
294
294
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
295
295
|
"@typescript-eslint/parser": "^6.21.0",
|
|
296
296
|
"c8": "^8.0.1",
|
|
297
|
-
"eslint": "^8.
|
|
297
|
+
"eslint": "^8.57.0",
|
|
298
298
|
"eslint-plugin-cli-microsoft365": "file:eslint-rules",
|
|
299
|
-
"eslint-plugin-mocha": "^10.
|
|
299
|
+
"eslint-plugin-mocha": "^10.4.1",
|
|
300
300
|
"mocha": "^10.3.0",
|
|
301
301
|
"rimraf": "^5.0.5",
|
|
302
302
|
"sinon": "^17.0.0",
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var _SpoFolderRenameCommand_instances, _SpoFolderRenameCommand_initOptions, _SpoFolderRenameCommand_initValidators, _SpoFolderRenameCommand_initTypes;
|
|
7
|
-
import request from '../../../../request.js';
|
|
8
|
-
import { formatting } from '../../../../utils/formatting.js';
|
|
9
|
-
import { urlUtil } from '../../../../utils/urlUtil.js';
|
|
10
|
-
import { validation } from '../../../../utils/validation.js';
|
|
11
|
-
import SpoCommand from '../../../base/SpoCommand.js';
|
|
12
|
-
import commands from '../../commands.js';
|
|
13
|
-
class SpoFolderRenameCommand extends SpoCommand {
|
|
14
|
-
get name() {
|
|
15
|
-
return commands.FOLDER_RENAME;
|
|
16
|
-
}
|
|
17
|
-
get description() {
|
|
18
|
-
return 'Renames a folder';
|
|
19
|
-
}
|
|
20
|
-
constructor() {
|
|
21
|
-
super();
|
|
22
|
-
_SpoFolderRenameCommand_instances.add(this);
|
|
23
|
-
__classPrivateFieldGet(this, _SpoFolderRenameCommand_instances, "m", _SpoFolderRenameCommand_initOptions).call(this);
|
|
24
|
-
__classPrivateFieldGet(this, _SpoFolderRenameCommand_instances, "m", _SpoFolderRenameCommand_initValidators).call(this);
|
|
25
|
-
__classPrivateFieldGet(this, _SpoFolderRenameCommand_instances, "m", _SpoFolderRenameCommand_initTypes).call(this);
|
|
26
|
-
}
|
|
27
|
-
getExcludedOptionsWithUrls() {
|
|
28
|
-
return ['url'];
|
|
29
|
-
}
|
|
30
|
-
async commandAction(logger, args) {
|
|
31
|
-
try {
|
|
32
|
-
if (this.verbose) {
|
|
33
|
-
await logger.logToStderr(`Renaming folder ${args.options.url} to ${args.options.name}`);
|
|
34
|
-
}
|
|
35
|
-
const serverRelativePath = urlUtil.getServerRelativePath(args.options.webUrl, args.options.url);
|
|
36
|
-
const requestOptions = {
|
|
37
|
-
url: `${args.options.webUrl}/_api/Web/GetFolderByServerRelativePath(DecodedUrl='${formatting.encodeQueryParameter(serverRelativePath)}')/ListItemAllFields`,
|
|
38
|
-
headers: {
|
|
39
|
-
accept: 'application/json;odata=nometadata',
|
|
40
|
-
'if-match': '*'
|
|
41
|
-
},
|
|
42
|
-
data: {
|
|
43
|
-
FileLeafRef: args.options.name,
|
|
44
|
-
Title: args.options.name
|
|
45
|
-
},
|
|
46
|
-
responseType: 'json'
|
|
47
|
-
};
|
|
48
|
-
const response = await request.patch(requestOptions);
|
|
49
|
-
if (response && response['odata.null'] === true) {
|
|
50
|
-
throw 'Folder not found.';
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
catch (err) {
|
|
54
|
-
this.handleRejectedODataJsonPromise(err);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
_SpoFolderRenameCommand_instances = new WeakSet(), _SpoFolderRenameCommand_initOptions = function _SpoFolderRenameCommand_initOptions() {
|
|
59
|
-
this.options.unshift({
|
|
60
|
-
option: '-u, --webUrl <webUrl>'
|
|
61
|
-
}, {
|
|
62
|
-
option: '--url <url>'
|
|
63
|
-
}, {
|
|
64
|
-
option: '-n, --name <name>'
|
|
65
|
-
});
|
|
66
|
-
}, _SpoFolderRenameCommand_initValidators = function _SpoFolderRenameCommand_initValidators() {
|
|
67
|
-
this.validators.push(async (args) => validation.isValidSharePointUrl(args.options.webUrl));
|
|
68
|
-
}, _SpoFolderRenameCommand_initTypes = function _SpoFolderRenameCommand_initTypes() {
|
|
69
|
-
this.types.string.push('webUrl', 'url', 'name');
|
|
70
|
-
};
|
|
71
|
-
export default new SpoFolderRenameCommand();
|
|
72
|
-
//# sourceMappingURL=folder-rename.js.map
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
-
|
|
3
|
-
# spo folder rename
|
|
4
|
-
|
|
5
|
-
Renames a folder
|
|
6
|
-
|
|
7
|
-
## Usage
|
|
8
|
-
|
|
9
|
-
```sh
|
|
10
|
-
m365 spo folder rename [options]
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Options
|
|
14
|
-
|
|
15
|
-
```md definition-list
|
|
16
|
-
`-u, --webUrl <webUrl>`
|
|
17
|
-
: The URL of the site where the folder to be renamed is located.
|
|
18
|
-
|
|
19
|
-
`--url <url>`
|
|
20
|
-
: The server- or site-relative decoded URL of the folder (including the folder).
|
|
21
|
-
|
|
22
|
-
`-n, --name <name>`
|
|
23
|
-
: New name for the target folder.
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
<Global />
|
|
27
|
-
|
|
28
|
-
## Examples
|
|
29
|
-
|
|
30
|
-
Renames a folder with a specific site-relative URL.
|
|
31
|
-
|
|
32
|
-
```sh
|
|
33
|
-
m365 spo folder rename --webUrl https://contoso.sharepoint.com/sites/project-x --url '/Shared Documents/My Folder 1' --name 'My Folder 2'
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
Renames a folder with a specific server-relative URL.
|
|
37
|
-
|
|
38
|
-
```sh
|
|
39
|
-
m365 spo folder rename --webUrl https://contoso.sharepoint.com/sites/project-x --url '/sites/project-x/Shared Documents/My Folder 1' --name 'My Folder 2'
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
## Response
|
|
43
|
-
|
|
44
|
-
The command won't return a response on success.
|