@pnp/cli-microsoft365 7.4.0-beta.fce7b64 → 7.5.0-beta.494c631
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 +7 -0
- package/README.md +1 -1
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +2 -1
- package/dist/appInsights.js +2 -0
- package/dist/cli/cli.js +1 -0
- package/dist/m365/app/commands/app-get.js +1 -1
- package/dist/m365/app/commands/permission/permission-list.js +1 -1
- package/dist/m365/{aad/commands.js → entra/aadCommands.js} +2 -1
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-add.js +12 -8
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-get.js +18 -14
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-list.js +6 -2
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-add.js +16 -12
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-get.js +16 -12
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-list.js +16 -12
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-remove.js +18 -14
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-roleassignment-add.js +102 -0
- package/dist/m365/{aad → entra}/commands/app/app-add.js +25 -21
- package/dist/m365/{aad → entra}/commands/app/app-get.js +17 -13
- package/dist/m365/{aad → entra}/commands/app/app-list.js +7 -3
- package/dist/m365/{aad → entra}/commands/app/app-permission-add.js +16 -12
- package/dist/m365/{aad → entra}/commands/app/app-remove.js +17 -13
- package/dist/m365/{aad → entra}/commands/app/app-role-add.js +18 -14
- package/dist/m365/{aad → entra}/commands/app/app-role-list.js +15 -11
- package/dist/m365/{aad → entra}/commands/app/app-role-remove.js +17 -13
- package/dist/m365/{aad → entra}/commands/app/app-set.js +18 -14
- package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-add.js +17 -13
- package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-list.js +16 -12
- package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-remove.js +17 -13
- package/dist/m365/{aad → entra}/commands/group/group-get.js +17 -13
- package/dist/m365/{aad → entra}/commands/group/group-list.js +16 -12
- package/dist/m365/{aad → entra}/commands/group/group-remove.js +19 -15
- package/dist/m365/{aad → entra}/commands/group/group-user-list.js +17 -13
- package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-add.js +12 -8
- package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-get.js +12 -8
- package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-list.js +7 -3
- package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-remove.js +14 -10
- package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-set.js +12 -8
- package/dist/m365/{aad → entra}/commands/groupsettingtemplate/groupsettingtemplate-get.js +17 -13
- package/dist/m365/{aad → entra}/commands/groupsettingtemplate/groupsettingtemplate-list.js +7 -3
- package/dist/m365/{aad → entra}/commands/license/license-list.js +6 -2
- package/dist/m365/{aad → entra}/commands/m365group/m365group-add.js +19 -15
- package/dist/m365/{aad → entra}/commands/m365group/m365group-conversation-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/m365group/m365group-conversation-post-list.js +16 -12
- package/dist/m365/{aad → entra}/commands/m365group/m365group-get.js +12 -8
- package/dist/m365/{aad → entra}/commands/m365group/m365group-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-clear.js +12 -8
- package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-remove.js +16 -12
- package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-restore.js +16 -12
- package/dist/m365/{aad → entra}/commands/m365group/m365group-remove.js +17 -13
- package/dist/m365/{aad → entra}/commands/m365group/m365group-renew.js +12 -8
- package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitycounts.js +4 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitydetail.js +4 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activityfilecounts.js +4 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitygroupcounts.js +4 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitystorage.js +4 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-set.js +19 -15
- package/dist/m365/{aad → entra}/commands/m365group/m365group-teamify.js +16 -12
- package/dist/m365/{aad → entra}/commands/m365group/m365group-user-add.js +14 -13
- package/dist/m365/entra/commands/m365group/m365group-user-list.js +154 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-user-remove.js +14 -13
- package/dist/m365/{aad → entra}/commands/m365group/m365group-user-set.js +14 -13
- package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-add.js +12 -8
- package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-remove.js +10 -6
- package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-set.js +10 -6
- package/dist/m365/{aad → entra}/commands/policy/policy-list.js +16 -12
- package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-disable.js +12 -8
- package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-enable.js +12 -8
- package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-get.js +6 -2
- package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-set.js +14 -10
- package/dist/m365/{aad → entra}/commands/sp/sp-add.js +17 -13
- package/dist/m365/{aad → entra}/commands/sp/sp-get.js +16 -12
- package/dist/m365/{aad → entra}/commands/sp/sp-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/user/user-add.js +18 -14
- package/dist/m365/{aad → entra}/commands/user/user-get.js +16 -12
- package/dist/m365/{aad → entra}/commands/user/user-guest-add.js +12 -8
- package/dist/m365/{aad → entra}/commands/user/user-hibp.js +14 -10
- package/dist/m365/{aad → entra}/commands/user/user-license-add.js +16 -12
- package/dist/m365/{aad → entra}/commands/user/user-license-list.js +16 -12
- package/dist/m365/{aad → entra}/commands/user/user-license-remove.js +16 -12
- package/dist/m365/{aad → entra}/commands/user/user-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/user/user-password-validate.js +10 -6
- package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-clear.js +12 -8
- package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-list.js +6 -2
- package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-remove.js +14 -10
- package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-restore.js +12 -8
- package/dist/m365/{aad → entra}/commands/user/user-remove.js +16 -12
- package/dist/m365/{aad → entra}/commands/user/user-set.js +18 -14
- package/dist/m365/{aad → entra}/commands/user/user-signin-list.js +15 -11
- package/dist/m365/entra/commands.js +86 -0
- package/dist/m365/external/commands/connection/connection-urltoitemresolver-add.js +69 -0
- package/dist/m365/external/commands.js +1 -0
- package/dist/m365/flow/commands/run/run-get.js +52 -13
- package/dist/m365/pa/commands/app/app-get.js +26 -11
- package/dist/m365/pa/commands/app/app-remove.js +19 -2
- package/dist/m365/spo/commands/file/file-add.js +12 -8
- package/dist/m365/spo/commands/file/file-checkin.js +4 -1
- package/dist/m365/spo/commands/file/file-checkout-undo.js +5 -1
- package/dist/m365/spo/commands/file/file-checkout.js +4 -1
- package/dist/m365/spo/commands/file/file-copy.js +5 -1
- package/dist/m365/spo/commands/file/file-get.js +5 -1
- package/dist/m365/spo/commands/file/file-list.js +5 -1
- package/dist/m365/spo/commands/file/file-move.js +5 -1
- package/dist/m365/spo/commands/file/file-remove.js +5 -1
- package/dist/m365/spo/commands/file/file-rename.js +5 -1
- package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +4 -1
- package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +5 -1
- package/dist/m365/spo/commands/file/file-roleassignment-add.js +4 -1
- package/dist/m365/spo/commands/file/file-roleassignment-remove.js +5 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-break.js +5 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +5 -1
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +6 -3
- package/dist/m365/spo/commands/file/file-sharinglink-add.js +4 -1
- package/dist/m365/spo/commands/file/file-sharinglink-clear.js +5 -1
- package/dist/m365/spo/commands/file/file-sharinglink-get.js +4 -1
- package/dist/m365/spo/commands/file/file-sharinglink-list.js +4 -1
- package/dist/m365/spo/commands/file/file-sharinglink-remove.js +5 -1
- package/dist/m365/spo/commands/file/file-sharinglink-set.js +4 -1
- package/dist/m365/spo/commands/file/file-version-clear.js +6 -2
- package/dist/m365/spo/commands/file/file-version-get.js +1 -1
- package/dist/m365/spo/commands/file/file-version-list.js +4 -1
- package/dist/m365/spo/commands/file/file-version-remove.js +2 -1
- package/dist/m365/spo/commands/file/file-version-restore.js +2 -1
- package/dist/m365/spo/commands/folder/folder-add.js +4 -1
- package/dist/m365/spo/commands/folder/folder-copy.js +5 -1
- package/dist/m365/spo/commands/folder/folder-get.js +4 -1
- package/dist/m365/spo/commands/folder/folder-list.js +6 -2
- package/dist/m365/spo/commands/folder/folder-move.js +5 -1
- package/dist/m365/spo/commands/folder/folder-remove.js +5 -1
- package/dist/m365/spo/commands/folder/folder-rename.js +4 -1
- package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +4 -1
- package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +5 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +4 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +6 -2
- package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +5 -1
- package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +5 -1
- package/dist/m365/spo/commands/group/group-member-add.js +21 -4
- package/dist/m365/spo/commands/group/group-member-remove.js +28 -11
- package/dist/m365/spo/commands/group/group-set.js +1 -1
- package/dist/m365/spo/commands/site/site-set.js +1 -1
- package/dist/m365/spo/commands/user/user-ensure.js +16 -6
- package/dist/m365/teams/commands/app/app-install.js +1 -1
- package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +1 -1
- package/dist/m365/teams/commands/user/user-app-add.js +35 -3
- package/dist/request.js +16 -0
- package/dist/utils/md.js +2 -2
- package/dist/utils/roleAssignment.js +42 -0
- package/dist/utils/roleDefinition.js +24 -0
- package/docs/docs/cmd/adaptivecard/adaptivecard-send.mdx +1 -1
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-add.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-get.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-list.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-add.mdx +13 -7
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-get.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-list.mdx +16 -10
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-remove.mdx +9 -3
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-roleassignment-add.mdx +116 -0
- package/docs/docs/cmd/{aad → entra}/app/app-add.mdx +44 -38
- package/docs/docs/cmd/{aad → entra}/app/app-get.mdx +23 -17
- package/docs/docs/cmd/{aad → entra}/app/app-list.mdx +11 -5
- package/docs/docs/cmd/entra/app/app-permission-add.mdx +68 -0
- package/docs/docs/cmd/entra/app/app-remove.mdx +65 -0
- package/docs/docs/cmd/entra/app/app-role-add.mdx +74 -0
- package/docs/docs/cmd/{aad → entra}/app/app-role-list.mdx +20 -14
- package/docs/docs/cmd/entra/app/app-role-remove.mdx +84 -0
- package/docs/docs/cmd/entra/app/app-set.mdx +103 -0
- package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-add.mdx +14 -8
- package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-list.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-remove.mdx +13 -7
- package/docs/docs/cmd/{aad → entra}/group/group-get.mdx +15 -9
- package/docs/docs/cmd/{aad → entra}/group/group-list.mdx +13 -7
- package/docs/docs/cmd/entra/group/group-remove.mdx +50 -0
- package/docs/docs/cmd/{aad → entra}/group/group-user-list.mdx +17 -11
- package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-add.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-get.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-list.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-remove.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-set.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/groupsettingtemplate/groupsettingtemplate-get.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/groupsettingtemplate/groupsettingtemplate-list.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/license/license-list.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-add.mdx +17 -11
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-conversation-list.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-conversation-post-list.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-get.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-list.mdx +13 -7
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-clear.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-list.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-remove.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-restore.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-remove.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-renew.mdx +8 -2
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitycounts.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitydetail.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activityfilecounts.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitygroupcounts.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitystorage.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-set.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-teamify.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-add.mdx +9 -3
- package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +131 -0
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-remove.mdx +9 -5
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-set.mdx +10 -6
- package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-add.mdx +15 -9
- package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-list.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-remove.mdx +13 -7
- package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-set.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/policy/policy-list.mdx +14 -8
- package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-disable.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-enable.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-get.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-set.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/sp/sp-add.mdx +25 -19
- package/docs/docs/cmd/{aad → entra}/sp/sp-get.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/sp/sp-list.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/user/user-add.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/user/user-get.mdx +16 -10
- package/docs/docs/cmd/{aad → entra}/user/user-guest-add.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/user/user-hibp.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/user/user-license-add.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/user/user-license-list.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/user/user-license-remove.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-list.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/user/user-password-validate.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-clear.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-list.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-remove.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-restore.mdx +8 -2
- package/docs/docs/cmd/{aad → entra}/user/user-remove.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-set.mdx +15 -9
- package/docs/docs/cmd/{aad → entra}/user/user-signin-list.mdx +19 -13
- package/docs/docs/cmd/external/connection/connection-urltoitemresolver-add.mdx +47 -0
- package/docs/docs/cmd/flow/run/run-get.mdx +167 -4
- package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +1 -1
- package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +1 -1
- package/docs/docs/cmd/pa/app/app-get.mdx +15 -0
- package/docs/docs/cmd/pa/app/app-remove.mdx +14 -0
- package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +1 -1
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +1 -1
- package/docs/docs/cmd/spo/commandset/commandset-add.mdx +1 -1
- package/docs/docs/cmd/spo/commandset/commandset-set.mdx +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-add.mdx +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-set.mdx +1 -1
- package/docs/docs/cmd/spo/field/field-set.mdx +1 -1
- package/docs/docs/cmd/spo/group/group-member-add.mdx +19 -7
- package/docs/docs/cmd/spo/group/group-member-remove.mdx +12 -6
- package/docs/docs/cmd/spo/list/list-view-set.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-add.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-batch-add.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-set.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-control-set.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-set.mdx +2 -2
- package/docs/docs/cmd/spo/site/site-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-add.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-group-add.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-set-add.mdx +1 -1
- package/docs/docs/cmd/spo/user/user-ensure.mdx +8 -5
- package/docs/docs/cmd/teams/team/team-add.mdx +1 -1
- package/docs/docs/cmd/teams/user/user-app-add.mdx +8 -5
- package/npm-shrinkwrap.json +186 -432
- package/package.json +9 -9
- package/dist/m365/aad/commands/m365group/m365group-user-list.js +0 -94
- package/docs/docs/cmd/aad/app/app-permission-add.mdx +0 -62
- package/docs/docs/cmd/aad/app/app-remove.mdx +0 -59
- package/docs/docs/cmd/aad/app/app-role-add.mdx +0 -68
- package/docs/docs/cmd/aad/app/app-role-remove.mdx +0 -78
- package/docs/docs/cmd/aad/app/app-set.mdx +0 -97
- package/docs/docs/cmd/aad/group/group-remove.mdx +0 -44
- package/docs/docs/cmd/aad/m365group/m365group-user-list.mdx +0 -99
- /package/dist/m365/{aad → entra}/commands/approleassignment/ServicePrincipal.js +0 -0
- /package/dist/m365/{aad → entra}/commands/m365group/GroupExtended.js +0 -0
- /package/dist/m365/{aad → entra}/commands/siteclassification/SiteClassificationSettings.js +0 -0
|
@@ -3,27 +3,31 @@ 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 _EntraM365GroupConversationPostListCommand_instances, _EntraM365GroupConversationPostListCommand_initTelemetry, _EntraM365GroupConversationPostListCommand_initOptions, _EntraM365GroupConversationPostListCommand_initValidators, _EntraM365GroupConversationPostListCommand_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
|
-
|
|
13
|
+
import aadCommands from '../../aadCommands.js';
|
|
14
|
+
class EntraM365GroupConversationPostListCommand extends GraphCommand {
|
|
14
15
|
get name() {
|
|
15
16
|
return commands.M365GROUP_CONVERSATION_POST_LIST;
|
|
16
17
|
}
|
|
17
18
|
get description() {
|
|
18
19
|
return 'Lists conversation posts of a Microsoft 365 group';
|
|
19
20
|
}
|
|
21
|
+
alias() {
|
|
22
|
+
return [aadCommands.M365GROUP_CONVERSATION_POST_LIST];
|
|
23
|
+
}
|
|
20
24
|
constructor() {
|
|
21
25
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
26
|
+
_EntraM365GroupConversationPostListCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraM365GroupConversationPostListCommand_instances, "m", _EntraM365GroupConversationPostListCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraM365GroupConversationPostListCommand_instances, "m", _EntraM365GroupConversationPostListCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraM365GroupConversationPostListCommand_instances, "m", _EntraM365GroupConversationPostListCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraM365GroupConversationPostListCommand_instances, "m", _EntraM365GroupConversationPostListCommand_initOptionSets).call(this);
|
|
27
31
|
}
|
|
28
32
|
defaultProperties() {
|
|
29
33
|
return ['receivedDateTime', 'id'];
|
|
@@ -50,14 +54,14 @@ class AadM365GroupConversationPostListCommand extends GraphCommand {
|
|
|
50
54
|
return group.id;
|
|
51
55
|
}
|
|
52
56
|
}
|
|
53
|
-
|
|
57
|
+
_EntraM365GroupConversationPostListCommand_instances = new WeakSet(), _EntraM365GroupConversationPostListCommand_initTelemetry = function _EntraM365GroupConversationPostListCommand_initTelemetry() {
|
|
54
58
|
this.telemetry.push((args) => {
|
|
55
59
|
Object.assign(this.telemetryProperties, {
|
|
56
60
|
groupId: typeof args.options.groupId !== 'undefined',
|
|
57
61
|
groupDisplayName: typeof args.options.groupDisplayName !== 'undefined'
|
|
58
62
|
});
|
|
59
63
|
});
|
|
60
|
-
},
|
|
64
|
+
}, _EntraM365GroupConversationPostListCommand_initOptions = function _EntraM365GroupConversationPostListCommand_initOptions() {
|
|
61
65
|
this.options.unshift({
|
|
62
66
|
option: '-i, --groupId [groupId]'
|
|
63
67
|
}, {
|
|
@@ -65,15 +69,15 @@ _AadM365GroupConversationPostListCommand_instances = new WeakSet(), _AadM365Grou
|
|
|
65
69
|
}, {
|
|
66
70
|
option: '-t, --threadId <threadId>'
|
|
67
71
|
});
|
|
68
|
-
},
|
|
72
|
+
}, _EntraM365GroupConversationPostListCommand_initValidators = function _EntraM365GroupConversationPostListCommand_initValidators() {
|
|
69
73
|
this.validators.push(async (args) => {
|
|
70
74
|
if (args.options.groupId && !validation.isValidGuid(args.options.groupId)) {
|
|
71
75
|
return `${args.options.groupId} is not a valid GUID`;
|
|
72
76
|
}
|
|
73
77
|
return true;
|
|
74
78
|
});
|
|
75
|
-
},
|
|
79
|
+
}, _EntraM365GroupConversationPostListCommand_initOptionSets = function _EntraM365GroupConversationPostListCommand_initOptionSets() {
|
|
76
80
|
this.optionSets.push({ options: ['groupId', 'groupDisplayName'] });
|
|
77
81
|
};
|
|
78
|
-
export default new
|
|
82
|
+
export default new EntraM365GroupConversationPostListCommand();
|
|
79
83
|
//# sourceMappingURL=m365group-conversation-post-list.js.map
|
|
@@ -3,24 +3,28 @@ 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 _EntraM365GroupGetCommand_instances, _EntraM365GroupGetCommand_initOptions, _EntraM365GroupGetCommand_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
|
+
import aadCommands from '../../aadCommands.js';
|
|
11
12
|
import commands from '../../commands.js';
|
|
12
|
-
class
|
|
13
|
+
class EntraM365GroupGetCommand extends GraphCommand {
|
|
13
14
|
get name() {
|
|
14
15
|
return commands.M365GROUP_GET;
|
|
15
16
|
}
|
|
16
17
|
get description() {
|
|
17
18
|
return 'Gets information about the specified Microsoft 365 Group or Microsoft Teams team';
|
|
18
19
|
}
|
|
20
|
+
alias() {
|
|
21
|
+
return [aadCommands.M365GROUP_GET];
|
|
22
|
+
}
|
|
19
23
|
constructor() {
|
|
20
24
|
super();
|
|
21
|
-
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
25
|
+
_EntraM365GroupGetCommand_instances.add(this);
|
|
26
|
+
__classPrivateFieldGet(this, _EntraM365GroupGetCommand_instances, "m", _EntraM365GroupGetCommand_initOptions).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraM365GroupGetCommand_instances, "m", _EntraM365GroupGetCommand_initValidators).call(this);
|
|
24
28
|
}
|
|
25
29
|
async commandAction(logger, args) {
|
|
26
30
|
let group;
|
|
@@ -48,13 +52,13 @@ class AadM365GroupGetCommand extends GraphCommand {
|
|
|
48
52
|
}
|
|
49
53
|
}
|
|
50
54
|
}
|
|
51
|
-
|
|
55
|
+
_EntraM365GroupGetCommand_instances = new WeakSet(), _EntraM365GroupGetCommand_initOptions = function _EntraM365GroupGetCommand_initOptions() {
|
|
52
56
|
this.options.unshift({
|
|
53
57
|
option: '-i, --id <id>'
|
|
54
58
|
}, {
|
|
55
59
|
option: '--includeSiteUrl'
|
|
56
60
|
});
|
|
57
|
-
},
|
|
61
|
+
}, _EntraM365GroupGetCommand_initValidators = function _EntraM365GroupGetCommand_initValidators() {
|
|
58
62
|
this.validators.push(async (args) => {
|
|
59
63
|
if (!validation.isValidGuid(args.options.id)) {
|
|
60
64
|
return `${args.options.id} is not a valid GUID`;
|
|
@@ -62,5 +66,5 @@ _AadM365GroupGetCommand_instances = new WeakSet(), _AadM365GroupGetCommand_initO
|
|
|
62
66
|
return true;
|
|
63
67
|
});
|
|
64
68
|
};
|
|
65
|
-
export default new
|
|
69
|
+
export default new EntraM365GroupGetCommand();
|
|
66
70
|
//# sourceMappingURL=m365group-get.js.map
|
|
@@ -3,24 +3,28 @@ 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 _EntraM365GroupListCommand_instances, _EntraM365GroupListCommand_initTelemetry, _EntraM365GroupListCommand_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
|
+
import aadCommands from '../../aadCommands.js';
|
|
11
12
|
import commands from '../../commands.js';
|
|
12
|
-
class
|
|
13
|
+
class EntraM365GroupListCommand extends GraphCommand {
|
|
13
14
|
get name() {
|
|
14
15
|
return commands.M365GROUP_LIST;
|
|
15
16
|
}
|
|
16
17
|
get description() {
|
|
17
18
|
return 'Lists Microsoft 365 Groups in the current tenant';
|
|
18
19
|
}
|
|
20
|
+
alias() {
|
|
21
|
+
return [aadCommands.M365GROUP_LIST];
|
|
22
|
+
}
|
|
19
23
|
constructor() {
|
|
20
24
|
super();
|
|
21
|
-
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
25
|
+
_EntraM365GroupListCommand_instances.add(this);
|
|
26
|
+
__classPrivateFieldGet(this, _EntraM365GroupListCommand_instances, "m", _EntraM365GroupListCommand_initTelemetry).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraM365GroupListCommand_instances, "m", _EntraM365GroupListCommand_initOptions).call(this);
|
|
24
28
|
}
|
|
25
29
|
defaultProperties() {
|
|
26
30
|
return ['id', 'displayName', 'mailNickname', 'siteUrl'];
|
|
@@ -76,7 +80,7 @@ class AadM365GroupListCommand extends GraphCommand {
|
|
|
76
80
|
};
|
|
77
81
|
}
|
|
78
82
|
}
|
|
79
|
-
|
|
83
|
+
_EntraM365GroupListCommand_instances = new WeakSet(), _EntraM365GroupListCommand_initTelemetry = function _EntraM365GroupListCommand_initTelemetry() {
|
|
80
84
|
this.telemetry.push((args) => {
|
|
81
85
|
Object.assign(this.telemetryProperties, {
|
|
82
86
|
displayName: typeof args.options.displayName !== 'undefined',
|
|
@@ -85,7 +89,7 @@ _AadM365GroupListCommand_instances = new WeakSet(), _AadM365GroupListCommand_ini
|
|
|
85
89
|
orphaned: !!args.options.orphaned
|
|
86
90
|
});
|
|
87
91
|
});
|
|
88
|
-
},
|
|
92
|
+
}, _EntraM365GroupListCommand_initOptions = function _EntraM365GroupListCommand_initOptions() {
|
|
89
93
|
this.options.unshift({
|
|
90
94
|
option: '-d, --displayName [displayName]'
|
|
91
95
|
}, {
|
|
@@ -96,5 +100,5 @@ _AadM365GroupListCommand_instances = new WeakSet(), _AadM365GroupListCommand_ini
|
|
|
96
100
|
option: '--orphaned'
|
|
97
101
|
});
|
|
98
102
|
};
|
|
99
|
-
export default new
|
|
103
|
+
export default new EntraM365GroupListCommand();
|
|
100
104
|
//# sourceMappingURL=m365group-list.js.map
|
|
@@ -3,24 +3,28 @@ 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 _EntraM365GroupRecycleBinItemClearCommand_instances, _EntraM365GroupRecycleBinItemClearCommand_initTelemetry, _EntraM365GroupRecycleBinItemClearCommand_initOptions;
|
|
7
7
|
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.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
|
-
|
|
12
|
+
import aadCommands from '../../aadCommands.js';
|
|
13
|
+
class EntraM365GroupRecycleBinItemClearCommand extends GraphCommand {
|
|
13
14
|
get name() {
|
|
14
15
|
return commands.M365GROUP_RECYCLEBINITEM_CLEAR;
|
|
15
16
|
}
|
|
16
17
|
get description() {
|
|
17
18
|
return 'Clears all M365 Groups from recycle bin.';
|
|
18
19
|
}
|
|
20
|
+
alias() {
|
|
21
|
+
return [aadCommands.M365GROUP_RECYCLEBINITEM_CLEAR];
|
|
22
|
+
}
|
|
19
23
|
constructor() {
|
|
20
24
|
super();
|
|
21
|
-
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
25
|
+
_EntraM365GroupRecycleBinItemClearCommand_instances.add(this);
|
|
26
|
+
__classPrivateFieldGet(this, _EntraM365GroupRecycleBinItemClearCommand_instances, "m", _EntraM365GroupRecycleBinItemClearCommand_initTelemetry).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraM365GroupRecycleBinItemClearCommand_instances, "m", _EntraM365GroupRecycleBinItemClearCommand_initOptions).call(this);
|
|
24
28
|
}
|
|
25
29
|
async commandAction(logger, args) {
|
|
26
30
|
const clearM365GroupRecycleBinItems = async () => {
|
|
@@ -62,16 +66,16 @@ class AadM365GroupRecycleBinItemClearCommand extends GraphCommand {
|
|
|
62
66
|
await Promise.all(deletePromises);
|
|
63
67
|
}
|
|
64
68
|
}
|
|
65
|
-
|
|
69
|
+
_EntraM365GroupRecycleBinItemClearCommand_instances = new WeakSet(), _EntraM365GroupRecycleBinItemClearCommand_initTelemetry = function _EntraM365GroupRecycleBinItemClearCommand_initTelemetry() {
|
|
66
70
|
this.telemetry.push((args) => {
|
|
67
71
|
Object.assign(this.telemetryProperties, {
|
|
68
72
|
force: typeof args.options.force !== 'undefined'
|
|
69
73
|
});
|
|
70
74
|
});
|
|
71
|
-
},
|
|
75
|
+
}, _EntraM365GroupRecycleBinItemClearCommand_initOptions = function _EntraM365GroupRecycleBinItemClearCommand_initOptions() {
|
|
72
76
|
this.options.unshift({
|
|
73
77
|
option: '-f, --force'
|
|
74
78
|
});
|
|
75
79
|
};
|
|
76
|
-
export default new
|
|
80
|
+
export default new EntraM365GroupRecycleBinItemClearCommand();
|
|
77
81
|
//# sourceMappingURL=m365group-recyclebinitem-clear.js.map
|
|
@@ -3,23 +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 _EntraM365GroupRecycleBinItemListCommand_instances, _EntraM365GroupRecycleBinItemListCommand_initTelemetry, _EntraM365GroupRecycleBinItemListCommand_initOptions;
|
|
7
7
|
import { formatting } from '../../../../utils/formatting.js';
|
|
8
8
|
import { odata } from '../../../../utils/odata.js';
|
|
9
9
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
10
10
|
import commands from '../../commands.js';
|
|
11
|
-
|
|
11
|
+
import aadCommands from '../../aadCommands.js';
|
|
12
|
+
class EntraM365GroupRecycleBinItemListCommand extends GraphCommand {
|
|
12
13
|
get name() {
|
|
13
14
|
return commands.M365GROUP_RECYCLEBINITEM_LIST;
|
|
14
15
|
}
|
|
15
16
|
get description() {
|
|
16
17
|
return 'Lists Microsoft 365 Groups deleted in the current tenant';
|
|
17
18
|
}
|
|
19
|
+
alias() {
|
|
20
|
+
return [aadCommands.M365GROUP_RECYCLEBINITEM_LIST];
|
|
21
|
+
}
|
|
18
22
|
constructor() {
|
|
19
23
|
super();
|
|
20
|
-
|
|
21
|
-
__classPrivateFieldGet(this,
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
24
|
+
_EntraM365GroupRecycleBinItemListCommand_instances.add(this);
|
|
25
|
+
__classPrivateFieldGet(this, _EntraM365GroupRecycleBinItemListCommand_instances, "m", _EntraM365GroupRecycleBinItemListCommand_initTelemetry).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _EntraM365GroupRecycleBinItemListCommand_instances, "m", _EntraM365GroupRecycleBinItemListCommand_initOptions).call(this);
|
|
23
27
|
}
|
|
24
28
|
defaultProperties() {
|
|
25
29
|
return ['id', 'displayName', 'mailNickname'];
|
|
@@ -39,19 +43,19 @@ class AadM365GroupRecycleBinItemListCommand extends GraphCommand {
|
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
45
|
}
|
|
42
|
-
|
|
46
|
+
_EntraM365GroupRecycleBinItemListCommand_instances = new WeakSet(), _EntraM365GroupRecycleBinItemListCommand_initTelemetry = function _EntraM365GroupRecycleBinItemListCommand_initTelemetry() {
|
|
43
47
|
this.telemetry.push((args) => {
|
|
44
48
|
Object.assign(this.telemetryProperties, {
|
|
45
49
|
groupDisplayName: typeof args.options.groupDisplayName !== 'undefined',
|
|
46
50
|
groupMailNickname: typeof args.options.groupMailNickname !== 'undefined'
|
|
47
51
|
});
|
|
48
52
|
});
|
|
49
|
-
},
|
|
53
|
+
}, _EntraM365GroupRecycleBinItemListCommand_initOptions = function _EntraM365GroupRecycleBinItemListCommand_initOptions() {
|
|
50
54
|
this.options.unshift({
|
|
51
55
|
option: '-d, --groupDisplayName [groupDisplayName]'
|
|
52
56
|
}, {
|
|
53
57
|
option: '-m, --groupMailNickname [groupMailNickname]'
|
|
54
58
|
});
|
|
55
59
|
};
|
|
56
|
-
export default new
|
|
60
|
+
export default new EntraM365GroupRecycleBinItemListCommand();
|
|
57
61
|
//# sourceMappingURL=m365group-recyclebinitem-list.js.map
|
|
@@ -3,27 +3,31 @@ 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 _EntraM365GroupRecycleBinItemRemoveCommand_instances, _EntraM365GroupRecycleBinItemRemoveCommand_initTelemetry, _EntraM365GroupRecycleBinItemRemoveCommand_initOptions, _EntraM365GroupRecycleBinItemRemoveCommand_initValidators, _EntraM365GroupRecycleBinItemRemoveCommand_initOptionSets;
|
|
7
7
|
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.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
|
-
|
|
13
|
+
import aadCommands from '../../aadCommands.js';
|
|
14
|
+
class EntraM365GroupRecycleBinItemRemoveCommand extends GraphCommand {
|
|
14
15
|
get name() {
|
|
15
16
|
return commands.M365GROUP_RECYCLEBINITEM_REMOVE;
|
|
16
17
|
}
|
|
17
18
|
get description() {
|
|
18
19
|
return 'Permanently deletes a Microsoft 365 Group from the recycle bin in the current tenant';
|
|
19
20
|
}
|
|
21
|
+
alias() {
|
|
22
|
+
return [aadCommands.M365GROUP_RECYCLEBINITEM_REMOVE];
|
|
23
|
+
}
|
|
20
24
|
constructor() {
|
|
21
25
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
26
|
+
_EntraM365GroupRecycleBinItemRemoveCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraM365GroupRecycleBinItemRemoveCommand_instances, "m", _EntraM365GroupRecycleBinItemRemoveCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraM365GroupRecycleBinItemRemoveCommand_instances, "m", _EntraM365GroupRecycleBinItemRemoveCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraM365GroupRecycleBinItemRemoveCommand_instances, "m", _EntraM365GroupRecycleBinItemRemoveCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraM365GroupRecycleBinItemRemoveCommand_instances, "m", _EntraM365GroupRecycleBinItemRemoveCommand_initOptionSets).call(this);
|
|
27
31
|
}
|
|
28
32
|
async commandAction(logger, args) {
|
|
29
33
|
const removeGroup = async () => {
|
|
@@ -84,7 +88,7 @@ class AadM365GroupRecycleBinItemRemoveCommand extends GraphCommand {
|
|
|
84
88
|
return groups[0].id;
|
|
85
89
|
}
|
|
86
90
|
}
|
|
87
|
-
|
|
91
|
+
_EntraM365GroupRecycleBinItemRemoveCommand_instances = new WeakSet(), _EntraM365GroupRecycleBinItemRemoveCommand_initTelemetry = function _EntraM365GroupRecycleBinItemRemoveCommand_initTelemetry() {
|
|
88
92
|
this.telemetry.push((args) => {
|
|
89
93
|
Object.assign(this.telemetryProperties, {
|
|
90
94
|
id: typeof args.options.id !== 'undefined',
|
|
@@ -93,7 +97,7 @@ _AadM365GroupRecycleBinItemRemoveCommand_instances = new WeakSet(), _AadM365Grou
|
|
|
93
97
|
force: !!args.options.force
|
|
94
98
|
});
|
|
95
99
|
});
|
|
96
|
-
},
|
|
100
|
+
}, _EntraM365GroupRecycleBinItemRemoveCommand_initOptions = function _EntraM365GroupRecycleBinItemRemoveCommand_initOptions() {
|
|
97
101
|
this.options.unshift({
|
|
98
102
|
option: '-i, --id [id]'
|
|
99
103
|
}, {
|
|
@@ -103,15 +107,15 @@ _AadM365GroupRecycleBinItemRemoveCommand_instances = new WeakSet(), _AadM365Grou
|
|
|
103
107
|
}, {
|
|
104
108
|
option: '-f, --force'
|
|
105
109
|
});
|
|
106
|
-
},
|
|
110
|
+
}, _EntraM365GroupRecycleBinItemRemoveCommand_initValidators = function _EntraM365GroupRecycleBinItemRemoveCommand_initValidators() {
|
|
107
111
|
this.validators.push(async (args) => {
|
|
108
112
|
if (args.options.id && !validation.isValidGuid(args.options.id)) {
|
|
109
113
|
return `${args.options.id} is not a valid GUID`;
|
|
110
114
|
}
|
|
111
115
|
return true;
|
|
112
116
|
});
|
|
113
|
-
},
|
|
117
|
+
}, _EntraM365GroupRecycleBinItemRemoveCommand_initOptionSets = function _EntraM365GroupRecycleBinItemRemoveCommand_initOptionSets() {
|
|
114
118
|
this.optionSets.push({ options: ['id', 'displayName', 'mailNickname'] });
|
|
115
119
|
};
|
|
116
|
-
export default new
|
|
120
|
+
export default new EntraM365GroupRecycleBinItemRemoveCommand();
|
|
117
121
|
//# sourceMappingURL=m365group-recyclebinitem-remove.js.map
|
|
@@ -3,27 +3,31 @@ 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 _EntraM365GroupRecycleBinItemRestoreCommand_instances, _EntraM365GroupRecycleBinItemRestoreCommand_initTelemetry, _EntraM365GroupRecycleBinItemRestoreCommand_initOptions, _EntraM365GroupRecycleBinItemRestoreCommand_initValidators, _EntraM365GroupRecycleBinItemRestoreCommand_initOptionSets;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.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
12
|
import { cli } from '../../../../cli/cli.js';
|
|
13
|
-
|
|
13
|
+
import aadCommands from '../../aadCommands.js';
|
|
14
|
+
class EntraM365GroupRecycleBinItemRestoreCommand extends GraphCommand {
|
|
14
15
|
get name() {
|
|
15
16
|
return commands.M365GROUP_RECYCLEBINITEM_RESTORE;
|
|
16
17
|
}
|
|
17
18
|
get description() {
|
|
18
19
|
return 'Restores a deleted Microsoft 365 Group';
|
|
19
20
|
}
|
|
21
|
+
alias() {
|
|
22
|
+
return [aadCommands.M365GROUP_RECYCLEBINITEM_RESTORE];
|
|
23
|
+
}
|
|
20
24
|
constructor() {
|
|
21
25
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
26
|
+
_EntraM365GroupRecycleBinItemRestoreCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraM365GroupRecycleBinItemRestoreCommand_instances, "m", _EntraM365GroupRecycleBinItemRestoreCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraM365GroupRecycleBinItemRestoreCommand_instances, "m", _EntraM365GroupRecycleBinItemRestoreCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraM365GroupRecycleBinItemRestoreCommand_instances, "m", _EntraM365GroupRecycleBinItemRestoreCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraM365GroupRecycleBinItemRestoreCommand_instances, "m", _EntraM365GroupRecycleBinItemRestoreCommand_initOptionSets).call(this);
|
|
27
31
|
}
|
|
28
32
|
async commandAction(logger, args) {
|
|
29
33
|
if (this.verbose) {
|
|
@@ -77,7 +81,7 @@ class AadM365GroupRecycleBinItemRestoreCommand extends GraphCommand {
|
|
|
77
81
|
return groups[0].id;
|
|
78
82
|
}
|
|
79
83
|
}
|
|
80
|
-
|
|
84
|
+
_EntraM365GroupRecycleBinItemRestoreCommand_instances = new WeakSet(), _EntraM365GroupRecycleBinItemRestoreCommand_initTelemetry = function _EntraM365GroupRecycleBinItemRestoreCommand_initTelemetry() {
|
|
81
85
|
this.telemetry.push((args) => {
|
|
82
86
|
Object.assign(this.telemetryProperties, {
|
|
83
87
|
id: typeof args.options.id !== 'undefined',
|
|
@@ -85,7 +89,7 @@ _AadM365GroupRecycleBinItemRestoreCommand_instances = new WeakSet(), _AadM365Gro
|
|
|
85
89
|
mailNickname: typeof args.options.mailNickname !== 'undefined'
|
|
86
90
|
});
|
|
87
91
|
});
|
|
88
|
-
},
|
|
92
|
+
}, _EntraM365GroupRecycleBinItemRestoreCommand_initOptions = function _EntraM365GroupRecycleBinItemRestoreCommand_initOptions() {
|
|
89
93
|
this.options.unshift({
|
|
90
94
|
option: '-i, --id [id]'
|
|
91
95
|
}, {
|
|
@@ -93,15 +97,15 @@ _AadM365GroupRecycleBinItemRestoreCommand_instances = new WeakSet(), _AadM365Gro
|
|
|
93
97
|
}, {
|
|
94
98
|
option: '-m, --mailNickname [mailNickname]'
|
|
95
99
|
});
|
|
96
|
-
},
|
|
100
|
+
}, _EntraM365GroupRecycleBinItemRestoreCommand_initValidators = function _EntraM365GroupRecycleBinItemRestoreCommand_initValidators() {
|
|
97
101
|
this.validators.push(async (args) => {
|
|
98
102
|
if (args.options.id && !validation.isValidGuid(args.options.id)) {
|
|
99
103
|
return `${args.options.id} is not a valid GUID`;
|
|
100
104
|
}
|
|
101
105
|
return true;
|
|
102
106
|
});
|
|
103
|
-
},
|
|
107
|
+
}, _EntraM365GroupRecycleBinItemRestoreCommand_initOptionSets = function _EntraM365GroupRecycleBinItemRestoreCommand_initOptionSets() {
|
|
104
108
|
this.optionSets.push({ options: ['id', 'displayName', 'mailNickname'] });
|
|
105
109
|
};
|
|
106
|
-
export default new
|
|
110
|
+
export default new EntraM365GroupRecycleBinItemRestoreCommand();
|
|
107
111
|
//# sourceMappingURL=m365group-recyclebinitem-restore.js.map
|
|
@@ -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 _EntraM365GroupRemoveCommand_instances, _EntraM365GroupRemoveCommand_initTelemetry, _EntraM365GroupRemoveCommand_initOptions, _EntraM365GroupRemoveCommand_initValidators;
|
|
7
7
|
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
@@ -14,20 +14,24 @@ import config from '../../../../config.js';
|
|
|
14
14
|
import { formatting } from '../../../../utils/formatting.js';
|
|
15
15
|
import { spo } from '../../../../utils/spo.js';
|
|
16
16
|
import { setTimeout } from 'timers/promises';
|
|
17
|
-
|
|
17
|
+
import aadCommands from '../../aadCommands.js';
|
|
18
|
+
class EntraM365GroupRemoveCommand extends GraphCommand {
|
|
18
19
|
get name() {
|
|
19
20
|
return commands.M365GROUP_REMOVE;
|
|
20
21
|
}
|
|
21
22
|
get description() {
|
|
22
23
|
return 'Removes a Microsoft 365 Group';
|
|
23
24
|
}
|
|
25
|
+
alias() {
|
|
26
|
+
return [aadCommands.M365GROUP_REMOVE];
|
|
27
|
+
}
|
|
24
28
|
constructor() {
|
|
25
29
|
super();
|
|
26
|
-
|
|
30
|
+
_EntraM365GroupRemoveCommand_instances.add(this);
|
|
27
31
|
this.intervalInMs = 5000;
|
|
28
|
-
__classPrivateFieldGet(this,
|
|
29
|
-
__classPrivateFieldGet(this,
|
|
30
|
-
__classPrivateFieldGet(this,
|
|
32
|
+
__classPrivateFieldGet(this, _EntraM365GroupRemoveCommand_instances, "m", _EntraM365GroupRemoveCommand_initTelemetry).call(this);
|
|
33
|
+
__classPrivateFieldGet(this, _EntraM365GroupRemoveCommand_instances, "m", _EntraM365GroupRemoveCommand_initOptions).call(this);
|
|
34
|
+
__classPrivateFieldGet(this, _EntraM365GroupRemoveCommand_instances, "m", _EntraM365GroupRemoveCommand_initValidators).call(this);
|
|
31
35
|
}
|
|
32
36
|
async commandAction(logger, args) {
|
|
33
37
|
const removeGroup = async () => {
|
|
@@ -92,14 +96,14 @@ class AadM365GroupRemoveCommand extends GraphCommand {
|
|
|
92
96
|
await request.post(requestOptions);
|
|
93
97
|
}
|
|
94
98
|
async deleteM365GroupFromRecycleBin(logger, id) {
|
|
95
|
-
for (let retries = 0; retries <
|
|
99
|
+
for (let retries = 0; retries < EntraM365GroupRemoveCommand.maxRetries; retries++) {
|
|
96
100
|
if (await this.isM365GroupInDeletedItemsList(id)) {
|
|
97
101
|
await this.removeM365GroupPermanently(logger, id);
|
|
98
102
|
return;
|
|
99
103
|
}
|
|
100
104
|
else {
|
|
101
105
|
if (this.verbose) {
|
|
102
|
-
await logger.logToStderr(`Group has not been deleted yet. Waiting for ${this.intervalInMs / 1000} seconds before the next attempt. ${
|
|
106
|
+
await logger.logToStderr(`Group has not been deleted yet. Waiting for ${this.intervalInMs / 1000} seconds before the next attempt. ${EntraM365GroupRemoveCommand.maxRetries - retries} attempts remaining...`);
|
|
103
107
|
}
|
|
104
108
|
await setTimeout(this.intervalInMs);
|
|
105
109
|
}
|
|
@@ -159,14 +163,14 @@ class AadM365GroupRemoveCommand extends GraphCommand {
|
|
|
159
163
|
}
|
|
160
164
|
}
|
|
161
165
|
}
|
|
162
|
-
|
|
166
|
+
_EntraM365GroupRemoveCommand_instances = new WeakSet(), _EntraM365GroupRemoveCommand_initTelemetry = function _EntraM365GroupRemoveCommand_initTelemetry() {
|
|
163
167
|
this.telemetry.push((args) => {
|
|
164
168
|
Object.assign(this.telemetryProperties, {
|
|
165
169
|
force: (!(!args.options.force)).toString(),
|
|
166
170
|
skipRecycleBin: args.options.skipRecycleBin
|
|
167
171
|
});
|
|
168
172
|
});
|
|
169
|
-
},
|
|
173
|
+
}, _EntraM365GroupRemoveCommand_initOptions = function _EntraM365GroupRemoveCommand_initOptions() {
|
|
170
174
|
this.options.unshift({
|
|
171
175
|
option: '-i, --id <id>'
|
|
172
176
|
}, {
|
|
@@ -174,7 +178,7 @@ _AadM365GroupRemoveCommand_instances = new WeakSet(), _AadM365GroupRemoveCommand
|
|
|
174
178
|
}, {
|
|
175
179
|
option: '--skipRecycleBin'
|
|
176
180
|
});
|
|
177
|
-
},
|
|
181
|
+
}, _EntraM365GroupRemoveCommand_initValidators = function _EntraM365GroupRemoveCommand_initValidators() {
|
|
178
182
|
this.validators.push(async (args) => {
|
|
179
183
|
if (!validation.isValidGuid(args.options.id)) {
|
|
180
184
|
return `${args.options.id} is not a valid GUID`;
|
|
@@ -182,6 +186,6 @@ _AadM365GroupRemoveCommand_instances = new WeakSet(), _AadM365GroupRemoveCommand
|
|
|
182
186
|
return true;
|
|
183
187
|
});
|
|
184
188
|
};
|
|
185
|
-
|
|
186
|
-
export default new
|
|
189
|
+
EntraM365GroupRemoveCommand.maxRetries = 10;
|
|
190
|
+
export default new EntraM365GroupRemoveCommand();
|
|
187
191
|
//# sourceMappingURL=m365group-remove.js.map
|
|
@@ -3,24 +3,28 @@ 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 _EntraM365GroupRenewCommand_instances, _EntraM365GroupRenewCommand_initOptions, _EntraM365GroupRenewCommand_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
|
+
import aadCommands from '../../aadCommands.js';
|
|
11
12
|
import commands from '../../commands.js';
|
|
12
|
-
class
|
|
13
|
+
class EntraM365GroupRenewCommand extends GraphCommand {
|
|
13
14
|
get name() {
|
|
14
15
|
return commands.M365GROUP_RENEW;
|
|
15
16
|
}
|
|
16
17
|
get description() {
|
|
17
18
|
return `Renews Microsoft 365 group's expiration`;
|
|
18
19
|
}
|
|
20
|
+
alias() {
|
|
21
|
+
return [aadCommands.M365GROUP_RENEW];
|
|
22
|
+
}
|
|
19
23
|
constructor() {
|
|
20
24
|
super();
|
|
21
|
-
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
25
|
+
_EntraM365GroupRenewCommand_instances.add(this);
|
|
26
|
+
__classPrivateFieldGet(this, _EntraM365GroupRenewCommand_instances, "m", _EntraM365GroupRenewCommand_initOptions).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraM365GroupRenewCommand_instances, "m", _EntraM365GroupRenewCommand_initValidators).call(this);
|
|
24
28
|
}
|
|
25
29
|
async commandAction(logger, args) {
|
|
26
30
|
if (this.verbose) {
|
|
@@ -44,11 +48,11 @@ class AadM365GroupRenewCommand extends GraphCommand {
|
|
|
44
48
|
}
|
|
45
49
|
}
|
|
46
50
|
}
|
|
47
|
-
|
|
51
|
+
_EntraM365GroupRenewCommand_instances = new WeakSet(), _EntraM365GroupRenewCommand_initOptions = function _EntraM365GroupRenewCommand_initOptions() {
|
|
48
52
|
this.options.unshift({
|
|
49
53
|
option: '-i, --id <id>'
|
|
50
54
|
});
|
|
51
|
-
},
|
|
55
|
+
}, _EntraM365GroupRenewCommand_initValidators = function _EntraM365GroupRenewCommand_initValidators() {
|
|
52
56
|
this.validators.push(async (args) => {
|
|
53
57
|
if (!validation.isValidGuid(args.options.id)) {
|
|
54
58
|
return `${args.options.id} is not a valid GUID`;
|
|
@@ -56,5 +60,5 @@ _AadM365GroupRenewCommand_instances = new WeakSet(), _AadM365GroupRenewCommand_i
|
|
|
56
60
|
return true;
|
|
57
61
|
});
|
|
58
62
|
};
|
|
59
|
-
export default new
|
|
63
|
+
export default new EntraM365GroupRenewCommand();
|
|
60
64
|
//# sourceMappingURL=m365group-renew.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import PeriodBasedReport from '../../../base/PeriodBasedReport.js';
|
|
2
|
+
import aadCommands from '../../aadCommands.js';
|
|
2
3
|
import commands from '../../commands.js';
|
|
3
4
|
class M365GroupReportActivityCountsCommand extends PeriodBasedReport {
|
|
4
5
|
get name() {
|
|
@@ -7,6 +8,9 @@ class M365GroupReportActivityCountsCommand extends PeriodBasedReport {
|
|
|
7
8
|
get description() {
|
|
8
9
|
return 'Get the number of group activities across group workloads';
|
|
9
10
|
}
|
|
11
|
+
alias() {
|
|
12
|
+
return [aadCommands.M365GROUP_REPORT_ACTIVITYCOUNTS];
|
|
13
|
+
}
|
|
10
14
|
get usageEndpoint() {
|
|
11
15
|
return 'getOffice365GroupsActivityCounts';
|
|
12
16
|
}
|