@pnp/cli-microsoft365 5.8.0-beta.bc15f2b → 6.0.0-beta.076a3a5
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 +11 -11
- package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +10 -10
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +10 -10
- 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 +9 -9
- package/dist/m365/aad/commands/policy/policy-list.js +6 -6
- package/dist/m365/aad/commands/sp/sp-get.js +12 -12
- 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 +2 -9
- package/dist/m365/planner/commands/bucket/bucket-get.js +4 -11
- package/dist/m365/planner/commands/bucket/bucket-list.js +2 -9
- 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 +3 -8
- 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 +5 -5
- package/dist/m365/spo/commands/file/file-checkout.js +5 -5
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +13 -13
- 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 +20 -20
- package/dist/m365/spo/commands/list/list-view-field-remove.js +11 -11
- package/dist/m365/spo/commands/list/list-view-field-set.js +15 -15
- package/dist/m365/spo/commands/list/list-view-get.js +9 -9
- package/dist/m365/spo/commands/list/list-view-remove.js +11 -11
- package/dist/m365/spo/commands/list/list-view-set.js +11 -11
- 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 +5 -5
- package/dist/m365/spo/commands/site/site-apppermission-set.js +5 -5
- 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 +10 -10
- package/dist/m365/teams/commands/channel/channel-remove.js +12 -12
- 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 +10 -10
- 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
|
@@ -35,14 +35,6 @@ class TeamsTeamCloneCommand extends GraphCommand_1.default {
|
|
|
35
35
|
return 'Creates a clone of a Microsoft Teams team';
|
|
36
36
|
}
|
|
37
37
|
commandAction(logger, args, cb) {
|
|
38
|
-
if (args.options.teamId) {
|
|
39
|
-
args.options.id = args.options.teamId;
|
|
40
|
-
this.warn(logger, `Option 'teamId' is deprecated. Please use 'id' instead.`);
|
|
41
|
-
}
|
|
42
|
-
if (args.options.displayName) {
|
|
43
|
-
args.options.name = args.options.displayName;
|
|
44
|
-
this.warn(logger, `Option 'displayName' is deprecated. Please use 'name' instead.`);
|
|
45
|
-
}
|
|
46
38
|
const data = {
|
|
47
39
|
displayName: args.options.name,
|
|
48
40
|
mailNickname: this.generateMailNickname(args.options.name),
|
|
@@ -92,20 +84,14 @@ _TeamsTeamCloneCommand_instances = new WeakSet(), _TeamsTeamCloneCommand_initTel
|
|
|
92
84
|
classification: typeof args.options.classification !== 'undefined',
|
|
93
85
|
visibility: typeof args.options.visibility !== 'undefined',
|
|
94
86
|
id: typeof args.options.id !== 'undefined',
|
|
95
|
-
|
|
96
|
-
name: typeof args.options.name !== 'undefined',
|
|
97
|
-
displayName: typeof args.options.displayName !== 'undefined'
|
|
87
|
+
name: typeof args.options.name !== 'undefined'
|
|
98
88
|
});
|
|
99
89
|
});
|
|
100
90
|
}, _TeamsTeamCloneCommand_initOptions = function _TeamsTeamCloneCommand_initOptions() {
|
|
101
91
|
this.options.unshift({
|
|
102
|
-
option: '-i, --id [
|
|
103
|
-
}, {
|
|
104
|
-
option: '--teamId [teamId]'
|
|
92
|
+
option: '-i, --id [id]'
|
|
105
93
|
}, {
|
|
106
94
|
option: '-n, --name [name]'
|
|
107
|
-
}, {
|
|
108
|
-
option: '--displayName [displayName]'
|
|
109
95
|
}, {
|
|
110
96
|
option: '-p, --partsToClone <partsToClone>',
|
|
111
97
|
autocomplete: ['apps', 'channels', 'members', 'settings', 'tabs']
|
|
@@ -119,9 +105,6 @@ _TeamsTeamCloneCommand_instances = new WeakSet(), _TeamsTeamCloneCommand_initTel
|
|
|
119
105
|
});
|
|
120
106
|
}, _TeamsTeamCloneCommand_initValidators = function _TeamsTeamCloneCommand_initValidators() {
|
|
121
107
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
122
|
-
if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
|
|
123
|
-
return `${args.options.teamId} is not a valid GUID`;
|
|
124
|
-
}
|
|
125
108
|
if (args.options.id && !utils_1.validation.isValidGuid(args.options.id)) {
|
|
126
109
|
return `${args.options.id} is not a valid GUID`;
|
|
127
110
|
}
|
|
@@ -146,7 +129,7 @@ _TeamsTeamCloneCommand_instances = new WeakSet(), _TeamsTeamCloneCommand_initTel
|
|
|
146
129
|
return true;
|
|
147
130
|
}));
|
|
148
131
|
}, _TeamsTeamCloneCommand_initOptionSets = function _TeamsTeamCloneCommand_initOptionSets() {
|
|
149
|
-
this.optionSets.push(['id', '
|
|
132
|
+
this.optionSets.push(['id', 'name']);
|
|
150
133
|
};
|
|
151
134
|
module.exports = new TeamsTeamCloneCommand();
|
|
152
135
|
//# sourceMappingURL=team-clone.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
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
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _TeamsTeamRemoveCommand_instances, _TeamsTeamRemoveCommand_initTelemetry, _TeamsTeamRemoveCommand_initOptions, _TeamsTeamRemoveCommand_initValidators;
|
|
16
|
+
var _TeamsTeamRemoveCommand_instances, _TeamsTeamRemoveCommand_initTelemetry, _TeamsTeamRemoveCommand_initOptions, _TeamsTeamRemoveCommand_initOptionSets, _TeamsTeamRemoveCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const cli_1 = require("../../../../cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -28,6 +28,7 @@ class TeamsTeamRemoveCommand extends GraphCommand_1.default {
|
|
|
28
28
|
__classPrivateFieldGet(this, _TeamsTeamRemoveCommand_instances, "m", _TeamsTeamRemoveCommand_initTelemetry).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _TeamsTeamRemoveCommand_instances, "m", _TeamsTeamRemoveCommand_initOptions).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _TeamsTeamRemoveCommand_instances, "m", _TeamsTeamRemoveCommand_initValidators).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _TeamsTeamRemoveCommand_instances, "m", _TeamsTeamRemoveCommand_initOptionSets).call(this);
|
|
31
32
|
}
|
|
32
33
|
get name() {
|
|
33
34
|
return commands_1.default.TEAM_REMOVE;
|
|
@@ -49,10 +50,6 @@ class TeamsTeamRemoveCommand extends GraphCommand_1.default {
|
|
|
49
50
|
});
|
|
50
51
|
}
|
|
51
52
|
commandAction(logger, args, cb) {
|
|
52
|
-
if (args.options.teamId) {
|
|
53
|
-
args.options.id = args.options.teamId;
|
|
54
|
-
this.warn(logger, `Option 'teamId' is deprecated. Please use 'id' instead.`);
|
|
55
|
-
}
|
|
56
53
|
const removeTeam = () => {
|
|
57
54
|
this
|
|
58
55
|
.getTeamId(args)
|
|
@@ -76,7 +73,7 @@ class TeamsTeamRemoveCommand extends GraphCommand_1.default {
|
|
|
76
73
|
type: 'confirm',
|
|
77
74
|
name: 'continue',
|
|
78
75
|
default: false,
|
|
79
|
-
message: `Are you sure you want to remove the team ${args.options.
|
|
76
|
+
message: `Are you sure you want to remove the team ${args.options.id ? args.options.id : args.options.name}?`
|
|
80
77
|
}, (result) => {
|
|
81
78
|
if (!result.continue) {
|
|
82
79
|
cb();
|
|
@@ -99,22 +96,13 @@ _TeamsTeamRemoveCommand_instances = new WeakSet(), _TeamsTeamRemoveCommand_initT
|
|
|
99
96
|
option: '-i, --id [id]'
|
|
100
97
|
}, {
|
|
101
98
|
option: '-n, --name [name]'
|
|
102
|
-
}, {
|
|
103
|
-
option: '--teamId [teamId]'
|
|
104
99
|
}, {
|
|
105
100
|
option: '--confirm'
|
|
106
101
|
});
|
|
102
|
+
}, _TeamsTeamRemoveCommand_initOptionSets = function _TeamsTeamRemoveCommand_initOptionSets() {
|
|
103
|
+
this.optionSets.push(['id', 'name']);
|
|
107
104
|
}, _TeamsTeamRemoveCommand_initValidators = function _TeamsTeamRemoveCommand_initValidators() {
|
|
108
105
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
109
|
-
if (!args.options.id && !args.options.name && !args.options.teamId) {
|
|
110
|
-
return 'Specify either id or name';
|
|
111
|
-
}
|
|
112
|
-
if (args.options.name && (args.options.id || args.options.teamId)) {
|
|
113
|
-
return 'Specify either id or name but not both';
|
|
114
|
-
}
|
|
115
|
-
if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
|
|
116
|
-
return `${args.options.teamId} is not a valid GUID`;
|
|
117
|
-
}
|
|
118
106
|
if (args.options.id && !utils_1.validation.isValidGuid(args.options.id)) {
|
|
119
107
|
return `${args.options.id} is not a valid GUID`;
|
|
120
108
|
}
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
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
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _TeamsTeamSetCommand_instances, _TeamsTeamSetCommand_initTelemetry, _TeamsTeamSetCommand_initOptions, _TeamsTeamSetCommand_initValidators
|
|
16
|
+
var _TeamsTeamSetCommand_instances, _TeamsTeamSetCommand_initTelemetry, _TeamsTeamSetCommand_initOptions, _TeamsTeamSetCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -26,7 +26,6 @@ class TeamsTeamSetCommand extends GraphCommand_1.default {
|
|
|
26
26
|
__classPrivateFieldGet(this, _TeamsTeamSetCommand_instances, "m", _TeamsTeamSetCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _TeamsTeamSetCommand_instances, "m", _TeamsTeamSetCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _TeamsTeamSetCommand_instances, "m", _TeamsTeamSetCommand_initValidators).call(this);
|
|
29
|
-
__classPrivateFieldGet(this, _TeamsTeamSetCommand_instances, "m", _TeamsTeamSetCommand_initOptionSets).call(this);
|
|
30
29
|
}
|
|
31
30
|
get name() {
|
|
32
31
|
return commands_1.default.TEAM_SET;
|
|
@@ -54,10 +53,6 @@ class TeamsTeamSetCommand extends GraphCommand_1.default {
|
|
|
54
53
|
return requestBody;
|
|
55
54
|
}
|
|
56
55
|
commandAction(logger, args, cb) {
|
|
57
|
-
if (args.options.teamId) {
|
|
58
|
-
args.options.id = args.options.teamId;
|
|
59
|
-
this.warn(logger, `Option 'teamId' is deprecated. Please use 'id' instead.`);
|
|
60
|
-
}
|
|
61
56
|
if (args.options.displayName) {
|
|
62
57
|
args.options.name = args.options.displayName;
|
|
63
58
|
this.warn(logger, `Option 'displayName' is deprecated. Please use 'name' instead.`);
|
|
@@ -85,8 +80,6 @@ _TeamsTeamSetCommand_instances = new WeakSet(), _TeamsTeamSetCommand_initTelemet
|
|
|
85
80
|
}, _TeamsTeamSetCommand_initOptions = function _TeamsTeamSetCommand_initOptions() {
|
|
86
81
|
this.options.unshift({
|
|
87
82
|
option: '-i, --id [id]'
|
|
88
|
-
}, {
|
|
89
|
-
option: '--teamId [teamId]'
|
|
90
83
|
}, {
|
|
91
84
|
option: '-n, --name [name]'
|
|
92
85
|
}, {
|
|
@@ -103,9 +96,6 @@ _TeamsTeamSetCommand_instances = new WeakSet(), _TeamsTeamSetCommand_initTelemet
|
|
|
103
96
|
});
|
|
104
97
|
}, _TeamsTeamSetCommand_initValidators = function _TeamsTeamSetCommand_initValidators() {
|
|
105
98
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
106
|
-
if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
|
|
107
|
-
return `${args.options.teamId} is not a valid GUID`;
|
|
108
|
-
}
|
|
109
99
|
if (args.options.id && !utils_1.validation.isValidGuid(args.options.id)) {
|
|
110
100
|
return `${args.options.id} is not a valid GUID`;
|
|
111
101
|
}
|
|
@@ -116,8 +106,6 @@ _TeamsTeamSetCommand_instances = new WeakSet(), _TeamsTeamSetCommand_initTelemet
|
|
|
116
106
|
}
|
|
117
107
|
return true;
|
|
118
108
|
}));
|
|
119
|
-
}, _TeamsTeamSetCommand_initOptionSets = function _TeamsTeamSetCommand_initOptionSets() {
|
|
120
|
-
this.optionSets.push(['id', 'teamId']);
|
|
121
109
|
};
|
|
122
110
|
TeamsTeamSetCommand.props = [
|
|
123
111
|
'displayName',
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
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
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _TeamsTeamUnarchiveCommand_instances, _TeamsTeamUnarchiveCommand_initOptions, _TeamsTeamUnarchiveCommand_initValidators;
|
|
16
|
+
var _TeamsTeamUnarchiveCommand_instances, _TeamsTeamUnarchiveCommand_initOptions, _TeamsTeamUnarchiveCommand_initOptionSets, _TeamsTeamUnarchiveCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -26,6 +26,7 @@ class TeamsTeamUnarchiveCommand extends GraphCommand_1.default {
|
|
|
26
26
|
_TeamsTeamUnarchiveCommand_instances.add(this);
|
|
27
27
|
__classPrivateFieldGet(this, _TeamsTeamUnarchiveCommand_instances, "m", _TeamsTeamUnarchiveCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _TeamsTeamUnarchiveCommand_instances, "m", _TeamsTeamUnarchiveCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _TeamsTeamUnarchiveCommand_instances, "m", _TeamsTeamUnarchiveCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
get name() {
|
|
31
32
|
return commands_1.default.TEAM_UNARCHIVE;
|
|
@@ -47,10 +48,6 @@ class TeamsTeamUnarchiveCommand extends GraphCommand_1.default {
|
|
|
47
48
|
});
|
|
48
49
|
}
|
|
49
50
|
commandAction(logger, args, cb) {
|
|
50
|
-
if (args.options.teamId) {
|
|
51
|
-
args.options.id = args.options.teamId;
|
|
52
|
-
this.warn(logger, `Option 'teamId' is deprecated. Please use 'id' instead.`);
|
|
53
|
-
}
|
|
54
51
|
const endpoint = `${this.resource}/v1.0`;
|
|
55
52
|
this
|
|
56
53
|
.getTeamId(args)
|
|
@@ -73,20 +70,11 @@ _TeamsTeamUnarchiveCommand_instances = new WeakSet(), _TeamsTeamUnarchiveCommand
|
|
|
73
70
|
option: '-i, --id [id]'
|
|
74
71
|
}, {
|
|
75
72
|
option: '-n, --name [name]'
|
|
76
|
-
}, {
|
|
77
|
-
option: '--teamId [teamId]'
|
|
78
73
|
});
|
|
74
|
+
}, _TeamsTeamUnarchiveCommand_initOptionSets = function _TeamsTeamUnarchiveCommand_initOptionSets() {
|
|
75
|
+
this.optionSets.push(['id', 'name']);
|
|
79
76
|
}, _TeamsTeamUnarchiveCommand_initValidators = function _TeamsTeamUnarchiveCommand_initValidators() {
|
|
80
77
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
81
|
-
if (!args.options.id && !args.options.name && !args.options.teamId) {
|
|
82
|
-
return 'Specify either id or name';
|
|
83
|
-
}
|
|
84
|
-
if (args.options.name && (args.options.id || args.options.teamId)) {
|
|
85
|
-
return 'Specify either id or name but not both';
|
|
86
|
-
}
|
|
87
|
-
if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
|
|
88
|
-
return `${args.options.teamId} is not a valid GUID`;
|
|
89
|
-
}
|
|
90
78
|
if (args.options.id && !utils_1.validation.isValidGuid(args.options.id)) {
|
|
91
79
|
return `${args.options.id} is not a valid GUID`;
|
|
92
80
|
}
|
|
@@ -42,7 +42,7 @@ class TeamsUserAppAddCommand extends GraphCommand_1.default {
|
|
|
42
42
|
},
|
|
43
43
|
responseType: 'json',
|
|
44
44
|
data: {
|
|
45
|
-
'teamsApp@odata.bind': `${endpoint}/appCatalogs/teamsApps/${args.options.
|
|
45
|
+
'teamsApp@odata.bind': `${endpoint}/appCatalogs/teamsApps/${args.options.id}`
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
request_1.default
|
|
@@ -52,14 +52,14 @@ class TeamsUserAppAddCommand extends GraphCommand_1.default {
|
|
|
52
52
|
}
|
|
53
53
|
_TeamsUserAppAddCommand_instances = new WeakSet(), _TeamsUserAppAddCommand_initOptions = function _TeamsUserAppAddCommand_initOptions() {
|
|
54
54
|
this.options.unshift({
|
|
55
|
-
option: '--
|
|
55
|
+
option: '--id <id>'
|
|
56
56
|
}, {
|
|
57
57
|
option: '--userId <userId>'
|
|
58
58
|
});
|
|
59
59
|
}, _TeamsUserAppAddCommand_initValidators = function _TeamsUserAppAddCommand_initValidators() {
|
|
60
60
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
61
|
-
if (!utils_1.validation.isValidGuid(args.options.
|
|
62
|
-
return `${args.options.
|
|
61
|
+
if (!utils_1.validation.isValidGuid(args.options.id)) {
|
|
62
|
+
return `${args.options.id} is not a valid GUID`;
|
|
63
63
|
}
|
|
64
64
|
if (!utils_1.validation.isValidGuid(args.options.userId)) {
|
|
65
65
|
return `${args.options.userId} is not a valid GUID`;
|
|
@@ -38,7 +38,7 @@ class TeamsUserAppRemoveCommand extends GraphCommand_1.default {
|
|
|
38
38
|
const removeApp = () => {
|
|
39
39
|
const endpoint = `${this.resource}/v1.0`;
|
|
40
40
|
const requestOptions = {
|
|
41
|
-
url: `${endpoint}/users/${args.options.userId}/teamwork/installedApps/${args.options.
|
|
41
|
+
url: `${endpoint}/users/${args.options.userId}/teamwork/installedApps/${args.options.id}`,
|
|
42
42
|
headers: {
|
|
43
43
|
'accept': 'application/json;odata.metadata=none'
|
|
44
44
|
},
|
|
@@ -56,7 +56,7 @@ class TeamsUserAppRemoveCommand extends GraphCommand_1.default {
|
|
|
56
56
|
type: 'confirm',
|
|
57
57
|
name: 'continue',
|
|
58
58
|
default: false,
|
|
59
|
-
message: `Are you sure you want to remove the app with id ${args.options.
|
|
59
|
+
message: `Are you sure you want to remove the app with id ${args.options.id} for user ${args.options.userId}?`
|
|
60
60
|
}, (result) => {
|
|
61
61
|
if (!result.continue) {
|
|
62
62
|
cb();
|
|
@@ -76,7 +76,7 @@ _TeamsUserAppRemoveCommand_instances = new WeakSet(), _TeamsUserAppRemoveCommand
|
|
|
76
76
|
});
|
|
77
77
|
}, _TeamsUserAppRemoveCommand_initOptions = function _TeamsUserAppRemoveCommand_initOptions() {
|
|
78
78
|
this.options.unshift({
|
|
79
|
-
option: '--
|
|
79
|
+
option: '--id <id>'
|
|
80
80
|
}, {
|
|
81
81
|
option: '--userId <userId>'
|
|
82
82
|
}, {
|
|
@@ -74,7 +74,7 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
|
|
|
74
74
|
"manifestVersion": "1.9",
|
|
75
75
|
"version": "1.0",
|
|
76
76
|
"id": appId,
|
|
77
|
-
"packageName": `com.microsoft.teams.${args.options.
|
|
77
|
+
"packageName": `com.microsoft.teams.${args.options.name}`,
|
|
78
78
|
"developer": {
|
|
79
79
|
"name": args.options.companyName,
|
|
80
80
|
"websiteUrl": args.options.companyWebsiteUrl,
|
|
@@ -86,8 +86,8 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
|
|
|
86
86
|
"outline": outlineIconFileName
|
|
87
87
|
},
|
|
88
88
|
"name": {
|
|
89
|
-
"short": args.options.
|
|
90
|
-
"full": args.options.
|
|
89
|
+
"short": args.options.name,
|
|
90
|
+
"full": args.options.name
|
|
91
91
|
},
|
|
92
92
|
"description": {
|
|
93
93
|
"short": `${args.options.description}`,
|
|
@@ -98,7 +98,7 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
|
|
|
98
98
|
"staticTabs": [
|
|
99
99
|
{
|
|
100
100
|
"entityId": `sharepointportal_${appId}`,
|
|
101
|
-
"name": `Portals-${args.options.
|
|
101
|
+
"name": `Portals-${args.options.name}`,
|
|
102
102
|
"contentUrl": `https://${domain}/_layouts/15/teamslogon.aspx?spfx=true&dest=${appPortalUrl}`,
|
|
103
103
|
"websiteUrl": portalUrl,
|
|
104
104
|
"searchUrl": `https://${searchUrlPath}/_layouts/15/search.aspx?q={searchQuery}`,
|
|
@@ -135,7 +135,7 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
|
|
|
135
135
|
this.archive.addFile('manifest.json', Buffer.alloc(manifestString.length, manifestString, 'utf8'));
|
|
136
136
|
this.archive.addLocalFile(coloredIconPath, undefined, coloredIconFileName);
|
|
137
137
|
this.archive.addLocalFile(outlineIconPath, undefined, outlineIconFileName);
|
|
138
|
-
this.archive.writeZip(`${args.options.
|
|
138
|
+
this.archive.writeZip(`${args.options.name}.zip`);
|
|
139
139
|
cb();
|
|
140
140
|
}
|
|
141
141
|
catch (ex) {
|
|
@@ -153,7 +153,7 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
|
|
|
153
153
|
logger.logToStderr(`Checking if site ${args.options.url} exists...`);
|
|
154
154
|
}
|
|
155
155
|
const options = {
|
|
156
|
-
|
|
156
|
+
url: args.options.portalUrl,
|
|
157
157
|
output: 'json',
|
|
158
158
|
debug: this.debug,
|
|
159
159
|
verbose: this.verbose
|
|
@@ -162,10 +162,10 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
_VivaConnectionsAppCreateCommand_instances = new WeakSet(), _VivaConnectionsAppCreateCommand_initOptions = function _VivaConnectionsAppCreateCommand_initOptions() {
|
|
165
|
-
this.options.unshift({ option: '--portalUrl <portalUrl>' }, { option: '--
|
|
165
|
+
this.options.unshift({ option: '--portalUrl <portalUrl>' }, { option: '--name <name>' }, { option: '--description <description>' }, { option: '--longDescription <longDescription>' }, { option: '--privacyPolicyUrl [privacyPolicyUrl]' }, { option: '--termsOfUseUrl [termsOfUseUrl]' }, { option: '--companyName <companyName>' }, { option: '--companyWebsiteUrl <companyWebsiteUrl>' }, { option: '--coloredIconPath <coloredIconPath>' }, { option: '--outlineIconPath <outlineIconPath>' }, { option: '--accentColor [accentColor]' }, { option: '--force' });
|
|
166
166
|
}, _VivaConnectionsAppCreateCommand_initValidators = function _VivaConnectionsAppCreateCommand_initValidators() {
|
|
167
167
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
168
|
-
if (args.options.
|
|
168
|
+
if (args.options.name.length > 30) {
|
|
169
169
|
return `App name must not exceed 30 characters`;
|
|
170
170
|
}
|
|
171
171
|
if (args.options.description &&
|
|
@@ -176,7 +176,7 @@ _VivaConnectionsAppCreateCommand_instances = new WeakSet(), _VivaConnectionsAppC
|
|
|
176
176
|
args.options.longDescription.length > 4000) {
|
|
177
177
|
return 'Long description must not exceed 4000 characters';
|
|
178
178
|
}
|
|
179
|
-
const appFilePath = path.resolve(`${args.options.
|
|
179
|
+
const appFilePath = path.resolve(`${args.options.name}.zip`);
|
|
180
180
|
if (fs.existsSync(appFilePath) && !args.options.force) {
|
|
181
181
|
return `File ${appFilePath} already exists. Delete the file or use the --force option to overwrite the existing file`;
|
|
182
182
|
}
|
|
@@ -41,8 +41,8 @@ class YammerGroupUserAddCommand extends YammerCommand_1.default {
|
|
|
41
41
|
},
|
|
42
42
|
responseType: 'json',
|
|
43
43
|
data: {
|
|
44
|
-
group_id: args.options.
|
|
45
|
-
user_id: args.options.
|
|
44
|
+
group_id: args.options.groupId,
|
|
45
|
+
user_id: args.options.id,
|
|
46
46
|
email: args.options.email
|
|
47
47
|
}
|
|
48
48
|
};
|
|
@@ -54,26 +54,26 @@ class YammerGroupUserAddCommand extends YammerCommand_1.default {
|
|
|
54
54
|
_YammerGroupUserAddCommand_instances = new WeakSet(), _YammerGroupUserAddCommand_initTelemetry = function _YammerGroupUserAddCommand_initTelemetry() {
|
|
55
55
|
this.telemetry.push((args) => {
|
|
56
56
|
Object.assign(this.telemetryProperties, {
|
|
57
|
-
|
|
57
|
+
id: typeof args.options.id !== 'undefined',
|
|
58
58
|
email: typeof args.options.email !== 'undefined'
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
61
|
}, _YammerGroupUserAddCommand_initOptions = function _YammerGroupUserAddCommand_initOptions() {
|
|
62
62
|
this.options.unshift({
|
|
63
|
-
option: '--
|
|
63
|
+
option: '--groupId <groupId>'
|
|
64
64
|
}, {
|
|
65
|
-
option: '--
|
|
65
|
+
option: '--id [id]'
|
|
66
66
|
}, {
|
|
67
67
|
option: '--email [email]'
|
|
68
68
|
});
|
|
69
69
|
}, _YammerGroupUserAddCommand_initValidators = function _YammerGroupUserAddCommand_initValidators() {
|
|
70
70
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
if (typeof args.options.groupId !== 'number') {
|
|
72
|
+
return `${args.options.groupId} is not a number`;
|
|
73
|
+
}
|
|
71
74
|
if (args.options.id && typeof args.options.id !== 'number') {
|
|
72
75
|
return `${args.options.id} is not a number`;
|
|
73
76
|
}
|
|
74
|
-
if (args.options.userId && typeof args.options.userId !== 'number') {
|
|
75
|
-
return `${args.options.userId} is not a number`;
|
|
76
|
-
}
|
|
77
77
|
return true;
|
|
78
78
|
}));
|
|
79
79
|
};
|
|
@@ -44,8 +44,8 @@ class YammerGroupUserRemoveCommand extends YammerCommand_1.default {
|
|
|
44
44
|
},
|
|
45
45
|
responseType: 'json',
|
|
46
46
|
data: {
|
|
47
|
-
group_id: args.options.
|
|
48
|
-
user_id: args.options.
|
|
47
|
+
group_id: args.options.groupId,
|
|
48
|
+
user_id: args.options.id
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
request_1.default
|
|
@@ -56,9 +56,9 @@ class YammerGroupUserRemoveCommand extends YammerCommand_1.default {
|
|
|
56
56
|
executeRemoveAction();
|
|
57
57
|
}
|
|
58
58
|
else {
|
|
59
|
-
let messagePrompt = `Are you sure you want to leave group ${args.options.
|
|
60
|
-
if (args.options.
|
|
61
|
-
messagePrompt = `Are you sure you want to remove the user ${args.options.
|
|
59
|
+
let messagePrompt = `Are you sure you want to leave group ${args.options.groupId}?`;
|
|
60
|
+
if (args.options.id) {
|
|
61
|
+
messagePrompt = `Are you sure you want to remove the user ${args.options.id} from the group ${args.options.groupId}?`;
|
|
62
62
|
}
|
|
63
63
|
cli_1.Cli.prompt({
|
|
64
64
|
type: 'confirm',
|
|
@@ -79,26 +79,26 @@ class YammerGroupUserRemoveCommand extends YammerCommand_1.default {
|
|
|
79
79
|
_YammerGroupUserRemoveCommand_instances = new WeakSet(), _YammerGroupUserRemoveCommand_initTelemetry = function _YammerGroupUserRemoveCommand_initTelemetry() {
|
|
80
80
|
this.telemetry.push((args) => {
|
|
81
81
|
Object.assign(this.telemetryProperties, {
|
|
82
|
-
userId: args.options.
|
|
82
|
+
userId: args.options.id !== undefined,
|
|
83
83
|
confirm: (!(!args.options.confirm)).toString()
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
86
|
}, _YammerGroupUserRemoveCommand_initOptions = function _YammerGroupUserRemoveCommand_initOptions() {
|
|
87
87
|
this.options.unshift({
|
|
88
|
-
option: '--
|
|
88
|
+
option: '--groupId <groupId>'
|
|
89
89
|
}, {
|
|
90
|
-
option: '--
|
|
90
|
+
option: '--id [id]'
|
|
91
91
|
}, {
|
|
92
92
|
option: '--confirm'
|
|
93
93
|
});
|
|
94
94
|
}, _YammerGroupUserRemoveCommand_initValidators = function _YammerGroupUserRemoveCommand_initValidators() {
|
|
95
95
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
if (args.options.groupId && typeof args.options.groupId !== 'number') {
|
|
97
|
+
return `${args.options.groupId} is not a number`;
|
|
98
|
+
}
|
|
96
99
|
if (args.options.id && typeof args.options.id !== 'number') {
|
|
97
100
|
return `${args.options.id} is not a number`;
|
|
98
101
|
}
|
|
99
|
-
if (args.options.userId && typeof args.options.userId !== 'number') {
|
|
100
|
-
return `${args.options.userId} is not a number`;
|
|
101
|
-
}
|
|
102
102
|
return true;
|
|
103
103
|
}));
|
|
104
104
|
};
|
|
@@ -44,7 +44,7 @@ class YammerMessageLikeSetCommand extends YammerCommand_1.default {
|
|
|
44
44
|
},
|
|
45
45
|
responseType: 'json',
|
|
46
46
|
data: {
|
|
47
|
-
message_id: args.options.
|
|
47
|
+
message_id: args.options.messageId
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
if (args.options.enable !== 'false') {
|
|
@@ -63,7 +63,7 @@ class YammerMessageLikeSetCommand extends YammerCommand_1.default {
|
|
|
63
63
|
executeLikeAction();
|
|
64
64
|
}
|
|
65
65
|
else {
|
|
66
|
-
const messagePrompt = `Are you sure you want to unlike message ${args.options.
|
|
66
|
+
const messagePrompt = `Are you sure you want to unlike message ${args.options.messageId}?`;
|
|
67
67
|
cli_1.Cli.prompt({
|
|
68
68
|
type: 'confirm',
|
|
69
69
|
name: 'continue',
|
|
@@ -93,7 +93,7 @@ _YammerMessageLikeSetCommand_instances = new WeakSet(), _YammerMessageLikeSetCom
|
|
|
93
93
|
});
|
|
94
94
|
}, _YammerMessageLikeSetCommand_initOptions = function _YammerMessageLikeSetCommand_initOptions() {
|
|
95
95
|
this.options.unshift({
|
|
96
|
-
option: '--
|
|
96
|
+
option: '--messageId <messageId>'
|
|
97
97
|
}, {
|
|
98
98
|
option: '--enable [enable]'
|
|
99
99
|
}, {
|
|
@@ -101,8 +101,8 @@ _YammerMessageLikeSetCommand_instances = new WeakSet(), _YammerMessageLikeSetCom
|
|
|
101
101
|
});
|
|
102
102
|
}, _YammerMessageLikeSetCommand_initValidators = function _YammerMessageLikeSetCommand_initValidators() {
|
|
103
103
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
104
|
-
if (args.options.
|
|
105
|
-
return `${args.options.
|
|
104
|
+
if (args.options.messageId && typeof args.options.messageId !== 'number') {
|
|
105
|
+
return `${args.options.messageId} is not a number`;
|
|
106
106
|
}
|
|
107
107
|
if (args.options.enable &&
|
|
108
108
|
args.options.enable !== 'true' &&
|
|
@@ -37,8 +37,8 @@ class YammerUserGetCommand extends YammerCommand_1.default {
|
|
|
37
37
|
}
|
|
38
38
|
commandAction(logger, args, cb) {
|
|
39
39
|
let endPoint = `${this.resource}/v1/users/current.json`;
|
|
40
|
-
if (args.options.
|
|
41
|
-
endPoint = `${this.resource}/v1/users/${encodeURIComponent(args.options.
|
|
40
|
+
if (args.options.id) {
|
|
41
|
+
endPoint = `${this.resource}/v1/users/${encodeURIComponent(args.options.id)}.json`;
|
|
42
42
|
}
|
|
43
43
|
else if (args.options.email) {
|
|
44
44
|
endPoint = `${this.resource}/v1/users/by_email.json?email=${encodeURIComponent(args.options.email)}`;
|
|
@@ -62,19 +62,19 @@ class YammerUserGetCommand extends YammerCommand_1.default {
|
|
|
62
62
|
_YammerUserGetCommand_instances = new WeakSet(), _YammerUserGetCommand_initTelemetry = function _YammerUserGetCommand_initTelemetry() {
|
|
63
63
|
this.telemetry.push((args) => {
|
|
64
64
|
Object.assign(this.telemetryProperties, {
|
|
65
|
-
userId: args.options.
|
|
65
|
+
userId: args.options.id !== undefined,
|
|
66
66
|
email: args.options.email !== undefined
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
69
|
}, _YammerUserGetCommand_initOptions = function _YammerUserGetCommand_initOptions() {
|
|
70
70
|
this.options.unshift({
|
|
71
|
-
option: '-i, --
|
|
71
|
+
option: '-i, --id [id]'
|
|
72
72
|
}, {
|
|
73
73
|
option: '--email [email]'
|
|
74
74
|
});
|
|
75
75
|
}, _YammerUserGetCommand_initValidators = function _YammerUserGetCommand_initValidators() {
|
|
76
76
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
77
|
-
if (args.options.
|
|
77
|
+
if (args.options.id !== undefined && args.options.email !== undefined) {
|
|
78
78
|
return `You are only allowed to search by ID or e-mail but not both`;
|
|
79
79
|
}
|
|
80
80
|
return true;
|
package/dist/settingsNames.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.settingsNames = void 0;
|
|
4
4
|
const settingsNames = {
|
|
5
|
-
autoOpenBrowserOnLogin: 'autoOpenBrowserOnLogin',
|
|
6
5
|
autoOpenLinksInBrowser: 'autoOpenLinksInBrowser',
|
|
7
6
|
copyDeviceCodeToClipboard: 'copyDeviceCodeToClipboard',
|
|
8
7
|
csvEscape: 'csvEscape',
|
|
@@ -13,10 +13,10 @@ m365 aad approleassignment add [options]
|
|
|
13
13
|
`--appId [appId]`
|
|
14
14
|
: Application appId also known as clientId of the App Registration to which the configured scopes (app roles) should be applied
|
|
15
15
|
|
|
16
|
-
`--
|
|
16
|
+
`--appObjectId [appObjectId]`
|
|
17
17
|
: Application objectId of the App Registration to which the configured scopes (app roles) should be applied
|
|
18
18
|
|
|
19
|
-
`--
|
|
19
|
+
`--appDisplayName [appDisplayName]`
|
|
20
20
|
: Application name of the App Registration to which the configured scopes (app roles) should be applied
|
|
21
21
|
|
|
22
22
|
`-r, --resource <resource>`
|
|
@@ -31,7 +31,7 @@ m365 aad approleassignment add [options]
|
|
|
31
31
|
|
|
32
32
|
This command requires tenant administrator permissions.
|
|
33
33
|
|
|
34
|
-
Specify either the `appId`, `
|
|
34
|
+
Specify either the `appId`, `appObjectId` or `appDisplayName` but not multiple. If you specify more than one option value, the command will fail with an error.
|
|
35
35
|
|
|
36
36
|
Autocomplete values for the `resource` option do not mean allowed values. The autocomplete will just suggest some known names, but that doesn't restrict you to use name of your own custom application or other application within your tenant.
|
|
37
37
|
|
|
@@ -48,13 +48,13 @@ m365 aad approleassignment add --appId "57907bf8-73fa-43a6-89a5-1f603e29e451" --
|
|
|
48
48
|
Adds multiple Microsoft Graph application permissions to an Azure AD application with name _MyAppName_
|
|
49
49
|
|
|
50
50
|
```sh
|
|
51
|
-
m365 aad approleassignment add --
|
|
51
|
+
m365 aad approleassignment add --appDisplayName "MyAppName" --resource "Microsoft Graph" --scope "Mail.Read,Mail.Send"
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
Adds Microsoft Graph _Mail.Read_ application permissions to a system managed identity app with objectId _57907bf8-73fa-43a6-89a5-1f603e29e451_
|
|
55
55
|
|
|
56
56
|
```sh
|
|
57
|
-
m365 aad approleassignment add --
|
|
57
|
+
m365 aad approleassignment add --appObjectId "57907bf8-73fa-43a6-89a5-1f603e29e451" --resource "Microsoft Graph" --scope "Mail.Read"
|
|
58
58
|
```
|
|
59
59
|
|
|
60
60
|
## More information
|
|
@@ -13,17 +13,17 @@ m365 aad approleassignment list [options]
|
|
|
13
13
|
`-i, --appId [appId]`
|
|
14
14
|
: Application (client) Id of the App Registration for which the configured app roles should be retrieved
|
|
15
15
|
|
|
16
|
-
`-n, --
|
|
16
|
+
`-n, --appDisplayName [appDisplayName]`
|
|
17
17
|
: Display name of the application for which the configured app roles should be retrieved
|
|
18
18
|
|
|
19
|
-
`--
|
|
19
|
+
`--appObjectId [appObjectId]`
|
|
20
20
|
: ObjectId of the application for which the configured app roles should be retrieved
|
|
21
21
|
|
|
22
22
|
--8<-- "docs/cmd/_global.md"
|
|
23
23
|
|
|
24
24
|
## Remarks
|
|
25
25
|
|
|
26
|
-
Specify either the `appId`, `
|
|
26
|
+
Specify either the `appId`, `appObjectId` or `appDisplayName`. If you specify more than one option value, the command will fail with an error.
|
|
27
27
|
|
|
28
28
|
## Examples
|
|
29
29
|
|
|
@@ -36,13 +36,13 @@ m365 aad approleassignment list --appId b2307a39-e878-458b-bc90-03bc578531d6
|
|
|
36
36
|
List app roles assigned to service principal with Application display name _MyAppName_.
|
|
37
37
|
|
|
38
38
|
```sh
|
|
39
|
-
m365 aad approleassignment list --
|
|
39
|
+
m365 aad approleassignment list --appDisplayName 'MyAppName'
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
List app roles assigned to service principal with ObjectId _b2307a39-e878-458b-bc90-03bc578531dd_.
|
|
43
43
|
|
|
44
44
|
```sh
|
|
45
|
-
m365 aad approleassignment list --
|
|
45
|
+
m365 aad approleassignment list --appObjectId b2307a39-e878-458b-bc90-03bc578531dd
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
## More information
|