@pnp/cli-microsoft365 7.0.0-beta.4ebf3ad → 7.0.0-beta.515b009
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/.eslintrc.cjs +1 -3
- package/dist/Auth.js +2 -1
- package/dist/Command.js +1 -1
- package/dist/GlobalOptions.js +1 -7
- package/dist/cli/Cli.js +19 -2
- package/dist/m365/aad/commands/app/app-add.js +8 -8
- package/dist/m365/aad/commands/app/app-role-add.js +5 -5
- package/dist/m365/aad/commands/app/app-set.js +5 -5
- package/dist/m365/aad/commands/{o365group/o365group-add.js → m365group/m365group-add.js} +17 -17
- package/dist/m365/aad/commands/{o365group/o365group-conversation-list.js → m365group/m365group-conversation-list.js} +10 -10
- package/dist/m365/aad/commands/{o365group/o365group-conversation-post-list.js → m365group/m365group-conversation-post-list.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-get.js → m365group/m365group-get.js} +13 -10
- package/dist/m365/aad/commands/{o365group/o365group-list.js → m365group/m365group-list.js} +13 -28
- package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-clear.js → m365group/m365group-recyclebinitem-clear.js} +15 -15
- package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-list.js → m365group/m365group-recyclebinitem-list.js} +10 -10
- package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-remove.js → m365group/m365group-recyclebinitem-remove.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-restore.js → m365group/m365group-recyclebinitem-restore.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-remove.js → m365group/m365group-remove.js} +12 -12
- package/dist/m365/aad/commands/{o365group/o365group-renew.js → m365group/m365group-renew.js} +10 -10
- package/dist/m365/aad/commands/{o365group/o365group-report-activitycounts.js → m365group/m365group-report-activitycounts.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-report-activitydetail.js → m365group/m365group-report-activitydetail.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-report-activityfilecounts.js → m365group/m365group-report-activityfilecounts.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-report-activitygroupcounts.js → m365group/m365group-report-activitygroupcounts.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-report-activitystorage.js → m365group/m365group-report-activitystorage.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-set.js → m365group/m365group-set.js} +17 -17
- package/dist/m365/aad/commands/{o365group/o365group-teamify.js → m365group/m365group-teamify.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-user-add.js → m365group/m365group-user-add.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-user-list.js → m365group/m365group-user-list.js} +12 -12
- package/dist/m365/aad/commands/{o365group/o365group-user-remove.js → m365group/m365group-user-remove.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-user-set.js → m365group/m365group-user-set.js} +15 -15
- package/dist/m365/aad/commands/policy/policy-list.js +5 -5
- package/dist/m365/aad/commands.js +22 -22
- package/dist/m365/cli/commands/cli-issue.js +5 -5
- package/dist/m365/cli/commands/config/config-get.js +5 -5
- package/dist/m365/cli/commands/config/config-list.js +16 -0
- package/dist/m365/cli/commands/config/config-reset.js +5 -5
- package/dist/m365/cli/commands/config/config-set.js +5 -5
- package/dist/m365/cli/commands.js +1 -0
- package/dist/m365/commands/login.js +5 -5
- package/dist/m365/commands/request.js +1 -1
- package/dist/m365/flow/commands/owner/owner-ensure.js +5 -5
- package/dist/m365/pa/commands/app/app-owner-set.js +5 -5
- package/dist/m365/pa/commands/app/app-permission-ensure.js +162 -0
- package/dist/m365/pa/commands/app/app-permission-list.js +2 -2
- package/dist/m365/pa/commands/app/app-permission-remove.js +153 -0
- package/dist/m365/pa/commands.js +3 -4
- package/dist/m365/planner/commands/bucket/bucket-add.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-get.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-list.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-remove.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-set.js +2 -2
- package/dist/m365/planner/commands/plan/plan-get.js +1 -2
- package/dist/m365/planner/commands/plan/plan-list.js +4 -5
- package/dist/m365/planner/commands/plan/plan-set.js +2 -2
- package/dist/m365/planner/commands/task/task-add.js +17 -11
- package/dist/m365/planner/commands/task/task-get.js +35 -25
- package/dist/m365/planner/commands/task/task-list.js +26 -19
- package/dist/m365/planner/commands/task/task-remove.js +39 -34
- package/dist/m365/planner/commands/task/task-set.js +35 -23
- package/dist/m365/purview/commands/retentionlabel/retentionlabel-add.js +14 -14
- package/dist/m365/spfx/commands/package/package-generate.js +15 -15
- package/dist/m365/spfx/commands/project/DeployWorkflow.js +55 -0
- package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.18.0-beta.1.js → doctor-1.18.0-beta.5.js} +1 -1
- package/dist/m365/spfx/commands/project/project-doctor.js +9 -9
- package/dist/m365/spfx/commands/project/project-externalize/rules/PnPJsRule.js +2 -2
- package/dist/m365/spfx/commands/project/project-github-workflow-add.js +157 -0
- package/dist/m365/spfx/commands/project/project-github-workflow-model.js +2 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.2.js +1 -1
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.18.0-beta.1.js → upgrade-1.18.0-beta.5.js} +26 -26
- package/dist/m365/spfx/commands/project/project-upgrade.js +14 -14
- package/dist/m365/spfx/commands/spfx-doctor.js +76 -106
- package/dist/m365/spfx/commands.js +1 -0
- package/dist/m365/spo/commands/app/SpoAppBaseCommand.js +27 -26
- package/dist/m365/spo/commands/app/app-add.js +9 -9
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-add.js +5 -5
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-list.js +5 -5
- package/dist/m365/spo/commands/commandset/commandset-add.js +11 -11
- package/dist/m365/spo/commands/commandset/commandset-get.js +8 -8
- package/dist/m365/spo/commands/commandset/commandset-list.js +5 -5
- package/dist/m365/spo/commands/commandset/commandset-remove.js +5 -5
- package/dist/m365/spo/commands/commandset/commandset-set.js +11 -11
- package/dist/m365/spo/commands/file/file-add.js +13 -13
- package/dist/m365/spo/commands/file/file-checkin.js +1 -1
- package/dist/m365/spo/commands/file/file-checkout.js +1 -1
- package/dist/m365/spo/commands/file/file-copy.js +36 -4
- package/dist/m365/spo/commands/file/file-list.js +4 -4
- package/dist/m365/spo/commands/file/file-move.js +74 -98
- package/dist/m365/spo/commands/file/file-remove.js +6 -6
- package/dist/m365/spo/commands/file/file-rename.js +2 -2
- package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +1 -1
- package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +1 -1
- package/dist/m365/spo/commands/file/file-roleassignment-add.js +1 -1
- package/dist/m365/spo/commands/file/file-roleassignment-remove.js +1 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-break.js +1 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +1 -1
- package/dist/m365/spo/commands/file/file-sharinglink-add.js +8 -8
- package/dist/m365/spo/commands/file/file-sharinglink-list.js +5 -5
- package/dist/m365/spo/commands/file/file-version-clear.js +1 -1
- package/dist/m365/spo/commands/file/file-version-get.js +1 -1
- package/dist/m365/spo/commands/file/file-version-list.js +1 -1
- package/dist/m365/spo/commands/file/file-version-remove.js +1 -1
- package/dist/m365/spo/commands/file/file-version-restore.js +1 -1
- package/dist/m365/spo/commands/folder/folder-add.js +2 -4
- package/dist/m365/spo/commands/folder/folder-copy.js +89 -45
- package/dist/m365/spo/commands/folder/folder-get.js +1 -1
- package/dist/m365/spo/commands/folder/folder-list.js +2 -2
- package/dist/m365/spo/commands/folder/folder-move.js +89 -47
- package/dist/m365/spo/commands/folder/folder-remove.js +7 -4
- package/dist/m365/spo/commands/folder/folder-rename.js +13 -17
- package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +1 -1
- package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +1 -1
- package/dist/m365/spo/commands/group/group-list.js +0 -1
- package/dist/m365/spo/commands/list/list-add.js +4 -4
- package/dist/m365/spo/commands/list/list-set.js +4 -4
- package/dist/m365/spo/commands/navigation/navigation-node-set.js +2 -2
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +34 -5
- package/dist/m365/spo/commands/page/clientsidepages.js +1 -81
- package/dist/m365/spo/commands/propertybag/propertybag-base.js +63 -59
- package/dist/m365/spo/commands/propertybag/propertybag-remove.js +28 -31
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +30 -32
- package/dist/m365/spo/commands/site/FlowsPolicy.js +7 -0
- package/dist/m365/spo/commands/site/site-add.js +114 -161
- package/dist/m365/spo/commands/site/site-apppermission-add.js +15 -18
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +34 -38
- package/dist/m365/spo/commands/site/site-apppermission-set.js +11 -14
- package/dist/m365/spo/commands/site/site-ensure.js +14 -67
- package/dist/m365/spo/commands/site/site-hubsite-disconnect.js +22 -22
- package/dist/m365/spo/commands/site/site-list.js +27 -43
- package/dist/m365/spo/commands/site/site-recyclebinitem-list.js +6 -6
- package/dist/m365/spo/commands/site/site-remove.js +166 -210
- package/dist/m365/spo/commands/site/site-set.js +178 -199
- package/dist/m365/spo/commands/tenant/tenant-commandset-add.js +8 -8
- package/dist/m365/spo/commands/tenant/tenant-commandset-set.js +8 -8
- package/dist/m365/spo/commands/tenant/tenant-settings-set.js +4 -4
- package/dist/m365/spo/commands/theme/theme-list.js +1 -9
- package/dist/m365/spo/commands/theme/theme-remove.js +24 -24
- package/dist/m365/spo/commands/theme/theme-set.js +0 -1
- package/dist/m365/spo/commands/user/user-remove.js +27 -27
- package/dist/m365/spo/commands/web/web-reindex.js +35 -42
- package/dist/m365/spo/commands/web/web-remove.js +21 -21
- package/dist/m365/spo/commands/web/web-roleassignment-add.js +16 -31
- package/dist/m365/spo/commands/web/web-roleassignment-remove.js +33 -44
- package/dist/m365/spo/commands/web/web-roleinheritance-break.js +18 -18
- package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +19 -19
- package/dist/m365/spo/commands/web/web-set.js +5 -5
- package/dist/m365/teams/commands/app/app-list.js +5 -5
- package/dist/m365/teams/commands/chat/chat-member-add.js +5 -5
- package/dist/m365/teams/commands/funsettings/funsettings-set.js +4 -4
- package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +4 -4
- package/dist/m365/teams/commands/membersettings/membersettings-set.js +4 -4
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +5 -5
- package/dist/m365/teams/commands/team/team-set.js +3 -3
- package/dist/m365/todo/commands/task/task-add.js +6 -6
- package/dist/m365/yammer/commands/message/message-like-set.js +27 -28
- package/dist/m365/yammer/commands/message/message-list.js +67 -86
- package/dist/m365/yammer/commands/message/message-remove.js +18 -18
- package/dist/m365/yammer/commands/yammer-search.js +58 -74
- package/dist/utils/aadGroup.js +18 -0
- package/dist/utils/fsUtil.js +5 -0
- package/dist/utils/planner.js +4 -3
- package/dist/utils/spo.js +595 -54
- package/dist/utils/validation.js +0 -3
- package/docs/docs/cmd/aad/{o365group/o365group-add.mdx → m365group/m365group-add.mdx} +13 -13
- package/docs/docs/cmd/aad/{o365group/o365group-conversation-list.mdx → m365group/m365group-conversation-list.mdx} +4 -4
- package/docs/docs/cmd/aad/{o365group/o365group-conversation-post-list.mdx → m365group/m365group-conversation-post-list.mdx} +8 -8
- package/docs/docs/cmd/aad/{o365group/o365group-get.mdx → m365group/m365group-get.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-list.mdx → m365group/m365group-list.mdx} +12 -29
- package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-clear.mdx → m365group/m365group-recyclebinitem-clear.mdx} +5 -5
- package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-list.mdx → m365group/m365group-recyclebinitem-list.mdx} +8 -8
- package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-remove.mdx → m365group/m365group-recyclebinitem-remove.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-restore.mdx → m365group/m365group-recyclebinitem-restore.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-remove.mdx → m365group/m365group-remove.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-renew.mdx → m365group/m365group-renew.mdx} +4 -4
- package/docs/docs/cmd/aad/{o365group/o365group-report-activitycounts.mdx → m365group/m365group-report-activitycounts.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-report-activitydetail.mdx → m365group/m365group-report-activitydetail.mdx} +7 -7
- package/docs/docs/cmd/aad/{o365group/o365group-report-activityfilecounts.mdx → m365group/m365group-report-activityfilecounts.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-report-activitygroupcounts.mdx → m365group/m365group-report-activitygroupcounts.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-report-activitystorage.mdx → m365group/m365group-report-activitystorage.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-set.mdx → m365group/m365group-set.mdx} +8 -8
- package/docs/docs/cmd/aad/{o365group/o365group-teamify.mdx → m365group/m365group-teamify.mdx} +5 -5
- package/docs/docs/cmd/aad/{o365group/o365group-user-add.mdx → m365group/m365group-user-add.mdx} +5 -5
- package/docs/docs/cmd/aad/{o365group/o365group-user-list.mdx → m365group/m365group-user-list.mdx} +7 -7
- package/docs/docs/cmd/aad/{o365group/o365group-user-remove.mdx → m365group/m365group-user-remove.mdx} +5 -5
- package/docs/docs/cmd/aad/{o365group/o365group-user-set.mdx → m365group/m365group-user-set.mdx} +5 -5
- package/docs/docs/cmd/aad/user/user-set.mdx +1 -1
- package/docs/docs/cmd/cli/config/config-list.mdx +78 -0
- package/docs/docs/cmd/flow/flow-enable.mdx +2 -2
- package/docs/docs/cmd/login.mdx +6 -0
- package/docs/docs/cmd/pa/app/app-permission-ensure.mdx +85 -0
- package/docs/docs/cmd/pa/app/app-permission-remove.mdx +74 -0
- package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-add.mdx +22 -7
- package/docs/docs/cmd/planner/task/task-get.mdx +13 -4
- package/docs/docs/cmd/planner/task/task-list.mdx +22 -7
- package/docs/docs/cmd/planner/task/task-remove.mdx +25 -8
- package/docs/docs/cmd/planner/task/task-set.mdx +22 -7
- package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +2 -2
- package/docs/docs/cmd/pp/dataverse/dataverse-table-list.mdx +2 -2
- package/docs/docs/cmd/pp/dataverse/dataverse-table-remove.mdx +3 -3
- package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +94 -0
- package/docs/docs/cmd/spo/file/file-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-checkin.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +1 -9
- package/docs/docs/cmd/spo/file/file-checkout.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-copy.mdx +20 -16
- package/docs/docs/cmd/spo/file/file-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-list.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-move.mdx +36 -18
- package/docs/docs/cmd/spo/file/file-remove.mdx +8 -8
- package/docs/docs/cmd/spo/file/file-rename.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-clear.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-list.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-restore.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-add.mdx +76 -1
- package/docs/docs/cmd/spo/folder/folder-copy.mdx +39 -12
- package/docs/docs/cmd/spo/folder/folder-get.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-list.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-move.mdx +40 -13
- package/docs/docs/cmd/spo/folder/folder-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-rename.mdx +5 -1
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +2 -2
- package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-attachment-list.mdx +1 -1
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.mdx +14 -1
- package/docs/docs/cmd/spo/site/site-add.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-list.mdx +3 -78
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
- package/docs/docs/cmd/teams/team/team-add.mdx +1 -1
- package/docs/docs/cmd/yammer/network/network-list.mdx +1 -1
- package/npm-shrinkwrap.json +290 -1413
- package/package.json +17 -18
- package/dist/m365/pa/cds-project-mutator.js +0 -91
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/dataset-template/generated/ManifestTypes.d.ts +0 -11
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/dataset-template/template_ControlManifest.Input.xml +0 -31
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/dataset-template/template_index.ts +0 -51
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/field-template/generated/ManifestTypes.d.ts +0 -12
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/field-template/template_ControlManifest.Input.xml +0 -37
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/field-template/template_index.ts +0 -48
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/index.ts +0 -0
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-dataset-template/template_ControlManifest.Input.xml +0 -31
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-dataset-template/template_index.tsx +0 -58
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-field-template/template_ControlManifest.Input.xml +0 -37
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-field-template/template_index.tsx +0 -55
- package/dist/m365/pa/commands/pcf/pcf-init/assets/package.json +0 -19
- package/dist/m365/pa/commands/pcf/pcf-init/assets/pcfconfig.json +0 -3
- package/dist/m365/pa/commands/pcf/pcf-init/assets/template_.gitignore +0 -14
- package/dist/m365/pa/commands/pcf/pcf-init/assets/template_pcfprojecttype.pcfproj +0 -45
- package/dist/m365/pa/commands/pcf/pcf-init/pcf-init-variables.js +0 -2
- package/dist/m365/pa/commands/pcf/pcf-init.js +0 -120
- package/dist/m365/pa/commands/solution/solution-init/assets/Other/Customizations.xml +0 -18
- package/dist/m365/pa/commands/solution/solution-init/assets/Other/Relationships.xml +0 -2
- package/dist/m365/pa/commands/solution/solution-init/assets/Other/template_Solution.xml +0 -94
- package/dist/m365/pa/commands/solution/solution-init/assets/template_.gitignore +0 -2
- package/dist/m365/pa/commands/solution/solution-init/assets/template_solutionprojecttype.cdsproj +0 -44
- package/dist/m365/pa/commands/solution/solution-init/solution-init-variables.js +0 -2
- package/dist/m365/pa/commands/solution/solution-init.js +0 -126
- package/dist/m365/pa/commands/solution/solution-reference-add.js +0 -88
- package/dist/m365/pa/template-instantiator.js +0 -57
- package/docs/docs/cmd/pa/pcf/pcf-init.mdx +0 -56
- package/docs/docs/cmd/pa/solution/solution-init.mdx +0 -46
- package/docs/docs/cmd/pa/solution/solution-reference-add.mdx +0 -42
- /package/dist/m365/aad/commands/{o365group → m365group}/GroupExtended.js +0 -0
package/.eslintrc.cjs
CHANGED
|
@@ -57,13 +57,13 @@ const dictionary = [
|
|
|
57
57
|
'member',
|
|
58
58
|
'messaging',
|
|
59
59
|
'model',
|
|
60
|
+
'm365',
|
|
60
61
|
'news',
|
|
61
62
|
'oauth2',
|
|
62
63
|
'office365',
|
|
63
64
|
'one',
|
|
64
65
|
'org',
|
|
65
66
|
'owner',
|
|
66
|
-
'o365',
|
|
67
67
|
'permission',
|
|
68
68
|
'place',
|
|
69
69
|
'policy',
|
|
@@ -128,8 +128,6 @@ module.exports = {
|
|
|
128
128
|
"mocha"
|
|
129
129
|
],
|
|
130
130
|
"ignorePatterns": [
|
|
131
|
-
"**/pcf-init/assets/**",
|
|
132
|
-
"**/solution-init/assets/**",
|
|
133
131
|
"**/package-generate/assets/**",
|
|
134
132
|
"**/test-projects/**",
|
|
135
133
|
"clientsidepages.ts",
|
package/dist/Auth.js
CHANGED
|
@@ -558,7 +558,8 @@ export class Auth {
|
|
|
558
558
|
resource = resource.substr(0, pos);
|
|
559
559
|
}
|
|
560
560
|
if (resource === 'https://api.bap.microsoft.com' ||
|
|
561
|
-
resource === 'https://api.powerapps.com'
|
|
561
|
+
resource === 'https://api.powerapps.com' ||
|
|
562
|
+
resource.endsWith('.api.bap.microsoft.com')) {
|
|
562
563
|
resource = 'https://service.powerapps.com/';
|
|
563
564
|
}
|
|
564
565
|
if (resource === 'https://api.powerbi.com') {
|
package/dist/Command.js
CHANGED
|
@@ -146,7 +146,7 @@ class Command {
|
|
|
146
146
|
const resultOptionValue = await inquirer.default
|
|
147
147
|
.prompt({
|
|
148
148
|
name: 'missingRequiredOptionValue',
|
|
149
|
-
message:
|
|
149
|
+
message: `${missingRequiredOptionName}:`
|
|
150
150
|
});
|
|
151
151
|
args.options[missingRequiredOptionName] = resultOptionValue.missingRequiredOptionValue;
|
|
152
152
|
Cli.log();
|
package/dist/GlobalOptions.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
(function (Output) {
|
|
3
|
-
Output[Output["text"] = 0] = "text";
|
|
4
|
-
Output[Output["json"] = 1] = "json";
|
|
5
|
-
Output[Output["csv"] = 2] = "csv";
|
|
6
|
-
Output[Output["md"] = 3] = "md";
|
|
7
|
-
})(Output || (Output = {}));
|
|
1
|
+
export {};
|
|
8
2
|
//# sourceMappingURL=GlobalOptions.js.map
|
package/dist/cli/Cli.js
CHANGED
|
@@ -761,8 +761,9 @@ export class Cli {
|
|
|
761
761
|
}
|
|
762
762
|
static log(message, ...optionalParams) {
|
|
763
763
|
const cli = Cli.getInstance();
|
|
764
|
+
const spinnerSpinning = cli.spinner.isSpinning;
|
|
764
765
|
/* c8 ignore next 3 */
|
|
765
|
-
if (
|
|
766
|
+
if (spinnerSpinning) {
|
|
766
767
|
cli.spinner.stop();
|
|
767
768
|
}
|
|
768
769
|
if (message) {
|
|
@@ -771,15 +772,31 @@ export class Cli {
|
|
|
771
772
|
else {
|
|
772
773
|
console.log();
|
|
773
774
|
}
|
|
775
|
+
// Restart the spinner if it was running before the log
|
|
776
|
+
/* c8 ignore next 3 */
|
|
777
|
+
if (spinnerSpinning) {
|
|
778
|
+
cli.spinner.start();
|
|
779
|
+
}
|
|
774
780
|
}
|
|
775
781
|
static async error(message, ...optionalParams) {
|
|
776
|
-
const
|
|
782
|
+
const cli = Cli.getInstance();
|
|
783
|
+
const spinnerSpinning = cli.spinner.isSpinning;
|
|
784
|
+
/* c8 ignore next 3 */
|
|
785
|
+
if (spinnerSpinning) {
|
|
786
|
+
cli.spinner.stop();
|
|
787
|
+
}
|
|
788
|
+
const errorOutput = cli.getSettingWithDefaultValue(settingsNames.errorOutput, 'stderr');
|
|
777
789
|
if (errorOutput === 'stdout') {
|
|
778
790
|
console.log(message, ...optionalParams);
|
|
779
791
|
}
|
|
780
792
|
else {
|
|
781
793
|
console.error(message, ...optionalParams);
|
|
782
794
|
}
|
|
795
|
+
// Restart the spinner if it was running before the log
|
|
796
|
+
/* c8 ignore next 3 */
|
|
797
|
+
if (spinnerSpinning) {
|
|
798
|
+
cli.spinner.start();
|
|
799
|
+
}
|
|
783
800
|
}
|
|
784
801
|
static async prompt(options, answers) {
|
|
785
802
|
const inquirer = await import('inquirer');
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _AadAppAddCommand_instances, _AadAppAddCommand_initTelemetry, _AadAppAddCommand_initOptions, _AadAppAddCommand_initValidators, _AadAppAddCommand_initOptionSets;
|
|
6
|
+
var _AadAppAddCommand_instances, _a, _AadAppAddCommand_initTelemetry, _AadAppAddCommand_initOptions, _AadAppAddCommand_initValidators, _AadAppAddCommand_initOptionSets;
|
|
7
7
|
import fs from 'fs';
|
|
8
8
|
import { v4 } from 'uuid';
|
|
9
9
|
import auth from '../../../../Auth.js';
|
|
@@ -635,7 +635,7 @@ class AadAppAddCommand extends GraphCommand {
|
|
|
635
635
|
return platform.charAt(0).toUpperCase() + platform.substring(1);
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
|
-
_AadAppAddCommand_instances = new WeakSet(), _AadAppAddCommand_initTelemetry = function _AadAppAddCommand_initTelemetry() {
|
|
638
|
+
_a = AadAppAddCommand, _AadAppAddCommand_instances = new WeakSet(), _AadAppAddCommand_initTelemetry = function _AadAppAddCommand_initTelemetry() {
|
|
639
639
|
this.telemetry.push((args) => {
|
|
640
640
|
Object.assign(this.telemetryProperties, {
|
|
641
641
|
apis: typeof args.options.apisDelegated !== 'undefined',
|
|
@@ -664,7 +664,7 @@ _AadAppAddCommand_instances = new WeakSet(), _AadAppAddCommand_initTelemetry = f
|
|
|
664
664
|
option: '-r, --redirectUris [redirectUris]'
|
|
665
665
|
}, {
|
|
666
666
|
option: '-p, --platform [platform]',
|
|
667
|
-
autocomplete:
|
|
667
|
+
autocomplete: _a.aadApplicationPlatform
|
|
668
668
|
}, {
|
|
669
669
|
option: '--implicitFlow'
|
|
670
670
|
}, {
|
|
@@ -679,7 +679,7 @@ _AadAppAddCommand_instances = new WeakSet(), _AadAppAddCommand_initTelemetry = f
|
|
|
679
679
|
option: '--scopeName [scopeName]'
|
|
680
680
|
}, {
|
|
681
681
|
option: '--scopeConsentBy [scopeConsentBy]',
|
|
682
|
-
autocomplete:
|
|
682
|
+
autocomplete: _a.aadAppScopeConsentBy
|
|
683
683
|
}, {
|
|
684
684
|
option: '--scopeAdminConsentDisplayName [scopeAdminConsentDisplayName]'
|
|
685
685
|
}, {
|
|
@@ -700,8 +700,8 @@ _AadAppAddCommand_instances = new WeakSet(), _AadAppAddCommand_initTelemetry = f
|
|
|
700
700
|
}, _AadAppAddCommand_initValidators = function _AadAppAddCommand_initValidators() {
|
|
701
701
|
this.validators.push(async (args) => {
|
|
702
702
|
if (args.options.platform &&
|
|
703
|
-
|
|
704
|
-
return `${args.options.platform} is not a valid value for platform. Allowed values are ${
|
|
703
|
+
_a.aadApplicationPlatform.indexOf(args.options.platform) < 0) {
|
|
704
|
+
return `${args.options.platform} is not a valid value for platform. Allowed values are ${_a.aadApplicationPlatform.join(', ')}`;
|
|
705
705
|
}
|
|
706
706
|
if (args.options.redirectUris && !args.options.platform) {
|
|
707
707
|
return `When you specify redirectUris you also need to specify platform`;
|
|
@@ -727,8 +727,8 @@ _AadAppAddCommand_instances = new WeakSet(), _AadAppAddCommand_initTelemetry = f
|
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
729
|
if (args.options.scopeConsentBy &&
|
|
730
|
-
|
|
731
|
-
return `${args.options.scopeConsentBy} is not a valid value for scopeConsentBy. Allowed values are ${
|
|
730
|
+
_a.aadAppScopeConsentBy.indexOf(args.options.scopeConsentBy) < 0) {
|
|
731
|
+
return `${args.options.scopeConsentBy} is not a valid value for scopeConsentBy. Allowed values are ${_a.aadAppScopeConsentBy.join(', ')}`;
|
|
732
732
|
}
|
|
733
733
|
if (args.options.manifest) {
|
|
734
734
|
try {
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _AadAppRoleAddCommand_instances, _AadAppRoleAddCommand_initTelemetry, _AadAppRoleAddCommand_initOptions, _AadAppRoleAddCommand_initValidators, _AadAppRoleAddCommand_initOptionSets;
|
|
6
|
+
var _AadAppRoleAddCommand_instances, _a, _AadAppRoleAddCommand_initTelemetry, _AadAppRoleAddCommand_initOptions, _AadAppRoleAddCommand_initValidators, _AadAppRoleAddCommand_initOptionSets;
|
|
7
7
|
import { v4 } from 'uuid';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
@@ -107,7 +107,7 @@ class AadAppRoleAddCommand extends GraphCommand {
|
|
|
107
107
|
throw `Multiple Azure AD application registration with name ${appName} found. Please disambiguate (app object IDs): ${res.value.map(a => a.id).join(', ')}`;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
_AadAppRoleAddCommand_instances = new WeakSet(), _AadAppRoleAddCommand_initTelemetry = function _AadAppRoleAddCommand_initTelemetry() {
|
|
110
|
+
_a = AadAppRoleAddCommand, _AadAppRoleAddCommand_instances = new WeakSet(), _AadAppRoleAddCommand_initTelemetry = function _AadAppRoleAddCommand_initTelemetry() {
|
|
111
111
|
this.telemetry.push((args) => {
|
|
112
112
|
Object.assign(this.telemetryProperties, {
|
|
113
113
|
appId: typeof args.options.appId !== 'undefined',
|
|
@@ -117,13 +117,13 @@ _AadAppRoleAddCommand_instances = new WeakSet(), _AadAppRoleAddCommand_initTelem
|
|
|
117
117
|
});
|
|
118
118
|
}, _AadAppRoleAddCommand_initOptions = function _AadAppRoleAddCommand_initOptions() {
|
|
119
119
|
this.options.unshift({ option: '--appId [appId]' }, { option: '--appObjectId [appObjectId]' }, { option: '--appName [appName]' }, { option: '-n, --name <name>' }, { option: '-d, --description <description>' }, {
|
|
120
|
-
option: '-m, --allowedMembers <allowedMembers>', autocomplete:
|
|
120
|
+
option: '-m, --allowedMembers <allowedMembers>', autocomplete: _a.allowedMembers
|
|
121
121
|
}, { option: '-c, --claim <claim>' });
|
|
122
122
|
}, _AadAppRoleAddCommand_initValidators = function _AadAppRoleAddCommand_initValidators() {
|
|
123
123
|
this.validators.push(async (args) => {
|
|
124
124
|
const { allowedMembers, claim } = args.options;
|
|
125
|
-
if (
|
|
126
|
-
return `${allowedMembers} is not a valid value for allowedMembers. Valid values are ${
|
|
125
|
+
if (_a.allowedMembers.indexOf(allowedMembers) < 0) {
|
|
126
|
+
return `${allowedMembers} is not a valid value for allowedMembers. Valid values are ${_a.allowedMembers.join(', ')}`;
|
|
127
127
|
}
|
|
128
128
|
if (claim.length > 120) {
|
|
129
129
|
return `Claim must not be longer than 120 characters`;
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _AadAppSetCommand_instances, _AadAppSetCommand_initTelemetry, _AadAppSetCommand_initOptions, _AadAppSetCommand_initValidators, _AadAppSetCommand_initOptionSets;
|
|
6
|
+
var _AadAppSetCommand_instances, _a, _AadAppSetCommand_initTelemetry, _AadAppSetCommand_initOptions, _AadAppSetCommand_initValidators, _AadAppSetCommand_initOptionSets;
|
|
7
7
|
import fs from 'fs';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
@@ -229,7 +229,7 @@ class AadAppSetCommand extends GraphCommand {
|
|
|
229
229
|
return request.patch(requestOptions);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
_AadAppSetCommand_instances = new WeakSet(), _AadAppSetCommand_initTelemetry = function _AadAppSetCommand_initTelemetry() {
|
|
232
|
+
_a = AadAppSetCommand, _AadAppSetCommand_instances = new WeakSet(), _AadAppSetCommand_initTelemetry = function _AadAppSetCommand_initTelemetry() {
|
|
233
233
|
this.telemetry.push((args) => {
|
|
234
234
|
Object.assign(this.telemetryProperties, {
|
|
235
235
|
appId: typeof args.options.appId !== 'undefined',
|
|
@@ -247,7 +247,7 @@ _AadAppSetCommand_instances = new WeakSet(), _AadAppSetCommand_initTelemetry = f
|
|
|
247
247
|
}, _AadAppSetCommand_initOptions = function _AadAppSetCommand_initOptions() {
|
|
248
248
|
this.options.unshift({ option: '--appId [appId]' }, { option: '--objectId [objectId]' }, { option: '-n, --name [name]' }, { option: '-u, --uri [uri]' }, { option: '-r, --redirectUris [redirectUris]' }, { option: '--certificateFile [certificateFile]' }, { option: '--certificateBase64Encoded [certificateBase64Encoded]' }, { option: '--certificateDisplayName [certificateDisplayName]' }, {
|
|
249
249
|
option: '--platform [platform]',
|
|
250
|
-
autocomplete:
|
|
250
|
+
autocomplete: _a.aadApplicationPlatform
|
|
251
251
|
}, { option: '--redirectUrisToRemove [redirectUrisToRemove]' });
|
|
252
252
|
}, _AadAppSetCommand_initValidators = function _AadAppSetCommand_initValidators() {
|
|
253
253
|
this.validators.push(async (args) => {
|
|
@@ -264,8 +264,8 @@ _AadAppSetCommand_instances = new WeakSet(), _AadAppSetCommand_initTelemetry = f
|
|
|
264
264
|
return `When you specify redirectUris you also need to specify platform`;
|
|
265
265
|
}
|
|
266
266
|
if (args.options.platform &&
|
|
267
|
-
|
|
268
|
-
return `${args.options.platform} is not a valid value for platform. Allowed values are ${
|
|
267
|
+
_a.aadApplicationPlatform.indexOf(args.options.platform) < 0) {
|
|
268
|
+
return `${args.options.platform} is not a valid value for platform. Allowed values are ${_a.aadApplicationPlatform.join(', ')}`;
|
|
269
269
|
}
|
|
270
270
|
return true;
|
|
271
271
|
});
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var
|
|
6
|
+
var _AadM365GroupAddCommand_instances, _AadM365GroupAddCommand_initTelemetry, _AadM365GroupAddCommand_initOptions, _AadM365GroupAddCommand_initTypes, _AadM365GroupAddCommand_initValidators;
|
|
7
7
|
import { setTimeout } from 'timers/promises';
|
|
8
8
|
import fs from 'fs';
|
|
9
9
|
import path from 'path';
|
|
@@ -11,21 +11,21 @@ import request from '../../../../request.js';
|
|
|
11
11
|
import { formatting } from '../../../../utils/formatting.js';
|
|
12
12
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
13
13
|
import commands from '../../commands.js';
|
|
14
|
-
class
|
|
14
|
+
class AadM365GroupAddCommand extends GraphCommand {
|
|
15
15
|
get name() {
|
|
16
|
-
return commands.
|
|
16
|
+
return commands.M365GROUP_ADD;
|
|
17
17
|
}
|
|
18
18
|
get description() {
|
|
19
19
|
return 'Creates a Microsoft 365 Group';
|
|
20
20
|
}
|
|
21
21
|
constructor() {
|
|
22
22
|
super();
|
|
23
|
-
|
|
23
|
+
_AadM365GroupAddCommand_instances.add(this);
|
|
24
24
|
this.pollingInterval = 500;
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
27
|
-
__classPrivateFieldGet(this,
|
|
28
|
-
__classPrivateFieldGet(this,
|
|
25
|
+
__classPrivateFieldGet(this, _AadM365GroupAddCommand_instances, "m", _AadM365GroupAddCommand_initTelemetry).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _AadM365GroupAddCommand_instances, "m", _AadM365GroupAddCommand_initOptions).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _AadM365GroupAddCommand_instances, "m", _AadM365GroupAddCommand_initTypes).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _AadM365GroupAddCommand_instances, "m", _AadM365GroupAddCommand_initValidators).call(this);
|
|
29
29
|
}
|
|
30
30
|
async commandAction(logger, args) {
|
|
31
31
|
let group;
|
|
@@ -87,7 +87,7 @@ class AadO365GroupAddCommand extends GraphCommand {
|
|
|
87
87
|
},
|
|
88
88
|
data: fs.readFileSync(fullPath)
|
|
89
89
|
};
|
|
90
|
-
await this.setGroupLogo(requestOptionsPhoto,
|
|
90
|
+
await this.setGroupLogo(requestOptionsPhoto, AadM365GroupAddCommand.numRepeat, logger);
|
|
91
91
|
}
|
|
92
92
|
if (ownerIds.length !== 0) {
|
|
93
93
|
await Promise.all(ownerIds.map(ownerId => request.post({
|
|
@@ -159,7 +159,7 @@ class AadO365GroupAddCommand extends GraphCommand {
|
|
|
159
159
|
}
|
|
160
160
|
catch (err) {
|
|
161
161
|
if (--retryLeft > 0) {
|
|
162
|
-
await setTimeout(this.pollingInterval * (
|
|
162
|
+
await setTimeout(this.pollingInterval * (AadM365GroupAddCommand.numRepeat - retryLeft));
|
|
163
163
|
await this.setGroupLogo(requestOptions, retryLeft, logger);
|
|
164
164
|
}
|
|
165
165
|
else {
|
|
@@ -179,7 +179,7 @@ class AadO365GroupAddCommand extends GraphCommand {
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
|
|
182
|
+
_AadM365GroupAddCommand_instances = new WeakSet(), _AadM365GroupAddCommand_initTelemetry = function _AadM365GroupAddCommand_initTelemetry() {
|
|
183
183
|
this.telemetry.push((args) => {
|
|
184
184
|
Object.assign(this.telemetryProperties, {
|
|
185
185
|
owners: typeof args.options.owners !== 'undefined',
|
|
@@ -192,7 +192,7 @@ _AadO365GroupAddCommand_instances = new WeakSet(), _AadO365GroupAddCommand_initT
|
|
|
192
192
|
welcomeEmailDisabled: args.options.welcomeEmailDisabled
|
|
193
193
|
});
|
|
194
194
|
});
|
|
195
|
-
},
|
|
195
|
+
}, _AadM365GroupAddCommand_initOptions = function _AadM365GroupAddCommand_initOptions() {
|
|
196
196
|
this.options.unshift({
|
|
197
197
|
option: '-n, --displayName <displayName>'
|
|
198
198
|
}, {
|
|
@@ -220,9 +220,9 @@ _AadO365GroupAddCommand_instances = new WeakSet(), _AadO365GroupAddCommand_initT
|
|
|
220
220
|
}, {
|
|
221
221
|
option: '-l, --logoPath [logoPath]'
|
|
222
222
|
});
|
|
223
|
-
},
|
|
223
|
+
}, _AadM365GroupAddCommand_initTypes = function _AadM365GroupAddCommand_initTypes() {
|
|
224
224
|
this.types.boolean.push('allowMembersToPost', 'hideGroupInOutlook', 'subscribeNewGroupMembers', 'welcomeEmailDisabled');
|
|
225
|
-
},
|
|
225
|
+
}, _AadM365GroupAddCommand_initValidators = function _AadM365GroupAddCommand_initValidators() {
|
|
226
226
|
this.validators.push(async (args) => {
|
|
227
227
|
if (args.options.owners) {
|
|
228
228
|
const owners = args.options.owners.split(',').map(o => o.trim());
|
|
@@ -252,6 +252,6 @@ _AadO365GroupAddCommand_instances = new WeakSet(), _AadO365GroupAddCommand_initT
|
|
|
252
252
|
return true;
|
|
253
253
|
});
|
|
254
254
|
};
|
|
255
|
-
|
|
256
|
-
export default new
|
|
257
|
-
//# sourceMappingURL=
|
|
255
|
+
AadM365GroupAddCommand.numRepeat = 15;
|
|
256
|
+
export default new AadM365GroupAddCommand();
|
|
257
|
+
//# sourceMappingURL=m365group-add.js.map
|
|
@@ -3,14 +3,14 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var
|
|
6
|
+
var _AadM365GroupConversationListCommand_instances, _AadM365GroupConversationListCommand_initOptions, _AadM365GroupConversationListCommand_initValidators;
|
|
7
7
|
import { odata } from '../../../../utils/odata.js';
|
|
8
8
|
import { validation } from '../../../../utils/validation.js';
|
|
9
9
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
10
10
|
import commands from '../../commands.js';
|
|
11
|
-
class
|
|
11
|
+
class AadM365GroupConversationListCommand extends GraphCommand {
|
|
12
12
|
get name() {
|
|
13
|
-
return commands.
|
|
13
|
+
return commands.M365GROUP_CONVERSATION_LIST;
|
|
14
14
|
}
|
|
15
15
|
get description() {
|
|
16
16
|
return 'Lists conversations for the specified Microsoft 365 group';
|
|
@@ -20,9 +20,9 @@ class AadO365GroupConversationListCommand extends GraphCommand {
|
|
|
20
20
|
}
|
|
21
21
|
constructor() {
|
|
22
22
|
super();
|
|
23
|
-
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
23
|
+
_AadM365GroupConversationListCommand_instances.add(this);
|
|
24
|
+
__classPrivateFieldGet(this, _AadM365GroupConversationListCommand_instances, "m", _AadM365GroupConversationListCommand_initOptions).call(this);
|
|
25
|
+
__classPrivateFieldGet(this, _AadM365GroupConversationListCommand_instances, "m", _AadM365GroupConversationListCommand_initValidators).call(this);
|
|
26
26
|
}
|
|
27
27
|
async commandAction(logger, args) {
|
|
28
28
|
try {
|
|
@@ -34,11 +34,11 @@ class AadO365GroupConversationListCommand extends GraphCommand {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
_AadM365GroupConversationListCommand_instances = new WeakSet(), _AadM365GroupConversationListCommand_initOptions = function _AadM365GroupConversationListCommand_initOptions() {
|
|
38
38
|
this.options.unshift({
|
|
39
39
|
option: '-i, --groupId <groupId>'
|
|
40
40
|
});
|
|
41
|
-
},
|
|
41
|
+
}, _AadM365GroupConversationListCommand_initValidators = function _AadM365GroupConversationListCommand_initValidators() {
|
|
42
42
|
this.validators.push(async (args) => {
|
|
43
43
|
if (!validation.isValidGuid(args.options.groupId)) {
|
|
44
44
|
return `${args.options.groupId} is not a valid GUID`;
|
|
@@ -46,5 +46,5 @@ _AadO365GroupConversationListCommand_instances = new WeakSet(), _AadO365GroupCon
|
|
|
46
46
|
return true;
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
|
-
export default new
|
|
50
|
-
//# sourceMappingURL=
|
|
49
|
+
export default new AadM365GroupConversationListCommand();
|
|
50
|
+
//# sourceMappingURL=m365group-conversation-list.js.map
|
|
@@ -3,27 +3,27 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var
|
|
6
|
+
var _AadM365GroupConversationPostListCommand_instances, _AadM365GroupConversationPostListCommand_initTelemetry, _AadM365GroupConversationPostListCommand_initOptions, _AadM365GroupConversationPostListCommand_initValidators, _AadM365GroupConversationPostListCommand_initOptionSets;
|
|
7
7
|
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
9
|
import { odata } from '../../../../utils/odata.js';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
12
|
import commands from '../../commands.js';
|
|
13
|
-
class
|
|
13
|
+
class AadM365GroupConversationPostListCommand extends GraphCommand {
|
|
14
14
|
get name() {
|
|
15
|
-
return commands.
|
|
15
|
+
return commands.M365GROUP_CONVERSATION_POST_LIST;
|
|
16
16
|
}
|
|
17
17
|
get description() {
|
|
18
18
|
return 'Lists conversation posts of a Microsoft 365 group';
|
|
19
19
|
}
|
|
20
20
|
constructor() {
|
|
21
21
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
22
|
+
_AadM365GroupConversationPostListCommand_instances.add(this);
|
|
23
|
+
__classPrivateFieldGet(this, _AadM365GroupConversationPostListCommand_instances, "m", _AadM365GroupConversationPostListCommand_initTelemetry).call(this);
|
|
24
|
+
__classPrivateFieldGet(this, _AadM365GroupConversationPostListCommand_instances, "m", _AadM365GroupConversationPostListCommand_initOptions).call(this);
|
|
25
|
+
__classPrivateFieldGet(this, _AadM365GroupConversationPostListCommand_instances, "m", _AadM365GroupConversationPostListCommand_initValidators).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _AadM365GroupConversationPostListCommand_instances, "m", _AadM365GroupConversationPostListCommand_initOptionSets).call(this);
|
|
27
27
|
}
|
|
28
28
|
defaultProperties() {
|
|
29
29
|
return ['receivedDateTime', 'id'];
|
|
@@ -46,14 +46,14 @@ class AadO365GroupConversationPostListCommand extends GraphCommand {
|
|
|
46
46
|
return group.id;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
_AadM365GroupConversationPostListCommand_instances = new WeakSet(), _AadM365GroupConversationPostListCommand_initTelemetry = function _AadM365GroupConversationPostListCommand_initTelemetry() {
|
|
50
50
|
this.telemetry.push((args) => {
|
|
51
51
|
Object.assign(this.telemetryProperties, {
|
|
52
52
|
groupId: typeof args.options.groupId !== 'undefined',
|
|
53
53
|
groupDisplayName: typeof args.options.groupDisplayName !== 'undefined'
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
|
-
},
|
|
56
|
+
}, _AadM365GroupConversationPostListCommand_initOptions = function _AadM365GroupConversationPostListCommand_initOptions() {
|
|
57
57
|
this.options.unshift({
|
|
58
58
|
option: '-i, --groupId [groupId]'
|
|
59
59
|
}, {
|
|
@@ -61,15 +61,15 @@ _AadO365GroupConversationPostListCommand_instances = new WeakSet(), _AadO365Grou
|
|
|
61
61
|
}, {
|
|
62
62
|
option: '-t, --threadId <threadId>'
|
|
63
63
|
});
|
|
64
|
-
},
|
|
64
|
+
}, _AadM365GroupConversationPostListCommand_initValidators = function _AadM365GroupConversationPostListCommand_initValidators() {
|
|
65
65
|
this.validators.push(async (args) => {
|
|
66
66
|
if (args.options.groupId && !validation.isValidGuid(args.options.groupId)) {
|
|
67
67
|
return `${args.options.groupId} is not a valid GUID`;
|
|
68
68
|
}
|
|
69
69
|
return true;
|
|
70
70
|
});
|
|
71
|
-
},
|
|
71
|
+
}, _AadM365GroupConversationPostListCommand_initOptionSets = function _AadM365GroupConversationPostListCommand_initOptionSets() {
|
|
72
72
|
this.optionSets.push({ options: ['groupId', 'groupDisplayName'] });
|
|
73
73
|
};
|
|
74
|
-
export default new
|
|
75
|
-
//# sourceMappingURL=
|
|
74
|
+
export default new AadM365GroupConversationPostListCommand();
|
|
75
|
+
//# sourceMappingURL=m365group-conversation-post-list.js.map
|
|
@@ -3,29 +3,32 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var
|
|
6
|
+
var _AadM365GroupGetCommand_instances, _AadM365GroupGetCommand_initOptions, _AadM365GroupGetCommand_initValidators;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
12
|
-
class
|
|
12
|
+
class AadM365GroupGetCommand extends GraphCommand {
|
|
13
13
|
get name() {
|
|
14
|
-
return commands.
|
|
14
|
+
return commands.M365GROUP_GET;
|
|
15
15
|
}
|
|
16
16
|
get description() {
|
|
17
17
|
return 'Gets information about the specified Microsoft 365 Group or Microsoft Teams team';
|
|
18
18
|
}
|
|
19
19
|
constructor() {
|
|
20
20
|
super();
|
|
21
|
-
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
21
|
+
_AadM365GroupGetCommand_instances.add(this);
|
|
22
|
+
__classPrivateFieldGet(this, _AadM365GroupGetCommand_instances, "m", _AadM365GroupGetCommand_initOptions).call(this);
|
|
23
|
+
__classPrivateFieldGet(this, _AadM365GroupGetCommand_instances, "m", _AadM365GroupGetCommand_initValidators).call(this);
|
|
24
24
|
}
|
|
25
25
|
async commandAction(logger, args) {
|
|
26
26
|
let group;
|
|
27
27
|
try {
|
|
28
28
|
group = await aadGroup.getGroupById(args.options.id);
|
|
29
|
+
if (!group.groupTypes.some(type => type === 'Unified')) {
|
|
30
|
+
throw `Specified group with id '${args.options.id}' is not a Microsoft 365 group.`;
|
|
31
|
+
}
|
|
29
32
|
if (args.options.includeSiteUrl) {
|
|
30
33
|
const requestOptions = {
|
|
31
34
|
url: `${this.resource}/v1.0/groups/${group.id}/drive?$select=webUrl`,
|
|
@@ -44,13 +47,13 @@ class AadO365GroupGetCommand extends GraphCommand {
|
|
|
44
47
|
}
|
|
45
48
|
}
|
|
46
49
|
}
|
|
47
|
-
|
|
50
|
+
_AadM365GroupGetCommand_instances = new WeakSet(), _AadM365GroupGetCommand_initOptions = function _AadM365GroupGetCommand_initOptions() {
|
|
48
51
|
this.options.unshift({
|
|
49
52
|
option: '-i, --id <id>'
|
|
50
53
|
}, {
|
|
51
54
|
option: '--includeSiteUrl'
|
|
52
55
|
});
|
|
53
|
-
},
|
|
56
|
+
}, _AadM365GroupGetCommand_initValidators = function _AadM365GroupGetCommand_initValidators() {
|
|
54
57
|
this.validators.push(async (args) => {
|
|
55
58
|
if (!validation.isValidGuid(args.options.id)) {
|
|
56
59
|
return `${args.options.id} is not a valid GUID`;
|
|
@@ -58,5 +61,5 @@ _AadO365GroupGetCommand_instances = new WeakSet(), _AadO365GroupGetCommand_initO
|
|
|
58
61
|
return true;
|
|
59
62
|
});
|
|
60
63
|
};
|
|
61
|
-
export default new
|
|
62
|
-
//# sourceMappingURL=
|
|
64
|
+
export default new AadM365GroupGetCommand();
|
|
65
|
+
//# sourceMappingURL=m365group-get.js.map
|
|
@@ -3,28 +3,27 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var
|
|
6
|
+
var _AadM365GroupListCommand_instances, _AadM365GroupListCommand_initTelemetry, _AadM365GroupListCommand_initOptions;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
9
|
import { odata } from '../../../../utils/odata.js';
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
12
|
-
class
|
|
12
|
+
class AadM365GroupListCommand extends GraphCommand {
|
|
13
13
|
get name() {
|
|
14
|
-
return commands.
|
|
14
|
+
return commands.M365GROUP_LIST;
|
|
15
15
|
}
|
|
16
16
|
get description() {
|
|
17
17
|
return 'Lists Microsoft 365 Groups in the current tenant';
|
|
18
18
|
}
|
|
19
19
|
constructor() {
|
|
20
20
|
super();
|
|
21
|
-
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this, _AadO365GroupListCommand_instances, "m", _AadO365GroupListCommand_initValidators).call(this);
|
|
21
|
+
_AadM365GroupListCommand_instances.add(this);
|
|
22
|
+
__classPrivateFieldGet(this, _AadM365GroupListCommand_instances, "m", _AadM365GroupListCommand_initTelemetry).call(this);
|
|
23
|
+
__classPrivateFieldGet(this, _AadM365GroupListCommand_instances, "m", _AadM365GroupListCommand_initOptions).call(this);
|
|
25
24
|
}
|
|
26
25
|
defaultProperties() {
|
|
27
|
-
return ['id', 'displayName', 'mailNickname', '
|
|
26
|
+
return ['id', 'displayName', 'mailNickname', 'siteUrl'];
|
|
28
27
|
}
|
|
29
28
|
async commandAction(logger, args) {
|
|
30
29
|
const groupFilter = `?$filter=groupTypes/any(c:c+eq+'Unified')`;
|
|
@@ -32,13 +31,9 @@ class AadO365GroupListCommand extends GraphCommand {
|
|
|
32
31
|
const mailNicknameFilter = args.options.mailNickname ? ` and startswith(MailNickname,'${formatting.encodeQueryParameter(args.options.mailNickname)}')` : '';
|
|
33
32
|
const expandOwners = args.options.orphaned ? '&$expand=owners' : '';
|
|
34
33
|
const topCount = '&$top=100';
|
|
35
|
-
let endpoint = `${this.resource}/v1.0/groups${groupFilter}${displayNameFilter}${mailNicknameFilter}${expandOwners}${topCount}`;
|
|
36
|
-
if (args.options.deleted) {
|
|
37
|
-
endpoint = `${this.resource}/v1.0/directory/deletedItems/Microsoft.Graph.Group${groupFilter}${displayNameFilter}${mailNicknameFilter}${topCount}`;
|
|
38
|
-
}
|
|
39
34
|
try {
|
|
40
35
|
let groups = [];
|
|
41
|
-
groups = await odata.getAllItems(
|
|
36
|
+
groups = await odata.getAllItems(`${this.resource}/v1.0/groups${groupFilter}${displayNameFilter}${mailNicknameFilter}${expandOwners}${topCount}`);
|
|
42
37
|
if (args.options.orphaned) {
|
|
43
38
|
const orphanedGroups = [];
|
|
44
39
|
groups.forEach((group) => {
|
|
@@ -81,35 +76,25 @@ class AadO365GroupListCommand extends GraphCommand {
|
|
|
81
76
|
};
|
|
82
77
|
}
|
|
83
78
|
}
|
|
84
|
-
|
|
79
|
+
_AadM365GroupListCommand_instances = new WeakSet(), _AadM365GroupListCommand_initTelemetry = function _AadM365GroupListCommand_initTelemetry() {
|
|
85
80
|
this.telemetry.push((args) => {
|
|
86
81
|
Object.assign(this.telemetryProperties, {
|
|
87
82
|
displayName: typeof args.options.displayName !== 'undefined',
|
|
88
83
|
mailNickname: typeof args.options.mailNickname !== 'undefined',
|
|
89
84
|
includeSiteUrl: args.options.includeSiteUrl,
|
|
90
|
-
|
|
91
|
-
orphaned: args.options.orphaned
|
|
85
|
+
orphaned: !!args.options.orphaned
|
|
92
86
|
});
|
|
93
87
|
});
|
|
94
|
-
},
|
|
88
|
+
}, _AadM365GroupListCommand_initOptions = function _AadM365GroupListCommand_initOptions() {
|
|
95
89
|
this.options.unshift({
|
|
96
90
|
option: '-d, --displayName [displayName]'
|
|
97
91
|
}, {
|
|
98
92
|
option: '-m, --mailNickname [displayName]'
|
|
99
93
|
}, {
|
|
100
94
|
option: '--includeSiteUrl'
|
|
101
|
-
}, {
|
|
102
|
-
option: '--deleted'
|
|
103
95
|
}, {
|
|
104
96
|
option: '--orphaned'
|
|
105
97
|
});
|
|
106
|
-
}, _AadO365GroupListCommand_initValidators = function _AadO365GroupListCommand_initValidators() {
|
|
107
|
-
this.validators.push(async (args) => {
|
|
108
|
-
if (args.options.deleted && args.options.includeSiteUrl) {
|
|
109
|
-
return 'You can\'t retrieve site URLs of deleted Microsoft 365 Groups';
|
|
110
|
-
}
|
|
111
|
-
return true;
|
|
112
|
-
});
|
|
113
98
|
};
|
|
114
|
-
export default new
|
|
115
|
-
//# sourceMappingURL=
|
|
99
|
+
export default new AadM365GroupListCommand();
|
|
100
|
+
//# sourceMappingURL=m365group-list.js.map
|