@pnp/cli-microsoft365 5.7.0-beta.c116041 → 6.0.0-beta.22bbec5
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/dist/Auth.js +1 -2
- package/dist/m365/aad/commands/app/app-remove.js +0 -4
- package/dist/m365/aad/commands/app/app-role-remove.js +0 -4
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +13 -13
- package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +14 -14
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +12 -12
- package/dist/m365/aad/commands/o365group/o365group-add.js +2 -7
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +6 -6
- package/dist/m365/aad/commands/o365group/o365group-teamify.js +12 -12
- package/dist/m365/aad/commands/policy/policy-list.js +6 -6
- package/dist/m365/aad/commands/sp/sp-get.js +14 -14
- package/dist/m365/aad/commands.js +0 -2
- package/dist/m365/cli/commands/config/config-set.js +0 -1
- package/dist/m365/flow/commands/flow-disable.js +2 -2
- package/dist/m365/flow/commands/flow-enable.js +2 -2
- package/dist/m365/flow/commands/flow-export.js +5 -5
- package/dist/m365/flow/commands/flow-get.js +2 -2
- package/dist/m365/flow/commands/flow-list.js +2 -2
- package/dist/m365/flow/commands/flow-remove.js +3 -3
- package/dist/m365/flow/commands/run/run-cancel.js +6 -6
- package/dist/m365/flow/commands/run/run-get.js +4 -4
- package/dist/m365/flow/commands/run/run-list.js +4 -4
- package/dist/m365/flow/commands/run/run-resubmit.js +7 -7
- package/dist/m365/outlook/commands/message/message-move.js +2 -2
- package/dist/m365/pa/commands/connector/connector-export.js +3 -3
- package/dist/m365/pa/commands/connector/connector-list.js +2 -2
- package/dist/m365/pa/commands/solution/solution-reference-add.js +7 -7
- package/dist/m365/planner/commands/bucket/bucket-add.js +4 -11
- package/dist/m365/planner/commands/bucket/bucket-get.js +4 -11
- package/dist/m365/planner/commands/bucket/bucket-list.js +4 -11
- package/dist/m365/planner/commands/bucket/bucket-remove.js +4 -11
- package/dist/m365/planner/commands/bucket/bucket-set.js +4 -11
- package/dist/m365/planner/commands/plan/plan-get.js +0 -4
- package/dist/m365/planner/commands/task/task-add.js +5 -10
- package/dist/m365/planner/commands/task/task-get.js +5 -19
- package/dist/m365/planner/commands/task/task-list.js +4 -11
- package/dist/m365/planner/commands/task/task-set.js +5 -10
- package/dist/m365/planner/commands.js +0 -2
- package/dist/m365/spfx/commands/package/package-generate.js +2 -2
- package/dist/m365/spo/commands/app/SpoAppBaseCommand.js +1 -1
- package/dist/m365/spo/commands/app/app-add.js +7 -7
- package/dist/m365/spo/commands/app/app-deploy.js +7 -7
- package/dist/m365/spo/commands/app/app-get.js +7 -7
- package/dist/m365/spo/commands/app/app-install.js +6 -6
- package/dist/m365/spo/commands/app/app-list.js +7 -7
- package/dist/m365/spo/commands/app/app-remove.js +7 -7
- package/dist/m365/spo/commands/app/app-retract.js +7 -7
- package/dist/m365/spo/commands/app/app-uninstall.js +6 -6
- package/dist/m365/spo/commands/app/app-upgrade.js +6 -6
- package/dist/m365/spo/commands/apppage/apppage-set.js +2 -2
- package/dist/m365/spo/commands/cdn/cdn-policy-list.js +7 -7
- package/dist/m365/spo/commands/cdn/cdn-policy-set.js +7 -7
- package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +13 -13
- package/dist/m365/spo/commands/customaction/customaction-add.js +3 -3
- package/dist/m365/spo/commands/customaction/customaction-clear.js +3 -3
- package/dist/m365/spo/commands/customaction/customaction-get.js +5 -4
- package/dist/m365/spo/commands/customaction/customaction-list.js +5 -4
- package/dist/m365/spo/commands/customaction/customaction-remove.js +6 -5
- package/dist/m365/spo/commands/customaction/customaction-set.js +3 -3
- package/dist/m365/spo/commands/feature/feature-disable.js +4 -4
- package/dist/m365/spo/commands/feature/feature-enable.js +5 -5
- package/dist/m365/spo/commands/feature/feature-list.js +3 -3
- package/dist/m365/spo/commands/field/field-get.js +1 -7
- package/dist/m365/spo/commands/field/field-remove.js +1 -7
- package/dist/m365/spo/commands/file/file-checkin.js +8 -8
- package/dist/m365/spo/commands/file/file-checkout.js +8 -8
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +16 -16
- package/dist/m365/spo/commands/folder/folder-get.js +2 -2
- package/dist/m365/spo/commands/folder/folder-remove.js +3 -3
- package/dist/m365/spo/commands/folder/folder-rename.js +4 -4
- package/dist/m365/spo/commands/hubsite/hubsite-connect.js +7 -7
- package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +6 -6
- package/dist/m365/spo/commands/hubsite/hubsite-register.js +4 -4
- package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +4 -4
- package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +5 -5
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +4 -4
- package/dist/m365/spo/commands/list/list-contenttype-add.js +4 -4
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +6 -6
- package/dist/m365/spo/commands/list/list-list.js +3 -13
- package/dist/m365/spo/commands/list/list-view-field-add.js +23 -23
- package/dist/m365/spo/commands/list/list-view-field-remove.js +14 -14
- package/dist/m365/spo/commands/list/list-view-field-set.js +18 -18
- package/dist/m365/spo/commands/list/list-view-get.js +12 -12
- package/dist/m365/spo/commands/list/list-view-remove.js +14 -14
- package/dist/m365/spo/commands/list/list-view-set.js +14 -14
- package/dist/m365/spo/commands/listitem/listitem-list.js +6 -25
- package/dist/m365/spo/commands/listitem/listitem-record-declare.js +4 -4
- package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +4 -4
- package/dist/m365/spo/commands/page/page-column-get.js +2 -2
- package/dist/m365/spo/commands/page/page-column-list.js +2 -2
- package/dist/m365/spo/commands/page/page-control-get.js +4 -4
- package/dist/m365/spo/commands/page/page-control-list.js +3 -3
- package/dist/m365/spo/commands/page/page-control-set.js +3 -3
- package/dist/m365/spo/commands/page/page-section-add.js +2 -2
- package/dist/m365/spo/commands/page/page-section-get.js +2 -2
- package/dist/m365/spo/commands/page/page-section-list.js +2 -2
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +2 -2
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +4 -4
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +4 -4
- package/dist/m365/spo/commands/site/site-appcatalog-add.js +3 -3
- package/dist/m365/spo/commands/site/site-appcatalog-remove.js +3 -3
- package/dist/m365/spo/commands/site/site-apppermission-get.js +2 -2
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +9 -9
- package/dist/m365/spo/commands/site/site-apppermission-set.js +6 -6
- package/dist/m365/spo/commands/site/site-chrome-set.js +3 -3
- package/dist/m365/spo/commands/site/site-ensure.js +1 -1
- package/dist/m365/spo/commands/site/site-groupify.js +3 -3
- package/dist/m365/spo/commands/site/site-list.js +6 -17
- package/dist/m365/spo/commands/site/site-rename.js +9 -9
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-grant.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-list.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +5 -5
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +5 -5
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +5 -5
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +3 -3
- package/dist/m365/spo/commands/web/web-add.js +5 -5
- package/dist/m365/spo/commands/web/web-get.js +3 -3
- package/dist/m365/spo/commands/web/web-list.js +4 -4
- package/dist/m365/spo/commands/web/web-reindex.js +8 -8
- package/dist/m365/spo/commands/web/web-remove.js +5 -5
- package/dist/m365/spo/commands/web/web-set.js +4 -4
- package/dist/m365/spo/commands.js +0 -3
- package/dist/m365/teams/commands/app/app-install.js +4 -4
- package/dist/m365/teams/commands/app/app-uninstall.js +3 -3
- package/dist/m365/teams/commands/channel/channel-get.js +19 -19
- package/dist/m365/teams/commands/channel/channel-remove.js +15 -15
- package/dist/m365/teams/commands/channel/channel-set.js +7 -7
- package/dist/m365/teams/commands/message/message-get.js +3 -3
- package/dist/m365/teams/commands/tab/tab-get.js +13 -13
- package/dist/m365/teams/commands/tab/tab-remove.js +6 -6
- package/dist/m365/teams/commands/team/team-archive.js +3 -13
- package/dist/m365/teams/commands/team/team-clone.js +3 -20
- package/dist/m365/teams/commands/team/team-remove.js +5 -17
- package/dist/m365/teams/commands/team/team-set.js +1 -13
- package/dist/m365/teams/commands/team/team-unarchive.js +4 -16
- package/dist/m365/teams/commands/user/user-app-add.js +4 -4
- package/dist/m365/teams/commands/user/user-app-remove.js +3 -3
- package/dist/m365/viva/commands/connections/connections-app-create.js +9 -9
- package/dist/m365/yammer/commands/group/group-user-add.js +8 -8
- package/dist/m365/yammer/commands/group/group-user-remove.js +11 -11
- package/dist/m365/yammer/commands/message/message-like-set.js +5 -5
- package/dist/m365/yammer/commands/user/user-get.js +5 -5
- package/dist/settingsNames.js +0 -1
- package/docs/docs/cmd/aad/app/app-remove.md +0 -6
- package/docs/docs/cmd/aad/app/app-role-remove.md +0 -6
- package/docs/docs/cmd/aad/approleassignment/approleassignment-add.md +5 -5
- package/docs/docs/cmd/aad/approleassignment/approleassignment-list.md +5 -5
- package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.md +5 -5
- package/docs/docs/cmd/aad/o365group/o365group-add.md +3 -3
- package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-list.md +7 -7
- package/docs/docs/cmd/aad/o365group/o365group-teamify.md +4 -4
- package/docs/docs/cmd/aad/policy/policy-list.md +2 -2
- package/docs/docs/cmd/aad/sp/sp-get.md +5 -5
- package/docs/docs/cmd/flow/flow-disable.md +3 -3
- package/docs/docs/cmd/flow/flow-enable.md +1 -1
- package/docs/docs/cmd/flow/flow-export.md +5 -5
- package/docs/docs/cmd/flow/flow-get.md +3 -3
- package/docs/docs/cmd/flow/flow-list.md +3 -3
- package/docs/docs/cmd/flow/flow-remove.md +5 -5
- package/docs/docs/cmd/flow/run/run-cancel.md +3 -3
- package/docs/docs/cmd/flow/run/run-get.md +3 -3
- package/docs/docs/cmd/flow/run/run-list.md +3 -3
- package/docs/docs/cmd/flow/run/run-resubmit.md +4 -4
- package/docs/docs/cmd/outlook/message/message-move.md +4 -4
- package/docs/docs/cmd/pa/connector/connector-export.md +3 -3
- package/docs/docs/cmd/pa/connector/connector-list.md +2 -2
- package/docs/docs/cmd/pa/solution/solution-reference-add.md +2 -2
- package/docs/docs/cmd/planner/bucket/bucket-add.md +0 -3
- package/docs/docs/cmd/planner/bucket/bucket-get.md +0 -3
- package/docs/docs/cmd/planner/bucket/bucket-list.md +0 -3
- package/docs/docs/cmd/planner/bucket/bucket-remove.md +0 -3
- package/docs/docs/cmd/planner/bucket/bucket-set.md +0 -3
- package/docs/docs/cmd/planner/plan/plan-get.md +0 -6
- package/docs/docs/cmd/planner/task/task-add.md +0 -3
- package/docs/docs/cmd/planner/task/task-get.md +0 -3
- package/docs/docs/cmd/planner/task/task-list.md +0 -3
- package/docs/docs/cmd/planner/task/task-set.md +0 -3
- package/docs/docs/cmd/spfx/package/package-generate.md +2 -2
- package/docs/docs/cmd/spo/app/app-add.md +2 -2
- package/docs/docs/cmd/spo/app/app-deploy.md +2 -2
- package/docs/docs/cmd/spo/app/app-get.md +2 -2
- package/docs/docs/cmd/spo/app/app-install.md +2 -2
- package/docs/docs/cmd/spo/app/app-list.md +2 -2
- package/docs/docs/cmd/spo/app/app-remove.md +2 -2
- package/docs/docs/cmd/spo/app/app-retract.md +2 -2
- package/docs/docs/cmd/spo/app/app-uninstall.md +2 -2
- package/docs/docs/cmd/spo/app/app-upgrade.md +2 -2
- package/docs/docs/cmd/spo/apppage/apppage-set.md +2 -2
- package/docs/docs/cmd/spo/cdn/cdn-policy-list.md +3 -3
- package/docs/docs/cmd/spo/cdn/cdn-policy-set.md +3 -3
- package/docs/docs/cmd/spo/contenttype/contenttype-field-set.md +4 -4
- package/docs/docs/cmd/spo/customaction/customaction-add.md +10 -10
- package/docs/docs/cmd/spo/customaction/customaction-clear.md +4 -4
- package/docs/docs/cmd/spo/customaction/customaction-get.md +5 -5
- package/docs/docs/cmd/spo/customaction/customaction-list.md +4 -4
- package/docs/docs/cmd/spo/customaction/customaction-remove.md +9 -9
- package/docs/docs/cmd/spo/customaction/customaction-set.md +7 -7
- package/docs/docs/cmd/spo/feature/feature-disable.md +4 -4
- package/docs/docs/cmd/spo/feature/feature-enable.md +2 -2
- package/docs/docs/cmd/spo/feature/feature-list.md +3 -3
- package/docs/docs/cmd/spo/field/field-get.md +0 -3
- package/docs/docs/cmd/spo/field/field-remove.md +0 -3
- package/docs/docs/cmd/spo/file/file-checkin.md +6 -6
- package/docs/docs/cmd/spo/file/file-checkout.md +4 -4
- package/docs/docs/cmd/spo/file/file-sharinginfo-get.md +7 -7
- package/docs/docs/cmd/spo/folder/folder-get.md +2 -2
- package/docs/docs/cmd/spo/folder/folder-remove.md +3 -3
- package/docs/docs/cmd/spo/folder/folder-rename.md +2 -2
- package/docs/docs/cmd/spo/hubsite/hubsite-connect.md +4 -4
- package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.md +4 -4
- package/docs/docs/cmd/spo/hubsite/hubsite-register.md +2 -2
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-grant.md +4 -4
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-revoke.md +3 -3
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.md +2 -2
- package/docs/docs/cmd/spo/list/list-contenttype-add.md +3 -3
- package/docs/docs/cmd/spo/list/list-contenttype-remove.md +3 -3
- package/docs/docs/cmd/spo/list/list-list.md +0 -3
- package/docs/docs/cmd/spo/list/list-view-field-add.md +8 -8
- package/docs/docs/cmd/spo/list/list-view-field-remove.md +6 -6
- package/docs/docs/cmd/spo/list/list-view-field-set.md +7 -7
- package/docs/docs/cmd/spo/list/list-view-get.md +7 -7
- package/docs/docs/cmd/spo/list/list-view-remove.md +8 -8
- package/docs/docs/cmd/spo/list/list-view-set.md +7 -7
- package/docs/docs/cmd/spo/listitem/listitem-list.md +0 -6
- package/docs/docs/cmd/spo/listitem/listitem-record-declare.md +5 -5
- package/docs/docs/cmd/spo/listitem/listitem-record-undeclare.md +3 -3
- package/docs/docs/cmd/spo/page/page-column-get.md +3 -3
- package/docs/docs/cmd/spo/page/page-column-list.md +3 -3
- package/docs/docs/cmd/spo/page/page-control-get.md +3 -3
- package/docs/docs/cmd/spo/page/page-control-list.md +3 -3
- package/docs/docs/cmd/spo/page/page-control-set.md +4 -4
- package/docs/docs/cmd/spo/page/page-section-add.md +3 -3
- package/docs/docs/cmd/spo/page/page-section-get.md +3 -3
- package/docs/docs/cmd/spo/page/page-section-list.md +3 -3
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.md +2 -2
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +2 -2
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.md +2 -2
- package/docs/docs/cmd/spo/site/site-appcatalog-add.md +2 -2
- package/docs/docs/cmd/spo/site/site-appcatalog-remove.md +2 -2
- package/docs/docs/cmd/spo/site/site-apppermission-get.md +2 -2
- package/docs/docs/cmd/spo/site/site-apppermission-remove.md +2 -2
- package/docs/docs/cmd/spo/site/site-apppermission-set.md +5 -5
- package/docs/docs/cmd/spo/site/site-chrome-set.md +4 -4
- package/docs/docs/cmd/spo/site/site-groupify.md +5 -5
- package/docs/docs/cmd/spo/site/site-list.md +6 -6
- package/docs/docs/cmd/spo/site/site-rename.md +6 -6
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-grant.md +4 -4
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-list.md +3 -3
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-revoke.md +3 -3
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-get.md +2 -2
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-remove.md +5 -5
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.md +3 -3
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.md +6 -3
- package/docs/docs/cmd/spo/web/web-add.md +4 -4
- package/docs/docs/cmd/spo/web/web-get.md +3 -3
- package/docs/docs/cmd/spo/web/web-list.md +2 -2
- package/docs/docs/cmd/spo/web/web-reindex.md +2 -2
- package/docs/docs/cmd/spo/web/web-remove.md +2 -2
- package/docs/docs/cmd/spo/web/web-set.md +9 -9
- package/docs/docs/cmd/teams/app/app-install.md +5 -5
- package/docs/docs/cmd/teams/app/app-uninstall.md +3 -3
- package/docs/docs/cmd/teams/channel/channel-get.md +7 -7
- package/docs/docs/cmd/teams/channel/channel-remove.md +7 -7
- package/docs/docs/cmd/teams/channel/channel-set.md +4 -4
- package/docs/docs/cmd/teams/message/message-get.md +3 -3
- package/docs/docs/cmd/teams/tab/tab-get.md +6 -6
- package/docs/docs/cmd/teams/tab/tab-remove.md +4 -4
- package/docs/docs/cmd/teams/team/team-archive.md +0 -3
- package/docs/docs/cmd/teams/team/team-clone.md +0 -3
- package/docs/docs/cmd/teams/team/team-remove.md +0 -3
- package/docs/docs/cmd/teams/team/team-set.md +0 -3
- package/docs/docs/cmd/teams/team/team-unarchive.md +0 -3
- package/docs/docs/cmd/teams/user/user-app-add.md +3 -3
- package/docs/docs/cmd/teams/user/user-app-remove.md +3 -3
- package/docs/docs/cmd/viva/connections/connections-app-create.md +2 -2
- package/docs/docs/cmd/yammer/group/group-user-add.md +5 -5
- package/docs/docs/cmd/yammer/group/group-user-remove.md +5 -5
- package/docs/docs/cmd/yammer/message/message-like-set.md +4 -4
- package/docs/docs/cmd/yammer/user/user-get.md +2 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/m365/spo/commands/site/site-classic-add.js +0 -342
- package/dist/m365/spo/commands/site/site-classic-list.js +0 -106
- package/dist/m365/spo/commands/site/site-classic-set.js +0 -367
- package/docs/docs/cmd/spo/site/site-classic-add.md +0 -93
- package/docs/docs/cmd/spo/site/site-classic-list.md +0 -68
- package/docs/docs/cmd/spo/site/site-classic-set.md +0 -102
|
@@ -16,9 +16,6 @@ m365 teams team archive [options]
|
|
|
16
16
|
`-n, --name [name]`
|
|
17
17
|
: The display name of the Microsoft Teams team to archive. Specify either id or name but not both
|
|
18
18
|
|
|
19
|
-
`--teamId [teamId]`
|
|
20
|
-
: (deprecated. Use `id` instead) The ID of the Microsoft Teams team to archive
|
|
21
|
-
|
|
22
19
|
`--shouldSetSpoSiteReadOnlyForMembers`
|
|
23
20
|
: Sets the permissions for team members to read-only on the SharePoint Online site associated with the team
|
|
24
21
|
|
|
@@ -13,9 +13,6 @@ m365 teams team clone [options]
|
|
|
13
13
|
`-i, --id [id]`
|
|
14
14
|
: The ID of the Microsoft Teams team to clone
|
|
15
15
|
|
|
16
|
-
`--teamId [teamId]`
|
|
17
|
-
: (deprecated. Use `id` instead) The ID of the Microsoft Teams team to clone
|
|
18
|
-
|
|
19
16
|
`-n, --name [name]`
|
|
20
17
|
: The display name for the new Microsoft Teams Team to clone
|
|
21
18
|
|
|
@@ -16,9 +16,6 @@ m365 teams team remove [options]
|
|
|
16
16
|
`-n, --name [name]`
|
|
17
17
|
: The display name of the Microsoft Teams team to remove. Specify either id or name but not both
|
|
18
18
|
|
|
19
|
-
`--teamId [teamId]`
|
|
20
|
-
: (deprecated. Use `id` instead) The ID of the Teams team to remove
|
|
21
|
-
|
|
22
19
|
`--confirm`
|
|
23
20
|
: Don't prompt for confirming removing the specified team
|
|
24
21
|
|
|
@@ -13,9 +13,6 @@ m365 teams team set [options]
|
|
|
13
13
|
`-i, --id [id]`
|
|
14
14
|
: The ID of the Microsoft Teams team for which to update settings
|
|
15
15
|
|
|
16
|
-
`--teamId [teamId]`
|
|
17
|
-
: (deprecated. Use `id` instead) The ID of the Microsoft Teams team for which to update settings
|
|
18
|
-
|
|
19
16
|
`-n, --name [name]`
|
|
20
17
|
: The display name for the Microsoft Teams team for which to update settings
|
|
21
18
|
|
|
@@ -16,9 +16,6 @@ m365 teams team unarchive [options]
|
|
|
16
16
|
`-n, --name [name]`
|
|
17
17
|
: The display name of the Microsoft Teams team to restore. Specify either id or name but not both
|
|
18
18
|
|
|
19
|
-
`--teamId [teamId]`
|
|
20
|
-
: (deprecated. Use `id` instead) The ID of the Microsoft Teams team to restore
|
|
21
|
-
|
|
22
19
|
--8<-- "docs/cmd/_global.md"
|
|
23
20
|
|
|
24
21
|
## Remarks
|
|
@@ -10,7 +10,7 @@ m365 teams user app add [options]
|
|
|
10
10
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
|
-
`--
|
|
13
|
+
`--id <id>`
|
|
14
14
|
: The ID of the app to install
|
|
15
15
|
|
|
16
16
|
`--userId <userId>`
|
|
@@ -20,12 +20,12 @@ m365 teams user app add [options]
|
|
|
20
20
|
|
|
21
21
|
## Remarks
|
|
22
22
|
|
|
23
|
-
The `
|
|
23
|
+
The `id` has to be the ID of the app from the Microsoft Teams App Catalog. Do not use the ID from the manifest of the zip app package. Use the [teams app list](../app/app-list.md) command to get this ID.
|
|
24
24
|
|
|
25
25
|
## Examples
|
|
26
26
|
|
|
27
27
|
Install an app from the catalog for the specified user
|
|
28
28
|
|
|
29
29
|
```sh
|
|
30
|
-
m365 teams user app add --
|
|
30
|
+
m365 teams user app add --id 4440558e-8c73-4597-abc7-3644a64c4bce --userId 2609af39-7775-4f94-a3dc-0dd67657e900
|
|
31
31
|
```
|
|
@@ -10,7 +10,7 @@ m365 teams user app remove [options]
|
|
|
10
10
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
|
-
`--
|
|
13
|
+
`--id <id>`
|
|
14
14
|
: The unique id of the app instance installed for the user
|
|
15
15
|
|
|
16
16
|
`--userId <userId>`
|
|
@@ -23,7 +23,7 @@ m365 teams user app remove [options]
|
|
|
23
23
|
|
|
24
24
|
## Remarks
|
|
25
25
|
|
|
26
|
-
The `
|
|
26
|
+
The `id` has to be the id of the app instance installed for the user.
|
|
27
27
|
Do not use the ID from the manifest of the zip app package or the id from the Microsoft Teams App Catalog.
|
|
28
28
|
|
|
29
29
|
## Examples
|
|
@@ -31,5 +31,5 @@ Do not use the ID from the manifest of the zip app package or the id from the Mi
|
|
|
31
31
|
Uninstall an app for the specified user
|
|
32
32
|
|
|
33
33
|
```sh
|
|
34
|
-
m365 teams user app remove --
|
|
34
|
+
m365 teams user app remove --id YzUyN2E0NzAtYTg4Mi00ODFjLTk4MWMtZWU2ZWZhYmE4NWM3IyM0ZDFlYTA0Ny1mMTk2LTQ1MGQtYjJlOS0wZDI4NTViYTA1YTY= --userId 2609af39-7775-4f94-a3dc-0dd67657e900
|
|
35
35
|
```
|
|
@@ -13,7 +13,7 @@ m365 viva connections app create [options]
|
|
|
13
13
|
`--portalUrl <portalUrl>`
|
|
14
14
|
: The URL of the site to pin in Microsoft Teams. Must be a Communication site
|
|
15
15
|
|
|
16
|
-
`--
|
|
16
|
+
`--name <name>`
|
|
17
17
|
: Name of the app to create, eg. `Contoso`. No longer than 30 characters
|
|
18
18
|
|
|
19
19
|
`--description <description>`
|
|
@@ -63,7 +63,7 @@ After creating the Viva Connections desktop app package, you need to upload it t
|
|
|
63
63
|
Create a Viva Connections desktop app package
|
|
64
64
|
|
|
65
65
|
```sh
|
|
66
|
-
m365 viva connections app create --portalUrl https://contoso.sharepoint.com --
|
|
66
|
+
m365 viva connections app create --portalUrl https://contoso.sharepoint.com --name Contoso --description "Contoso company app" --longDescription "Stay on top of what's happening at Contoso" --companyName Contoso --companyWebsiteUrl https://contoso.com --coloredIconPath icon-color.png --outlineIconPath icon-outline.png
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
## More information
|
|
@@ -10,10 +10,10 @@ m365 yammer group user add [options]
|
|
|
10
10
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
|
-
`--
|
|
13
|
+
`--groupId <groupId>`
|
|
14
14
|
: The ID of the group to add the user to
|
|
15
15
|
|
|
16
|
-
`--
|
|
16
|
+
`--id [id]`
|
|
17
17
|
: ID of the user to add to the group. If not specified, adds the current user
|
|
18
18
|
|
|
19
19
|
`--email [email]`
|
|
@@ -33,17 +33,17 @@ If the specified user is not a member of the network, the command will return an
|
|
|
33
33
|
Adds the current user to the group with the ID `5611239081`
|
|
34
34
|
|
|
35
35
|
```sh
|
|
36
|
-
m365 yammer group user add --
|
|
36
|
+
m365 yammer group user add --groupId 5611239081
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
Adds the user with ID `66622349` to the group with the ID `5611239081`
|
|
40
40
|
|
|
41
41
|
```sh
|
|
42
|
-
m365 yammer group user add --
|
|
42
|
+
m365 yammer group user add --groupId 5611239081 --id 66622349
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
Adds the user with e-mail `suzy@contoso.com` to the group with ID `5611239081`
|
|
46
46
|
|
|
47
47
|
```sh
|
|
48
|
-
m365 yammer group user add --
|
|
48
|
+
m365 yammer group user add --groupId 5611239081 --email suzy@contoso.com
|
|
49
49
|
```
|
|
@@ -10,10 +10,10 @@ m365 yammer group user remove [options]
|
|
|
10
10
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
|
-
`--
|
|
13
|
+
`--groupId <groupId>`
|
|
14
14
|
: The ID of the Yammer group
|
|
15
15
|
|
|
16
|
-
`--
|
|
16
|
+
`--id [id]`
|
|
17
17
|
: ID of the user to remove from the group. If not specified, removes the current user
|
|
18
18
|
|
|
19
19
|
`--confirm`
|
|
@@ -31,17 +31,17 @@ m365 yammer group user remove [options]
|
|
|
31
31
|
Remove the current user from the group with the ID `5611239081`
|
|
32
32
|
|
|
33
33
|
```sh
|
|
34
|
-
m365 yammer group user remove --
|
|
34
|
+
m365 yammer group user remove --groupId 5611239081
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
Remove the user with the ID `66622349` from the group with the ID `5611239081`
|
|
38
38
|
|
|
39
39
|
```sh
|
|
40
|
-
m365 yammer group user remove --
|
|
40
|
+
m365 yammer group user remove --groupId 5611239081 --id 66622349
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
Remove the user with the ID `66622349` from the group with the ID `5611239081` without asking for confirmation
|
|
44
44
|
|
|
45
45
|
```sh
|
|
46
|
-
m365 yammer group user remove --
|
|
46
|
+
m365 yammer group user remove --groupId 5611239081 --id 66622349 --confirm
|
|
47
47
|
```
|
|
@@ -10,7 +10,7 @@ m365 yammer message like set [options]
|
|
|
10
10
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
|
-
`--
|
|
13
|
+
`--messageId <messageId>`
|
|
14
14
|
: The id of the Yammer message
|
|
15
15
|
|
|
16
16
|
`--enable [enable]`
|
|
@@ -31,17 +31,17 @@ m365 yammer message like set [options]
|
|
|
31
31
|
Likes the message with the ID `5611239081`
|
|
32
32
|
|
|
33
33
|
```sh
|
|
34
|
-
m365 yammer message like set --
|
|
34
|
+
m365 yammer message like set --messageId 5611239081
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
Unlike the message with the ID `5611239081`
|
|
38
38
|
|
|
39
39
|
```sh
|
|
40
|
-
m365 yammer message like set --
|
|
40
|
+
m365 yammer message like set --messageId 5611239081 --enable false
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
Unlike the message with the ID `5611239081` without asking for confirmation
|
|
44
44
|
|
|
45
45
|
```sh
|
|
46
|
-
m365 yammer message like set --
|
|
46
|
+
m365 yammer message like set --messageId 5611239081 --enable false --confirm
|
|
47
47
|
```
|
|
@@ -10,7 +10,7 @@ m365 yammer user get [options]
|
|
|
10
10
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
|
-
`-i, --
|
|
13
|
+
`-i, --id [id]`
|
|
14
14
|
: Retrieve a user by ID
|
|
15
15
|
|
|
16
16
|
`--email [email]`
|
|
@@ -36,7 +36,7 @@ m365 yammer user get
|
|
|
36
36
|
Returns the user with the ID 1496550697
|
|
37
37
|
|
|
38
38
|
```sh
|
|
39
|
-
m365 yammer user get --
|
|
39
|
+
m365 yammer user get --id 1496550697
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
Returns an array of users matching the e-mail john.smith@contoso.com
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@pnp/cli-microsoft365",
|
|
9
|
-
"version": "
|
|
9
|
+
"version": "6.0.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@azure/msal-node": "^1.12.1",
|
package/package.json
CHANGED
|
@@ -1,342 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
13
|
-
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");
|
|
14
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
|
-
};
|
|
16
|
-
var _SpoSiteClassicAddCommand_instances, _SpoSiteClassicAddCommand_initTelemetry, _SpoSiteClassicAddCommand_initOptions, _SpoSiteClassicAddCommand_initValidators;
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const config_1 = require("../../../../config");
|
|
19
|
-
const request_1 = require("../../../../request");
|
|
20
|
-
const utils_1 = require("../../../../utils");
|
|
21
|
-
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
22
|
-
const commands_1 = require("../../commands");
|
|
23
|
-
class SpoSiteClassicAddCommand extends SpoCommand_1.default {
|
|
24
|
-
constructor() {
|
|
25
|
-
super();
|
|
26
|
-
_SpoSiteClassicAddCommand_instances.add(this);
|
|
27
|
-
__classPrivateFieldGet(this, _SpoSiteClassicAddCommand_instances, "m", _SpoSiteClassicAddCommand_initTelemetry).call(this);
|
|
28
|
-
__classPrivateFieldGet(this, _SpoSiteClassicAddCommand_instances, "m", _SpoSiteClassicAddCommand_initOptions).call(this);
|
|
29
|
-
__classPrivateFieldGet(this, _SpoSiteClassicAddCommand_instances, "m", _SpoSiteClassicAddCommand_initValidators).call(this);
|
|
30
|
-
}
|
|
31
|
-
get name() {
|
|
32
|
-
return commands_1.default.SITE_CLASSIC_ADD;
|
|
33
|
-
}
|
|
34
|
-
get description() {
|
|
35
|
-
return 'Creates new classic site';
|
|
36
|
-
}
|
|
37
|
-
commandAction(logger, args, cb) {
|
|
38
|
-
this.dots = '';
|
|
39
|
-
this.showDeprecationWarning(logger, commands_1.default.SITE_CLASSIC_ADD, commands_1.default.SITE_ADD);
|
|
40
|
-
utils_1.spo
|
|
41
|
-
.getSpoAdminUrl(logger, this.debug)
|
|
42
|
-
.then((_spoAdminUrl) => {
|
|
43
|
-
this.spoAdminUrl = _spoAdminUrl;
|
|
44
|
-
return utils_1.spo.ensureFormDigest(this.spoAdminUrl, logger, this.context, this.debug);
|
|
45
|
-
})
|
|
46
|
-
.then((res) => {
|
|
47
|
-
this.context = res;
|
|
48
|
-
if (args.options.removeDeletedSite) {
|
|
49
|
-
return this.siteExistsInTheRecycleBin(args.options.url, logger);
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
// assume site doesn't exist
|
|
53
|
-
return Promise.resolve(false);
|
|
54
|
-
}
|
|
55
|
-
})
|
|
56
|
-
.then((exists) => {
|
|
57
|
-
if (exists) {
|
|
58
|
-
if (this.verbose) {
|
|
59
|
-
logger.logToStderr('Site exists in the recycle bin');
|
|
60
|
-
}
|
|
61
|
-
return this.deleteSiteFromTheRecycleBin(args.options.url, args.options.wait, logger);
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
if (this.verbose) {
|
|
65
|
-
logger.logToStderr('Site not found');
|
|
66
|
-
}
|
|
67
|
-
return Promise.resolve();
|
|
68
|
-
}
|
|
69
|
-
})
|
|
70
|
-
.then(() => {
|
|
71
|
-
return utils_1.spo.ensureFormDigest(this.spoAdminUrl, logger, this.context, this.debug);
|
|
72
|
-
})
|
|
73
|
-
.then((res) => {
|
|
74
|
-
this.context = res;
|
|
75
|
-
if (this.verbose) {
|
|
76
|
-
logger.logToStderr(`Creating site collection ${args.options.url}...`);
|
|
77
|
-
}
|
|
78
|
-
const lcid = typeof args.options.lcid === 'number' ? args.options.lcid : 1033;
|
|
79
|
-
const storageQuota = typeof args.options.storageQuota === 'number' ? args.options.storageQuota : 100;
|
|
80
|
-
const storageQuotaWarningLevel = typeof args.options.storageQuotaWarningLevel === 'number' ? args.options.storageQuotaWarningLevel : 100;
|
|
81
|
-
const resourceQuota = typeof args.options.resourceQuota === 'number' ? args.options.resourceQuota : 0;
|
|
82
|
-
const resourceQuotaWarningLevel = typeof args.options.resourceQuotaWarningLevel === 'number' ? args.options.resourceQuotaWarningLevel : 0;
|
|
83
|
-
const webTemplate = args.options.webTemplate || 'STS#0';
|
|
84
|
-
const requestOptions = {
|
|
85
|
-
url: `${this.spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
|
|
86
|
-
headers: {
|
|
87
|
-
'X-RequestDigest': this.context.FormDigestValue
|
|
88
|
-
},
|
|
89
|
-
data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config_1.default.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="4" ObjectPathId="3" /><ObjectPath Id="6" ObjectPathId="5" /><Query Id="7" ObjectPathId="3"><Query SelectAllProperties="true"><Properties /></Query></Query><Query Id="8" ObjectPathId="5"><Query SelectAllProperties="false"><Properties><Property Name="IsComplete" ScalarProperty="true" /><Property Name="PollingInterval" ScalarProperty="true" /></Properties></Query></Query></Actions><ObjectPaths><Constructor Id="3" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /><Method Id="5" ParentId="3" Name="CreateSite"><Parameters><Parameter TypeId="{11f84fff-b8cf-47b6-8b50-34e692656606}"><Property Name="CompatibilityLevel" Type="Int32">0</Property><Property Name="Lcid" Type="UInt32">${lcid}</Property><Property Name="Owner" Type="String">${utils_1.formatting.escapeXml(args.options.owner)}</Property><Property Name="StorageMaximumLevel" Type="Int64">${storageQuota}</Property><Property Name="StorageWarningLevel" Type="Int64">${storageQuotaWarningLevel}</Property><Property Name="Template" Type="String">${utils_1.formatting.escapeXml(webTemplate)}</Property><Property Name="TimeZoneId" Type="Int32">${args.options.timeZone}</Property><Property Name="Title" Type="String">${utils_1.formatting.escapeXml(args.options.title)}</Property><Property Name="Url" Type="String">${utils_1.formatting.escapeXml(args.options.url)}</Property><Property Name="UserCodeMaximumLevel" Type="Double">${resourceQuota}</Property><Property Name="UserCodeWarningLevel" Type="Double">${resourceQuotaWarningLevel}</Property></Parameter></Parameters></Method></ObjectPaths></Request>`
|
|
90
|
-
};
|
|
91
|
-
return request_1.default.post(requestOptions);
|
|
92
|
-
})
|
|
93
|
-
.then((res) => {
|
|
94
|
-
return new Promise((resolve, reject) => {
|
|
95
|
-
const json = JSON.parse(res);
|
|
96
|
-
const response = json[0];
|
|
97
|
-
if (response.ErrorInfo) {
|
|
98
|
-
reject(response.ErrorInfo.ErrorMessage);
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
const operation = json[json.length - 1];
|
|
102
|
-
const isComplete = operation.IsComplete;
|
|
103
|
-
if (!args.options.wait || isComplete) {
|
|
104
|
-
resolve();
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
setTimeout(() => {
|
|
108
|
-
utils_1.spo.waitUntilFinished({
|
|
109
|
-
operationId: JSON.stringify(operation._ObjectIdentity_),
|
|
110
|
-
siteUrl: this.spoAdminUrl,
|
|
111
|
-
resolve,
|
|
112
|
-
reject,
|
|
113
|
-
logger,
|
|
114
|
-
currentContext: this.context,
|
|
115
|
-
dots: this.dots,
|
|
116
|
-
debug: this.debug,
|
|
117
|
-
verbose: this.verbose
|
|
118
|
-
});
|
|
119
|
-
}, operation.PollingInterval);
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
})
|
|
123
|
-
.then(_ => cb(), (err) => this.handleRejectedPromise(err, logger, cb));
|
|
124
|
-
}
|
|
125
|
-
siteExistsInTheRecycleBin(url, logger) {
|
|
126
|
-
return new Promise((resolve, reject) => {
|
|
127
|
-
utils_1.spo
|
|
128
|
-
.ensureFormDigest(this.spoAdminUrl, logger, this.context, this.debug)
|
|
129
|
-
.then((res) => {
|
|
130
|
-
this.context = res;
|
|
131
|
-
if (this.verbose) {
|
|
132
|
-
logger.logToStderr(`Checking if the site ${url} exists...`);
|
|
133
|
-
}
|
|
134
|
-
const requestOptions = {
|
|
135
|
-
url: `${this.spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
|
|
136
|
-
headers: {
|
|
137
|
-
'X-RequestDigest': this.context.FormDigestValue
|
|
138
|
-
},
|
|
139
|
-
data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config_1.default.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="197" ObjectPathId="196" /><ObjectPath Id="199" ObjectPathId="198" /><Query Id="200" ObjectPathId="198"><Query SelectAllProperties="true"><Properties /></Query></Query></Actions><ObjectPaths><Constructor Id="196" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /><Method Id="198" ParentId="196" Name="GetSitePropertiesByUrl"><Parameters><Parameter Type="String">${utils_1.formatting.escapeXml(url)}</Parameter><Parameter Type="Boolean">false</Parameter></Parameters></Method></ObjectPaths></Request>`
|
|
140
|
-
};
|
|
141
|
-
return request_1.default.post(requestOptions);
|
|
142
|
-
})
|
|
143
|
-
.then((res) => {
|
|
144
|
-
const json = JSON.parse(res);
|
|
145
|
-
const response = json[0];
|
|
146
|
-
if (response.ErrorInfo) {
|
|
147
|
-
if (response.ErrorInfo.ErrorTypeName === 'Microsoft.Online.SharePoint.Common.SpoNoSiteException') {
|
|
148
|
-
return Promise.resolve(false);
|
|
149
|
-
}
|
|
150
|
-
else {
|
|
151
|
-
return Promise.reject(response.ErrorInfo.ErrorMessage);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
const site = json[json.length - 1];
|
|
156
|
-
if (site.Status === 'Recycled') {
|
|
157
|
-
return Promise.reject(true);
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
return Promise.resolve(false);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
})
|
|
164
|
-
.then(() => {
|
|
165
|
-
if (this.verbose) {
|
|
166
|
-
logger.logToStderr(`Site doesn't exist. Checking if the site ${url} exists in the recycle bin...`);
|
|
167
|
-
}
|
|
168
|
-
const requestOptions = {
|
|
169
|
-
url: `${this.spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
|
|
170
|
-
headers: {
|
|
171
|
-
'X-RequestDigest': this.context.FormDigestValue
|
|
172
|
-
},
|
|
173
|
-
data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config_1.default.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="181" ObjectPathId="180" /><Query Id="182" ObjectPathId="180"><Query SelectAllProperties="true"><Properties /></Query></Query></Actions><ObjectPaths><Method Id="180" ParentId="175" Name="GetDeletedSitePropertiesByUrl"><Parameters><Parameter Type="String">${utils_1.formatting.escapeXml(url)}</Parameter></Parameters></Method><Constructor Id="175" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /></ObjectPaths></Request>`
|
|
174
|
-
};
|
|
175
|
-
return request_1.default.post(requestOptions);
|
|
176
|
-
})
|
|
177
|
-
.then((res) => {
|
|
178
|
-
const json = JSON.parse(res);
|
|
179
|
-
const response = json[0];
|
|
180
|
-
if (response.ErrorInfo) {
|
|
181
|
-
if (response.ErrorInfo.ErrorTypeName === 'Microsoft.SharePoint.Client.UnknownError') {
|
|
182
|
-
resolve(false);
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
reject(response.ErrorInfo.ErrorMessage);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
else {
|
|
189
|
-
const site = json[json.length - 1];
|
|
190
|
-
if (site.Status === 'Recycled') {
|
|
191
|
-
resolve(true);
|
|
192
|
-
}
|
|
193
|
-
else {
|
|
194
|
-
resolve(false);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}, (error) => {
|
|
198
|
-
if (typeof error === 'boolean') {
|
|
199
|
-
resolve(error);
|
|
200
|
-
}
|
|
201
|
-
else {
|
|
202
|
-
reject(error);
|
|
203
|
-
}
|
|
204
|
-
});
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
deleteSiteFromTheRecycleBin(url, wait, logger) {
|
|
208
|
-
return new Promise((resolve, reject) => {
|
|
209
|
-
utils_1.spo
|
|
210
|
-
.ensureFormDigest(this.spoAdminUrl, logger, this.context, this.debug)
|
|
211
|
-
.then((res) => {
|
|
212
|
-
this.context = res;
|
|
213
|
-
if (this.verbose) {
|
|
214
|
-
logger.logToStderr(`Deleting site ${url} from the recycle bin...`);
|
|
215
|
-
}
|
|
216
|
-
const requestOptions = {
|
|
217
|
-
url: `${this.spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
|
|
218
|
-
headers: {
|
|
219
|
-
'X-RequestDigest': this.context.FormDigestValue
|
|
220
|
-
},
|
|
221
|
-
data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config_1.default.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="185" ObjectPathId="184" /><Query Id="186" ObjectPathId="184"><Query SelectAllProperties="false"><Properties><Property Name="IsComplete" ScalarProperty="true" /><Property Name="PollingInterval" ScalarProperty="true" /></Properties></Query></Query></Actions><ObjectPaths><Method Id="184" ParentId="175" Name="RemoveDeletedSite"><Parameters><Parameter Type="String">${utils_1.formatting.escapeXml(url)}</Parameter></Parameters></Method><Constructor Id="175" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /></ObjectPaths></Request>`
|
|
222
|
-
};
|
|
223
|
-
return request_1.default.post(requestOptions);
|
|
224
|
-
})
|
|
225
|
-
.then((res) => {
|
|
226
|
-
const json = JSON.parse(res);
|
|
227
|
-
const response = json[0];
|
|
228
|
-
if (response.ErrorInfo) {
|
|
229
|
-
reject(response.ErrorInfo.ErrorMessage);
|
|
230
|
-
}
|
|
231
|
-
else {
|
|
232
|
-
const operation = json[json.length - 1];
|
|
233
|
-
const isComplete = operation.IsComplete;
|
|
234
|
-
if (!wait || isComplete) {
|
|
235
|
-
resolve();
|
|
236
|
-
return;
|
|
237
|
-
}
|
|
238
|
-
setTimeout(() => {
|
|
239
|
-
utils_1.spo.waitUntilFinished({
|
|
240
|
-
operationId: JSON.stringify(operation._ObjectIdentity_),
|
|
241
|
-
siteUrl: this.spoAdminUrl,
|
|
242
|
-
resolve,
|
|
243
|
-
reject,
|
|
244
|
-
logger,
|
|
245
|
-
currentContext: this.context,
|
|
246
|
-
dots: this.dots,
|
|
247
|
-
verbose: this.verbose,
|
|
248
|
-
debug: this.debug
|
|
249
|
-
});
|
|
250
|
-
}, operation.PollingInterval);
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
_SpoSiteClassicAddCommand_instances = new WeakSet(), _SpoSiteClassicAddCommand_initTelemetry = function _SpoSiteClassicAddCommand_initTelemetry() {
|
|
257
|
-
this.telemetry.push((args) => {
|
|
258
|
-
Object.assign(this.telemetryProperties, {
|
|
259
|
-
lcid: typeof args.options.lcid !== 'undefined',
|
|
260
|
-
webTemplate: typeof args.options.webTemplate !== 'undefined',
|
|
261
|
-
resourceQuota: typeof args.options.resourceQuota !== 'undefined',
|
|
262
|
-
resourceQuotaWarningLevel: typeof args.options.resourceQuotaWarningLevel !== 'undefined',
|
|
263
|
-
storageQuota: typeof args.options.storageQuota !== 'undefined',
|
|
264
|
-
storageQuotaWarningLevel: typeof args.options.storageQuotaWarningLevel !== 'undefined',
|
|
265
|
-
removeDeletedSite: args.options.removeDeletedSite,
|
|
266
|
-
wait: args.options.wait
|
|
267
|
-
});
|
|
268
|
-
});
|
|
269
|
-
}, _SpoSiteClassicAddCommand_initOptions = function _SpoSiteClassicAddCommand_initOptions() {
|
|
270
|
-
this.options.unshift({
|
|
271
|
-
option: '-u, --url <url>'
|
|
272
|
-
}, {
|
|
273
|
-
option: '-t, --title <title>'
|
|
274
|
-
}, {
|
|
275
|
-
option: '--owner <owner>'
|
|
276
|
-
}, {
|
|
277
|
-
option: '-z, --timeZone <timeZone>'
|
|
278
|
-
}, {
|
|
279
|
-
option: '-l, --lcid [lcid]'
|
|
280
|
-
}, {
|
|
281
|
-
option: '-w, --webTemplate [webTemplate]'
|
|
282
|
-
}, {
|
|
283
|
-
option: '--resourceQuota [resourceQuota]'
|
|
284
|
-
}, {
|
|
285
|
-
option: '--resourceQuotaWarningLevel [resourceQuotaWarningLevel]'
|
|
286
|
-
}, {
|
|
287
|
-
option: '--storageQuota [storageQuota]'
|
|
288
|
-
}, {
|
|
289
|
-
option: '--storageQuotaWarningLevel [storageQuotaWarningLevel]'
|
|
290
|
-
}, {
|
|
291
|
-
option: '--removeDeletedSite'
|
|
292
|
-
}, {
|
|
293
|
-
option: '--wait'
|
|
294
|
-
});
|
|
295
|
-
}, _SpoSiteClassicAddCommand_initValidators = function _SpoSiteClassicAddCommand_initValidators() {
|
|
296
|
-
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
297
|
-
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.url);
|
|
298
|
-
if (isValidSharePointUrl !== true) {
|
|
299
|
-
return isValidSharePointUrl;
|
|
300
|
-
}
|
|
301
|
-
if (typeof args.options.timeZone !== 'number') {
|
|
302
|
-
return `${args.options.timeZone} is not a number`;
|
|
303
|
-
}
|
|
304
|
-
if (args.options.lcid &&
|
|
305
|
-
typeof args.options.lcid !== 'number') {
|
|
306
|
-
return `${args.options.lcid} is not a number`;
|
|
307
|
-
}
|
|
308
|
-
if (args.options.resourceQuota &&
|
|
309
|
-
typeof args.options.resourceQuota !== 'number') {
|
|
310
|
-
return `${args.options.resourceQuota} is not a number`;
|
|
311
|
-
}
|
|
312
|
-
if (args.options.resourceQuotaWarningLevel &&
|
|
313
|
-
typeof args.options.resourceQuotaWarningLevel !== 'number') {
|
|
314
|
-
return `${args.options.resourceQuotaWarningLevel} is not a number`;
|
|
315
|
-
}
|
|
316
|
-
if (args.options.resourceQuotaWarningLevel &&
|
|
317
|
-
!args.options.resourceQuota) {
|
|
318
|
-
return `You cannot specify resourceQuotaWarningLevel without specifying resourceQuota`;
|
|
319
|
-
}
|
|
320
|
-
if (args.options.resourceQuotaWarningLevel > args.options.resourceQuota) {
|
|
321
|
-
return `resourceQuotaWarningLevel cannot exceed resourceQuota`;
|
|
322
|
-
}
|
|
323
|
-
if (args.options.storageQuota &&
|
|
324
|
-
typeof args.options.storageQuota !== 'number') {
|
|
325
|
-
return `${args.options.storageQuota} is not a number`;
|
|
326
|
-
}
|
|
327
|
-
if (args.options.storageQuotaWarningLevel &&
|
|
328
|
-
typeof args.options.storageQuotaWarningLevel !== 'number') {
|
|
329
|
-
return `${args.options.storageQuotaWarningLevel} is not a number`;
|
|
330
|
-
}
|
|
331
|
-
if (args.options.storageQuotaWarningLevel &&
|
|
332
|
-
!args.options.storageQuota) {
|
|
333
|
-
return `You cannot specify storageQuotaWarningLevel without specifying storageQuota`;
|
|
334
|
-
}
|
|
335
|
-
if (args.options.storageQuotaWarningLevel > args.options.storageQuota) {
|
|
336
|
-
return `storageQuotaWarningLevel cannot exceed storageQuota`;
|
|
337
|
-
}
|
|
338
|
-
return true;
|
|
339
|
-
}));
|
|
340
|
-
};
|
|
341
|
-
module.exports = new SpoSiteClassicAddCommand();
|
|
342
|
-
//# sourceMappingURL=site-classic-add.js.map
|