@pnp/cli-microsoft365 10.0.0-beta.04ac437 → 10.0.0-beta.1a88ed2
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 -0
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +3 -3
- package/dist/AuthServer.js +7 -7
- package/dist/api.js +1 -1
- package/dist/appInsights.js +6 -4
- package/dist/config.js +1 -0
- package/dist/m365/cli/commands/cli-doctor.js +2 -2
- package/dist/m365/cli/commands.js +1 -2
- package/dist/m365/commands/login.js +122 -69
- package/dist/m365/commands/setup.js +1 -1
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-add.js +0 -5
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-get.js +0 -5
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-list.js +0 -5
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-add.js +0 -5
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-get.js +0 -5
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-list.js +0 -5
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-remove.js +0 -5
- package/dist/m365/entra/commands/app/app-add.js +0 -5
- package/dist/m365/entra/commands/app/app-get.js +0 -5
- package/dist/m365/entra/commands/app/app-list.js +0 -5
- package/dist/m365/entra/commands/app/app-permission-add.js +0 -5
- package/dist/m365/entra/commands/app/app-remove.js +0 -5
- package/dist/m365/entra/commands/app/app-role-add.js +0 -5
- package/dist/m365/entra/commands/app/app-role-list.js +0 -5
- package/dist/m365/entra/commands/app/app-role-remove.js +0 -5
- package/dist/m365/entra/commands/app/app-set.js +0 -5
- package/dist/m365/entra/commands/approleassignment/approleassignment-add.js +0 -5
- package/dist/m365/entra/commands/approleassignment/approleassignment-list.js +0 -5
- package/dist/m365/entra/commands/approleassignment/approleassignment-remove.js +0 -5
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-add.js +0 -5
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-get.js +0 -5
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-list.js +0 -5
- package/dist/m365/entra/commands/group/group-add.js +0 -4
- package/dist/m365/entra/commands/group/group-get.js +0 -5
- package/dist/m365/entra/commands/group/group-list.js +0 -5
- package/dist/m365/entra/commands/group/{group-user-add.js → group-member-add.js} +18 -18
- package/dist/m365/entra/commands/group/{group-user-list.js → group-member-list.js} +16 -21
- package/dist/m365/entra/commands/group/{group-user-set.js → group-member-set.js} +19 -19
- package/dist/m365/entra/commands/group/group-remove.js +0 -5
- package/dist/m365/entra/commands/groupsetting/groupsetting-add.js +0 -5
- package/dist/m365/entra/commands/groupsetting/groupsetting-get.js +0 -5
- package/dist/m365/entra/commands/groupsetting/groupsetting-list.js +0 -5
- package/dist/m365/entra/commands/groupsetting/groupsetting-remove.js +0 -5
- package/dist/m365/entra/commands/groupsetting/groupsetting-set.js +0 -5
- package/dist/m365/entra/commands/groupsettingtemplate/groupsettingtemplate-get.js +0 -5
- package/dist/m365/entra/commands/groupsettingtemplate/groupsettingtemplate-list.js +0 -5
- package/dist/m365/entra/commands/license/license-list.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-add.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-conversation-list.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-conversation-post-list.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-get.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-list.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-clear.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-list.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-remove.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-restore.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-remove.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-renew.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-report-activitycounts.js +0 -4
- package/dist/m365/entra/commands/m365group/m365group-report-activitydetail.js +0 -4
- package/dist/m365/entra/commands/m365group/m365group-report-activityfilecounts.js +0 -4
- package/dist/m365/entra/commands/m365group/m365group-report-activitygroupcounts.js +0 -4
- package/dist/m365/entra/commands/m365group/m365group-report-activitystorage.js +0 -4
- package/dist/m365/entra/commands/m365group/m365group-set.js +159 -86
- package/dist/m365/entra/commands/m365group/m365group-teamify.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-user-add.js +5 -18
- package/dist/m365/entra/commands/m365group/m365group-user-list.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-user-remove.js +93 -62
- package/dist/m365/entra/commands/m365group/m365group-user-set.js +3 -15
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-add.js +0 -5
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-list.js +3 -17
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-remove.js +0 -5
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-set.js +0 -5
- package/dist/m365/entra/commands/policy/policy-list.js +0 -5
- package/dist/m365/entra/commands/siteclassification/siteclassification-disable.js +0 -5
- package/dist/m365/entra/commands/siteclassification/siteclassification-enable.js +0 -5
- package/dist/m365/entra/commands/siteclassification/siteclassification-get.js +0 -5
- package/dist/m365/entra/commands/siteclassification/siteclassification-set.js +0 -5
- package/dist/m365/entra/commands/user/user-add.js +0 -5
- package/dist/m365/entra/commands/user/user-get.js +0 -5
- package/dist/m365/entra/commands/user/user-guest-add.js +0 -5
- package/dist/m365/entra/commands/user/user-hibp.js +0 -5
- package/dist/m365/entra/commands/user/user-license-add.js +0 -5
- package/dist/m365/entra/commands/user/user-license-list.js +0 -5
- package/dist/m365/entra/commands/user/user-license-remove.js +0 -5
- package/dist/m365/entra/commands/user/user-list.js +0 -5
- package/dist/m365/entra/commands/user/user-password-validate.js +0 -5
- package/dist/m365/entra/commands/user/user-recyclebinitem-clear.js +0 -5
- package/dist/m365/entra/commands/user/user-recyclebinitem-list.js +0 -5
- package/dist/m365/entra/commands/user/user-recyclebinitem-remove.js +0 -5
- package/dist/m365/entra/commands/user/user-recyclebinitem-restore.js +0 -5
- package/dist/m365/entra/commands/user/user-registrationdetails-list.js +0 -4
- package/dist/m365/entra/commands/user/user-remove.js +0 -5
- package/dist/m365/entra/commands/user/user-set.js +0 -5
- package/dist/m365/entra/commands/user/user-signin-list.js +0 -5
- package/dist/m365/entra/commands.js +3 -3
- package/dist/m365/external/commands/item/item-add.js +2 -5
- package/dist/m365/file/commands/file-move.js +4 -4
- package/dist/m365/flow/commands/environment/environment-list.js +1 -1
- package/dist/m365/pa/commands/app/app-list.js +1 -6
- package/dist/m365/pa/commands/connector/connector-list.js +1 -6
- package/dist/m365/pa/commands/environment/environment-list.js +1 -1
- package/dist/m365/pp/commands/environment/environment-list.js +1 -1
- package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.20.0-rc.1.js → doctor-1.20.0.js} +4 -2
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN002021_DEVDEP_rushstack_eslint_config.js +10 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +1 -1
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.20.0-rc.1.js → upgrade-1.20.0.js} +28 -26
- package/dist/m365/spfx/commands/project/project-upgrade.js +13 -15
- package/dist/m365/spfx/commands/spfx-doctor.js +1 -1
- package/dist/m365/spo/commands/app/app-instance-list.js +3 -18
- package/dist/m365/spo/commands/app/app-list.js +1 -8
- package/dist/m365/spo/commands/feature/feature-list.js +1 -8
- package/dist/m365/spo/commands/file/file-copy.js +6 -6
- package/dist/m365/spo/commands/file/file-move.js +6 -6
- package/dist/m365/spo/commands/file/file-remove.js +7 -1
- package/dist/m365/spo/commands/folder/folder-move.js +43 -35
- package/dist/m365/spo/commands/group/group-member-add.js +3 -23
- package/dist/m365/spo/commands/group/group-member-remove.js +1 -18
- package/dist/m365/spo/commands/list/list-remove.js +14 -4
- package/dist/m365/spo/commands/list/list-webhook-list.js +1 -6
- package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +1 -8
- package/dist/m365/spo/commands/page/page-list.js +1 -1
- package/dist/m365/spo/commands/page/page-remove.js +37 -16
- package/dist/m365/spo/commands/page/page-template-list.js +1 -3
- package/dist/m365/spo/commands/site/site-admin-list.js +8 -9
- package/dist/m365/spo/commands/site/site-admin-remove.js +5 -4
- package/dist/m365/spo/commands/site/site-sharingpermission-set.js +68 -0
- package/dist/m365/spo/commands/sitescript/sitescript-list.js +1 -3
- package/dist/m365/spo/commands/tenant/tenant-site-membership-list.js +118 -0
- package/dist/m365/spo/commands/{site/site-rename.js → tenant/tenant-site-rename.js} +29 -32
- package/dist/m365/spo/commands/theme/theme-list.js +1 -1
- package/dist/m365/spo/commands/user/user-ensure.js +1 -11
- package/dist/m365/spo/commands/web/web-clientsidewebpart-list.js +1 -6
- package/dist/m365/spo/commands.js +3 -1
- package/dist/m365/spp/commands/model/model-list.js +57 -0
- package/dist/m365/spp/commands.js +2 -1
- package/dist/m365/teams/commands/channel/channel-get.js +15 -50
- package/dist/m365/teams/commands/tab/tab-list.js +5 -3
- package/dist/m365/teams/commands/team/team-get.js +16 -21
- package/dist/m365/viva/commands/engage/Community.js +2 -0
- package/dist/m365/viva/commands/engage/engage-community-list.js +28 -0
- package/dist/m365/viva/commands.js +1 -0
- package/dist/request.js +46 -61
- package/dist/telemetryRunner.js +2 -2
- package/dist/utils/spo.js +95 -28
- package/dist/utils/spp.js +22 -0
- package/dist/utils/teams.js +47 -5
- package/dist/utils/timersUtil.js +13 -0
- package/dist/utils/urlUtil.js +8 -0
- package/dist/utils/zod.js +11 -2
- package/docs/docs/cmd/cli/cli-doctor.mdx +24 -23
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-add.mdx +0 -6
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-get.mdx +0 -6
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-list.mdx +0 -6
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-add.mdx +0 -6
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-get.mdx +0 -6
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-list.mdx +0 -6
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-remove.mdx +0 -6
- package/docs/docs/cmd/entra/app/app-add.mdx +0 -1
- package/docs/docs/cmd/entra/app/app-get.mdx +0 -1
- package/docs/docs/cmd/entra/app/app-list.mdx +0 -1
- package/docs/docs/cmd/entra/app/app-permission-add.mdx +0 -1
- package/docs/docs/cmd/entra/app/app-permission-list.mdx +0 -6
- package/docs/docs/cmd/entra/app/app-remove.mdx +0 -1
- package/docs/docs/cmd/entra/app/app-role-add.mdx +0 -1
- package/docs/docs/cmd/entra/app/app-role-list.mdx +0 -1
- package/docs/docs/cmd/entra/app/app-role-remove.mdx +0 -1
- package/docs/docs/cmd/entra/app/app-set.mdx +0 -1
- package/docs/docs/cmd/entra/approleassignment/approleassignment-add.mdx +0 -6
- package/docs/docs/cmd/entra/approleassignment/approleassignment-list.mdx +0 -6
- package/docs/docs/cmd/entra/approleassignment/approleassignment-remove.mdx +0 -6
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-add.mdx +0 -1
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-get.mdx +0 -1
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-list.mdx +0 -1
- package/docs/docs/cmd/entra/group/group-add.mdx +0 -6
- package/docs/docs/cmd/entra/group/group-get.mdx +0 -6
- package/docs/docs/cmd/entra/group/group-list.mdx +0 -6
- package/docs/docs/cmd/entra/group/group-member-add.mdx +62 -0
- package/docs/docs/cmd/entra/group/{group-user-list.mdx → group-member-list.mdx} +14 -20
- package/docs/docs/cmd/entra/group/group-member-set.mdx +62 -0
- package/docs/docs/cmd/entra/group/group-remove.mdx +0 -6
- package/docs/docs/cmd/entra/groupsetting/groupsetting-add.mdx +0 -6
- package/docs/docs/cmd/entra/groupsetting/groupsetting-get.mdx +0 -6
- package/docs/docs/cmd/entra/groupsetting/groupsetting-list.mdx +0 -6
- package/docs/docs/cmd/entra/groupsetting/groupsetting-remove.mdx +0 -6
- package/docs/docs/cmd/entra/groupsetting/groupsetting-set.mdx +0 -6
- package/docs/docs/cmd/entra/groupsettingtemplate/groupsettingtemplate-get.mdx +0 -6
- package/docs/docs/cmd/entra/groupsettingtemplate/groupsettingtemplate-list.mdx +0 -6
- package/docs/docs/cmd/entra/license/license-list.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-add.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-conversation-list.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-conversation-post-list.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-get.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-list.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-clear.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-list.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-remove.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-restore.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-remove.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-renew.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-report-activitycounts.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-report-activitydetail.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-report-activityfilecounts.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-report-activitygroupcounts.mdx +2 -8
- package/docs/docs/cmd/entra/m365group/m365group-report-activitystorage.mdx +2 -8
- package/docs/docs/cmd/entra/m365group/m365group-set.mdx +38 -23
- package/docs/docs/cmd/entra/m365group/m365group-teamify.mdx +5 -11
- package/docs/docs/cmd/entra/m365group/m365group-user-add.mdx +5 -14
- package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +0 -12
- package/docs/docs/cmd/entra/m365group/m365group-user-remove.mdx +29 -21
- package/docs/docs/cmd/entra/m365group/m365group-user-set.mdx +4 -17
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-add.mdx +3 -9
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-list.mdx +1 -7
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-remove.mdx +4 -10
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-set.mdx +3 -9
- package/docs/docs/cmd/entra/policy/policy-list.mdx +3 -9
- package/docs/docs/cmd/entra/siteclassification/siteclassification-disable.mdx +3 -9
- package/docs/docs/cmd/entra/siteclassification/siteclassification-enable.mdx +7 -13
- package/docs/docs/cmd/entra/siteclassification/siteclassification-get.mdx +1 -7
- package/docs/docs/cmd/entra/siteclassification/siteclassification-set.mdx +8 -14
- package/docs/docs/cmd/entra/user/user-add.mdx +4 -10
- package/docs/docs/cmd/entra/user/user-get.mdx +7 -13
- package/docs/docs/cmd/entra/user/user-guest-add.mdx +3 -9
- package/docs/docs/cmd/entra/user/user-hibp.mdx +2 -8
- package/docs/docs/cmd/entra/user/user-license-add.mdx +0 -6
- package/docs/docs/cmd/entra/user/user-license-list.mdx +0 -6
- package/docs/docs/cmd/entra/user/user-license-remove.mdx +2 -8
- package/docs/docs/cmd/entra/user/user-list.mdx +1 -7
- package/docs/docs/cmd/entra/user/user-password-validate.mdx +1 -7
- package/docs/docs/cmd/entra/user/user-recyclebinitem-clear.mdx +2 -8
- package/docs/docs/cmd/entra/user/user-recyclebinitem-list.mdx +0 -6
- package/docs/docs/cmd/entra/user/user-recyclebinitem-remove.mdx +2 -8
- package/docs/docs/cmd/entra/user/user-recyclebinitem-restore.mdx +0 -6
- package/docs/docs/cmd/entra/user/user-registrationdetails-list.mdx +7 -13
- package/docs/docs/cmd/entra/user/user-remove.mdx +2 -8
- package/docs/docs/cmd/entra/user/user-set.mdx +0 -6
- package/docs/docs/cmd/entra/user/user-signin-list.mdx +9 -15
- package/docs/docs/cmd/external/item/item-add.mdx +3 -3
- package/docs/docs/cmd/login.mdx +9 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-move.mdx +1 -3
- package/docs/docs/cmd/spo/file/file-remove.mdx +13 -4
- package/docs/docs/cmd/spo/folder/folder-move.mdx +84 -13
- package/docs/docs/cmd/spo/group/group-member-add.mdx +8 -14
- package/docs/docs/cmd/spo/group/group-member-remove.mdx +5 -11
- package/docs/docs/cmd/spo/list/list-remove.mdx +10 -1
- package/docs/docs/cmd/spo/page/page-remove.mdx +30 -12
- package/docs/docs/cmd/spo/site/site-admin-list.mdx +64 -12
- package/docs/docs/cmd/spo/site/site-sharingpermission-set.mdx +58 -0
- package/docs/docs/cmd/spo/tenant/tenant-site-membership-list.mdx +122 -0
- package/docs/docs/cmd/spo/{site/site-rename.mdx → tenant/tenant-site-rename.mdx} +7 -7
- package/docs/docs/cmd/spo/user/user-ensure.mdx +2 -5
- package/docs/docs/cmd/spp/model/model-list.mdx +140 -0
- package/docs/docs/cmd/teams/tab/tab-list.mdx +1 -2
- package/docs/docs/cmd/viva/engage/engage-community-list.mdx +81 -0
- package/npm-shrinkwrap.json +2059 -389
- package/package.json +15 -15
- package/dist/m365/cli/commands/cli-reconsent.js +0 -29
- package/dist/m365/entra/aadCommands.js +0 -89
- package/dist/utils/driveUtil.js +0 -51
- package/docs/docs/cmd/cli/cli-reconsent.mdx +0 -62
- package/docs/docs/cmd/entra/group/group-user-add.mdx +0 -62
- package/docs/docs/cmd/entra/group/group-user-set.mdx +0 -62
|
@@ -7,7 +7,6 @@ var _EntraUserLicenseAddCommand_instances, _EntraUserLicenseAddCommand_initTelem
|
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { validation } from '../../../../utils/validation.js';
|
|
9
9
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
10
|
-
import aadCommands from '../../aadCommands.js';
|
|
11
10
|
import commands from '../../commands.js';
|
|
12
11
|
class EntraUserLicenseAddCommand extends GraphCommand {
|
|
13
12
|
get name() {
|
|
@@ -16,9 +15,6 @@ class EntraUserLicenseAddCommand extends GraphCommand {
|
|
|
16
15
|
get description() {
|
|
17
16
|
return 'Assigns a license to a user';
|
|
18
17
|
}
|
|
19
|
-
alias() {
|
|
20
|
-
return [aadCommands.USER_LICENSE_ADD];
|
|
21
|
-
}
|
|
22
18
|
constructor() {
|
|
23
19
|
super();
|
|
24
20
|
_EntraUserLicenseAddCommand_instances.add(this);
|
|
@@ -28,7 +24,6 @@ class EntraUserLicenseAddCommand extends GraphCommand {
|
|
|
28
24
|
__classPrivateFieldGet(this, _EntraUserLicenseAddCommand_instances, "m", _EntraUserLicenseAddCommand_initOptionSets).call(this);
|
|
29
25
|
}
|
|
30
26
|
async commandAction(logger, args) {
|
|
31
|
-
await this.showDeprecationWarning(logger, aadCommands.USER_LICENSE_ADD, commands.USER_LICENSE_ADD);
|
|
32
27
|
const addLicenses = args.options.ids.split(',').map(x => { return { "disabledPlans": [], "skuId": x }; });
|
|
33
28
|
const requestBody = { "addLicenses": addLicenses, "removeLicenses": [] };
|
|
34
29
|
const requestOptions = {
|
|
@@ -10,7 +10,6 @@ import { validation } from '../../../../utils/validation.js';
|
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
12
12
|
import auth from '../../../../Auth.js';
|
|
13
|
-
import aadCommands from '../../aadCommands.js';
|
|
14
13
|
class EntraUserLicenseListCommand extends GraphCommand {
|
|
15
14
|
get name() {
|
|
16
15
|
return commands.USER_LICENSE_LIST;
|
|
@@ -18,9 +17,6 @@ class EntraUserLicenseListCommand extends GraphCommand {
|
|
|
18
17
|
get description() {
|
|
19
18
|
return 'Lists the license details for a given user';
|
|
20
19
|
}
|
|
21
|
-
alias() {
|
|
22
|
-
return [aadCommands.USER_LICENSE_LIST];
|
|
23
|
-
}
|
|
24
20
|
defaultProperties() {
|
|
25
21
|
return ['id', 'skuId', 'skuPartNumber'];
|
|
26
22
|
}
|
|
@@ -34,7 +30,6 @@ class EntraUserLicenseListCommand extends GraphCommand {
|
|
|
34
30
|
}
|
|
35
31
|
async commandAction(logger, args) {
|
|
36
32
|
const isAppOnlyAccessToken = accessToken.isAppOnlyAccessToken(auth.connection.accessTokens[this.resource].accessToken);
|
|
37
|
-
await this.showDeprecationWarning(logger, aadCommands.USER_LICENSE_LIST, commands.USER_LICENSE_LIST);
|
|
38
33
|
if (isAppOnlyAccessToken && !args.options.userId && !args.options.userName) {
|
|
39
34
|
this.handleError(`Specify at least 'userId' or 'userName' when using application permissions.`);
|
|
40
35
|
}
|
|
@@ -9,7 +9,6 @@ import request from '../../../../request.js';
|
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import { cli } from '../../../../cli/cli.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
|
-
import aadCommands from '../../aadCommands.js';
|
|
13
12
|
class EntraUserLicenseRemoveCommand extends GraphCommand {
|
|
14
13
|
get name() {
|
|
15
14
|
return commands.USER_LICENSE_REMOVE;
|
|
@@ -17,9 +16,6 @@ class EntraUserLicenseRemoveCommand extends GraphCommand {
|
|
|
17
16
|
get description() {
|
|
18
17
|
return 'Removes a license from a user';
|
|
19
18
|
}
|
|
20
|
-
alias() {
|
|
21
|
-
return [aadCommands.USER_LICENSE_REMOVE];
|
|
22
|
-
}
|
|
23
19
|
constructor() {
|
|
24
20
|
super();
|
|
25
21
|
_EntraUserLicenseRemoveCommand_instances.add(this);
|
|
@@ -29,7 +25,6 @@ class EntraUserLicenseRemoveCommand extends GraphCommand {
|
|
|
29
25
|
__classPrivateFieldGet(this, _EntraUserLicenseRemoveCommand_instances, "m", _EntraUserLicenseRemoveCommand_initOptionSets).call(this);
|
|
30
26
|
}
|
|
31
27
|
async commandAction(logger, args) {
|
|
32
|
-
await this.showDeprecationWarning(logger, aadCommands.USER_LICENSE_REMOVE, commands.USER_LICENSE_REMOVE);
|
|
33
28
|
if (this.verbose) {
|
|
34
29
|
await logger.logToStderr(`Removing the licenses for the user '${args.options.userId || args.options.userName}'...`);
|
|
35
30
|
}
|
|
@@ -8,7 +8,6 @@ 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
|
-
import aadCommands from '../../aadCommands.js';
|
|
12
11
|
class EntraUserListCommand extends GraphCommand {
|
|
13
12
|
get name() {
|
|
14
13
|
return commands.USER_LIST;
|
|
@@ -16,9 +15,6 @@ class EntraUserListCommand extends GraphCommand {
|
|
|
16
15
|
get description() {
|
|
17
16
|
return 'Lists users matching specified criteria';
|
|
18
17
|
}
|
|
19
|
-
alias() {
|
|
20
|
-
return [aadCommands.USER_LIST];
|
|
21
|
-
}
|
|
22
18
|
allowUnknownOptions() {
|
|
23
19
|
return true;
|
|
24
20
|
}
|
|
@@ -34,7 +30,6 @@ class EntraUserListCommand extends GraphCommand {
|
|
|
34
30
|
__classPrivateFieldGet(this, _EntraUserListCommand_instances, "m", _EntraUserListCommand_initTypes).call(this);
|
|
35
31
|
}
|
|
36
32
|
async commandAction(logger, args) {
|
|
37
|
-
await this.showDeprecationWarning(logger, aadCommands.USER_LIST, commands.USER_LIST);
|
|
38
33
|
try {
|
|
39
34
|
let url = `${this.resource}/v1.0/users`;
|
|
40
35
|
if (args.options.properties) {
|
|
@@ -6,7 +6,6 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
6
6
|
var _EntraUserPasswordValidateCommand_instances, _EntraUserPasswordValidateCommand_initOptions;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
9
|
-
import aadCommands from '../../aadCommands.js';
|
|
10
9
|
import commands from '../../commands.js';
|
|
11
10
|
class EntraUserPasswordValidateCommand extends GraphCommand {
|
|
12
11
|
get name() {
|
|
@@ -15,16 +14,12 @@ class EntraUserPasswordValidateCommand extends GraphCommand {
|
|
|
15
14
|
get description() {
|
|
16
15
|
return "Check a user's password against the organization's password validation policy";
|
|
17
16
|
}
|
|
18
|
-
alias() {
|
|
19
|
-
return [aadCommands.USER_PASSWORD_VALIDATE];
|
|
20
|
-
}
|
|
21
17
|
constructor() {
|
|
22
18
|
super();
|
|
23
19
|
_EntraUserPasswordValidateCommand_instances.add(this);
|
|
24
20
|
__classPrivateFieldGet(this, _EntraUserPasswordValidateCommand_instances, "m", _EntraUserPasswordValidateCommand_initOptions).call(this);
|
|
25
21
|
}
|
|
26
22
|
async commandAction(logger, args) {
|
|
27
|
-
await this.showDeprecationWarning(logger, aadCommands.USER_PASSWORD_VALIDATE, commands.USER_PASSWORD_VALIDATE);
|
|
28
23
|
try {
|
|
29
24
|
const requestOptions = {
|
|
30
25
|
url: `${this.resource}/beta/users/validatePassword`,
|
|
@@ -9,7 +9,6 @@ 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
|
-
import aadCommands from '../../aadCommands.js';
|
|
13
12
|
class EntraUserRecycleBinItemClearCommand extends GraphCommand {
|
|
14
13
|
get name() {
|
|
15
14
|
return commands.USER_RECYCLEBINITEM_CLEAR;
|
|
@@ -17,9 +16,6 @@ class EntraUserRecycleBinItemClearCommand extends GraphCommand {
|
|
|
17
16
|
get description() {
|
|
18
17
|
return 'Removes all users from the tenant recycle bin';
|
|
19
18
|
}
|
|
20
|
-
alias() {
|
|
21
|
-
return [aadCommands.USER_RECYCLEBINITEM_CLEAR];
|
|
22
|
-
}
|
|
23
19
|
constructor() {
|
|
24
20
|
super();
|
|
25
21
|
_EntraUserRecycleBinItemClearCommand_instances.add(this);
|
|
@@ -27,7 +23,6 @@ class EntraUserRecycleBinItemClearCommand extends GraphCommand {
|
|
|
27
23
|
__classPrivateFieldGet(this, _EntraUserRecycleBinItemClearCommand_instances, "m", _EntraUserRecycleBinItemClearCommand_initOptions).call(this);
|
|
28
24
|
}
|
|
29
25
|
async commandAction(logger, args) {
|
|
30
|
-
await this.showDeprecationWarning(logger, aadCommands.USER_RECYCLEBINITEM_CLEAR, commands.USER_RECYCLEBINITEM_CLEAR);
|
|
31
26
|
const clearRecycleBinUsers = async () => {
|
|
32
27
|
try {
|
|
33
28
|
const users = await odata.getAllItems(`${this.resource}/v1.0/directory/deletedItems/microsoft.graph.user?$select=id`);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { odata } from '../../../../utils/odata.js';
|
|
2
2
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
3
3
|
import commands from '../../commands.js';
|
|
4
|
-
import aadCommands from '../../aadCommands.js';
|
|
5
4
|
class EntraUserRecycleBinItemListCommand extends GraphCommand {
|
|
6
5
|
get name() {
|
|
7
6
|
return commands.USER_RECYCLEBINITEM_LIST;
|
|
@@ -9,14 +8,10 @@ class EntraUserRecycleBinItemListCommand extends GraphCommand {
|
|
|
9
8
|
get description() {
|
|
10
9
|
return 'Lists users from the recycle bin in the current tenant';
|
|
11
10
|
}
|
|
12
|
-
alias() {
|
|
13
|
-
return [aadCommands.USER_RECYCLEBINITEM_LIST];
|
|
14
|
-
}
|
|
15
11
|
defaultProperties() {
|
|
16
12
|
return ['id', 'displayName', 'userPrincipalName'];
|
|
17
13
|
}
|
|
18
14
|
async commandAction(logger) {
|
|
19
|
-
await this.showDeprecationWarning(logger, aadCommands.USER_RECYCLEBINITEM_LIST, commands.USER_RECYCLEBINITEM_LIST);
|
|
20
15
|
if (this.verbose) {
|
|
21
16
|
await logger.logToStderr('Retrieving users from the recycle bin...');
|
|
22
17
|
}
|
|
@@ -8,7 +8,6 @@ import { cli } from '../../../../cli/cli.js';
|
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
|
-
import aadCommands from '../../aadCommands.js';
|
|
12
11
|
import commands from '../../commands.js';
|
|
13
12
|
class EntraUserRecycleBinItemRemoveCommand extends GraphCommand {
|
|
14
13
|
get name() {
|
|
@@ -17,9 +16,6 @@ class EntraUserRecycleBinItemRemoveCommand extends GraphCommand {
|
|
|
17
16
|
get description() {
|
|
18
17
|
return 'Removes a user from the recycle bin in the current tenant';
|
|
19
18
|
}
|
|
20
|
-
alias() {
|
|
21
|
-
return [aadCommands.USER_RECYCLEBINITEM_REMOVE];
|
|
22
|
-
}
|
|
23
19
|
constructor() {
|
|
24
20
|
super();
|
|
25
21
|
_EntraUserRecycleBinItemRemoveCommand_instances.add(this);
|
|
@@ -28,7 +24,6 @@ class EntraUserRecycleBinItemRemoveCommand extends GraphCommand {
|
|
|
28
24
|
__classPrivateFieldGet(this, _EntraUserRecycleBinItemRemoveCommand_instances, "m", _EntraUserRecycleBinItemRemoveCommand_initValidators).call(this);
|
|
29
25
|
}
|
|
30
26
|
async commandAction(logger, args) {
|
|
31
|
-
await this.showDeprecationWarning(logger, aadCommands.USER_RECYCLEBINITEM_REMOVE, commands.USER_RECYCLEBINITEM_REMOVE);
|
|
32
27
|
const clearRecycleBinItem = async () => {
|
|
33
28
|
if (this.verbose) {
|
|
34
29
|
await logger.logToStderr(`Permanently deleting user with id ${args.options.id} from Microsoft Entra ID`);
|
|
@@ -8,7 +8,6 @@ import request from '../../../../request.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
|
-
import aadCommands from '../../aadCommands.js';
|
|
12
11
|
class EntraUserRecycleBinItemRestoreCommand extends GraphCommand {
|
|
13
12
|
get name() {
|
|
14
13
|
return commands.USER_RECYCLEBINITEM_RESTORE;
|
|
@@ -16,9 +15,6 @@ class EntraUserRecycleBinItemRestoreCommand extends GraphCommand {
|
|
|
16
15
|
get description() {
|
|
17
16
|
return 'Restores a user from the tenant recycle bin';
|
|
18
17
|
}
|
|
19
|
-
alias() {
|
|
20
|
-
return [aadCommands.USER_RECYCLEBINITEM_RESTORE];
|
|
21
|
-
}
|
|
22
18
|
constructor() {
|
|
23
19
|
super();
|
|
24
20
|
_EntraUserRecycleBinItemRestoreCommand_instances.add(this);
|
|
@@ -26,7 +22,6 @@ class EntraUserRecycleBinItemRestoreCommand extends GraphCommand {
|
|
|
26
22
|
__classPrivateFieldGet(this, _EntraUserRecycleBinItemRestoreCommand_instances, "m", _EntraUserRecycleBinItemRestoreCommand_initValidators).call(this);
|
|
27
23
|
}
|
|
28
24
|
async commandAction(logger, args) {
|
|
29
|
-
await this.showDeprecationWarning(logger, aadCommands.USER_RECYCLEBINITEM_RESTORE, commands.USER_RECYCLEBINITEM_RESTORE);
|
|
30
25
|
if (this.verbose) {
|
|
31
26
|
await logger.logToStderr(`Restoring user with id ${args.options.id} from the recycle bin.`);
|
|
32
27
|
}
|
|
@@ -6,7 +6,6 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
6
6
|
var _EntraUserRegistrationDetailsListCommand_instances, _EntraUserRegistrationDetailsListCommand_initTelemetry, _EntraUserRegistrationDetailsListCommand_initOptions, _EntraUserRegistrationDetailsListCommand_initValidators;
|
|
7
7
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
8
8
|
import commands from '../../commands.js';
|
|
9
|
-
import aadCommands from '../../aadCommands.js';
|
|
10
9
|
import { odata } from '../../../../utils/odata.js';
|
|
11
10
|
import { entraUser } from '../../../../utils/entraUser.js';
|
|
12
11
|
import { validation } from '../../../../utils/validation.js';
|
|
@@ -20,9 +19,6 @@ class EntraUserRegistrationDetailsListCommand extends GraphCommand {
|
|
|
20
19
|
get description() {
|
|
21
20
|
return 'Retrieves a list of the authentication methods registered for users';
|
|
22
21
|
}
|
|
23
|
-
alias() {
|
|
24
|
-
return [aadCommands.USER_REGISTRATIONDETAILS_LIST];
|
|
25
|
-
}
|
|
26
22
|
defaultProperties() {
|
|
27
23
|
return ['userPrincipalName', 'methodsRegistered', 'lastUpdatedDateTime'];
|
|
28
24
|
}
|
|
@@ -9,7 +9,6 @@ import request from '../../../../request.js';
|
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import { cli } from '../../../../cli/cli.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
|
-
import aadCommands from '../../aadCommands.js';
|
|
13
12
|
class EntraUserRemoveCommand extends GraphCommand {
|
|
14
13
|
get name() {
|
|
15
14
|
return commands.USER_REMOVE;
|
|
@@ -17,9 +16,6 @@ class EntraUserRemoveCommand extends GraphCommand {
|
|
|
17
16
|
get description() {
|
|
18
17
|
return 'Removes a specific user';
|
|
19
18
|
}
|
|
20
|
-
alias() {
|
|
21
|
-
return [aadCommands.USER_REMOVE];
|
|
22
|
-
}
|
|
23
19
|
constructor() {
|
|
24
20
|
super();
|
|
25
21
|
_EntraUserRemoveCommand_instances.add(this);
|
|
@@ -29,7 +25,6 @@ class EntraUserRemoveCommand extends GraphCommand {
|
|
|
29
25
|
__classPrivateFieldGet(this, _EntraUserRemoveCommand_instances, "m", _EntraUserRemoveCommand_initOptionSets).call(this);
|
|
30
26
|
}
|
|
31
27
|
async commandAction(logger, args) {
|
|
32
|
-
await this.showDeprecationWarning(logger, aadCommands.USER_REMOVE, commands.USER_REMOVE);
|
|
33
28
|
if (this.verbose) {
|
|
34
29
|
await logger.logToStderr(`Removing user '${args.options.id || args.options.userName}'...`);
|
|
35
30
|
}
|
|
@@ -10,7 +10,6 @@ import { accessToken } from '../../../../utils/accessToken.js';
|
|
|
10
10
|
import { formatting } from '../../../../utils/formatting.js';
|
|
11
11
|
import { validation } from '../../../../utils/validation.js';
|
|
12
12
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
13
|
-
import aadCommands from '../../aadCommands.js';
|
|
14
13
|
import commands from '../../commands.js';
|
|
15
14
|
class EntraUserSetCommand extends GraphCommand {
|
|
16
15
|
get name() {
|
|
@@ -19,9 +18,6 @@ class EntraUserSetCommand extends GraphCommand {
|
|
|
19
18
|
get description() {
|
|
20
19
|
return 'Updates information about the specified user';
|
|
21
20
|
}
|
|
22
|
-
alias() {
|
|
23
|
-
return [aadCommands.USER_SET];
|
|
24
|
-
}
|
|
25
21
|
allowUnknownOptions() {
|
|
26
22
|
return true;
|
|
27
23
|
}
|
|
@@ -35,7 +31,6 @@ class EntraUserSetCommand extends GraphCommand {
|
|
|
35
31
|
__classPrivateFieldGet(this, _EntraUserSetCommand_instances, "m", _EntraUserSetCommand_initOptionSets).call(this);
|
|
36
32
|
}
|
|
37
33
|
async commandAction(logger, args) {
|
|
38
|
-
await this.showDeprecationWarning(logger, aadCommands.USER_SET, commands.USER_SET);
|
|
39
34
|
try {
|
|
40
35
|
if (args.options.currentPassword) {
|
|
41
36
|
if (args.options.id && args.options.id !== accessToken.getUserIdFromAccessToken(auth.connection.accessTokens[auth.defaultResource].accessToken)) {
|
|
@@ -9,7 +9,6 @@ import { odata } from '../../../../utils/odata.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
|
-
import aadCommands from '../../aadCommands.js';
|
|
13
12
|
class EntraUserSigninListCommand extends GraphCommand {
|
|
14
13
|
get name() {
|
|
15
14
|
return commands.USER_SIGNIN_LIST;
|
|
@@ -17,9 +16,6 @@ class EntraUserSigninListCommand extends GraphCommand {
|
|
|
17
16
|
get description() {
|
|
18
17
|
return 'Retrieves the Entra ID user sign-ins for the tenant';
|
|
19
18
|
}
|
|
20
|
-
alias() {
|
|
21
|
-
return [aadCommands.USER_SIGNIN_LIST];
|
|
22
|
-
}
|
|
23
19
|
constructor() {
|
|
24
20
|
super();
|
|
25
21
|
_EntraUserSigninListCommand_instances.add(this);
|
|
@@ -31,7 +27,6 @@ class EntraUserSigninListCommand extends GraphCommand {
|
|
|
31
27
|
return ['id', 'userPrincipalName', 'appId', 'appDisplayName', 'createdDateTime'];
|
|
32
28
|
}
|
|
33
29
|
async commandAction(logger, args) {
|
|
34
|
-
await this.showDeprecationWarning(logger, aadCommands.USER_SIGNIN_LIST, commands.USER_SIGNIN_LIST);
|
|
35
30
|
try {
|
|
36
31
|
let endpoint = `${this.resource}/v1.0/auditLogs/signIns`;
|
|
37
32
|
let filter = "";
|
|
@@ -41,9 +41,9 @@ export default {
|
|
|
41
41
|
GROUP_LIST: `${prefix} group list`,
|
|
42
42
|
GROUP_REMOVE: `${prefix} group remove`,
|
|
43
43
|
GROUP_SET: `${prefix} group set`,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
GROUP_MEMBER_ADD: `${prefix} group member add`,
|
|
45
|
+
GROUP_MEMBER_LIST: `${prefix} group member list`,
|
|
46
|
+
GROUP_MEMBER_SET: `${prefix} group member set`,
|
|
47
47
|
GROUPSETTING_ADD: `${prefix} groupsetting add`,
|
|
48
48
|
GROUPSETTING_GET: `${prefix} groupsetting get`,
|
|
49
49
|
GROUPSETTING_LIST: `${prefix} groupsetting list`,
|
|
@@ -45,8 +45,7 @@ class ExternalItemAddCommand extends GraphCommand {
|
|
|
45
45
|
properties: {}
|
|
46
46
|
};
|
|
47
47
|
// we need to rewrite the @odata properties to the correct format
|
|
48
|
-
//
|
|
49
|
-
// we also need to extract multiple values for collections into arrays
|
|
48
|
+
// to extract multiple values for collections into arrays
|
|
50
49
|
this.rewriteCollectionProperties(args.options);
|
|
51
50
|
this.addUnknownOptionsToPayload(requestBody.properties, args.options);
|
|
52
51
|
const requestOptions = {
|
|
@@ -81,11 +80,9 @@ class ExternalItemAddCommand extends GraphCommand {
|
|
|
81
80
|
}
|
|
82
81
|
rewriteCollectionProperties(options) {
|
|
83
82
|
Object.getOwnPropertyNames(options).forEach(name => {
|
|
84
|
-
if (!name.
|
|
83
|
+
if (!name.includes('@odata')) {
|
|
85
84
|
return;
|
|
86
85
|
}
|
|
87
|
-
options[`${name}.type`] = options[name].type;
|
|
88
|
-
delete options[name];
|
|
89
86
|
// convert the value of a collection to an array
|
|
90
87
|
const nameWithoutOData = name.substring(0, name.indexOf('@odata'));
|
|
91
88
|
if (options[nameWithoutOData]) {
|
|
@@ -10,7 +10,7 @@ import commands from '../commands.js';
|
|
|
10
10
|
import request from '../../../request.js';
|
|
11
11
|
import { spo } from '../../../utils/spo.js';
|
|
12
12
|
import { urlUtil } from '../../../utils/urlUtil.js';
|
|
13
|
-
import {
|
|
13
|
+
import { drive } from '../../../utils/drive.js';
|
|
14
14
|
import { validation } from '../../../utils/validation.js';
|
|
15
15
|
class FileMoveCommand extends GraphCommand {
|
|
16
16
|
get name() {
|
|
@@ -60,9 +60,9 @@ class FileMoveCommand extends GraphCommand {
|
|
|
60
60
|
}
|
|
61
61
|
async getDriveIdAndItemId(webUrl, folderUrl, sourceUrl, logger, verbose) {
|
|
62
62
|
const siteId = await spo.getSiteId(webUrl, logger, verbose);
|
|
63
|
-
const
|
|
64
|
-
const itemId = await
|
|
65
|
-
return { driveId:
|
|
63
|
+
const driveDetails = await drive.getDriveByUrl(siteId, new URL(folderUrl), logger, verbose);
|
|
64
|
+
const itemId = await drive.getDriveItemId(driveDetails, new URL(folderUrl), logger, verbose);
|
|
65
|
+
return { driveId: driveDetails.id, itemId };
|
|
66
66
|
}
|
|
67
67
|
getRequestOptions(sourceDriveId, sourceItemId, targetDriveId, targetItemId, newName, sourcePath, nameConflictBehavior) {
|
|
68
68
|
const apiUrl = sourceDriveId === targetDriveId
|
|
@@ -33,13 +33,8 @@ class PaAppListCommand extends PowerAppsCommand {
|
|
|
33
33
|
apps.forEach(a => {
|
|
34
34
|
a.displayName = a.properties.displayName;
|
|
35
35
|
});
|
|
36
|
-
await logger.log(apps);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
if (this.verbose) {
|
|
40
|
-
await logger.logToStderr('No apps found');
|
|
41
|
-
}
|
|
42
36
|
}
|
|
37
|
+
await logger.log(apps);
|
|
43
38
|
}
|
|
44
39
|
catch (err) {
|
|
45
40
|
this.handleRejectedODataJsonPromise(err);
|
|
@@ -35,13 +35,8 @@ class PaConnectorListCommand extends PowerAppsCommand {
|
|
|
35
35
|
connectors.forEach(c => {
|
|
36
36
|
c.displayName = c.properties.displayName;
|
|
37
37
|
});
|
|
38
|
-
await logger.log(connectors);
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
if (this.verbose) {
|
|
42
|
-
await logger.logToStderr('No custom connectors found');
|
|
43
|
-
}
|
|
44
38
|
}
|
|
39
|
+
await logger.log(connectors);
|
|
45
40
|
}
|
|
46
41
|
catch (err) {
|
|
47
42
|
this.handleRejectedODataJsonPromise(err);
|
|
@@ -28,8 +28,8 @@ class PaEnvironmentListCommand extends PowerAppsCommand {
|
|
|
28
28
|
res.value.forEach(e => {
|
|
29
29
|
e.displayName = e.properties.displayName;
|
|
30
30
|
});
|
|
31
|
-
await logger.log(res.value);
|
|
32
31
|
}
|
|
32
|
+
await logger.log(res.value);
|
|
33
33
|
}
|
|
34
34
|
catch (err) {
|
|
35
35
|
this.handleRejectedODataJsonPromise(err);
|
|
@@ -47,8 +47,8 @@ class PpEnvironmentListCommand extends PowerPlatformCommand {
|
|
|
47
47
|
res.value.forEach(e => {
|
|
48
48
|
e.displayName = e.properties.displayName;
|
|
49
49
|
});
|
|
50
|
-
await logger.log(res.value);
|
|
51
50
|
}
|
|
51
|
+
await logger.log(res.value);
|
|
52
52
|
}
|
|
53
53
|
catch (err) {
|
|
54
54
|
this.handleRejectedODataJsonPromise(err);
|
package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.20.0-rc.1.js → doctor-1.20.0.js}
RENAMED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FN002021_DEVDEP_rushstack_eslint_config } from '../project-upgrade/rules/FN002021_DEVDEP_rushstack_eslint_config.js';
|
|
1
2
|
import { FN001008_DEP_react } from './rules/FN001008_DEP_react.js';
|
|
2
3
|
import { FN001009_DEP_react_dom } from './rules/FN001009_DEP_react_dom.js';
|
|
3
4
|
import { FN001035_DEP_fluentui_react } from './rules/FN001035_DEP_fluentui_react.js';
|
|
@@ -19,7 +20,8 @@ export default [
|
|
|
19
20
|
new FN002015_DEVDEP_types_react('17'),
|
|
20
21
|
new FN002016_DEVDEP_types_react_dom('17'),
|
|
21
22
|
new FN002019_DEVDEP_microsoft_rush_stack_compiler(['4.7']),
|
|
23
|
+
new FN002021_DEVDEP_rushstack_eslint_config('4.0.1'),
|
|
22
24
|
new FN021001_PKG_spfx_deps_versions_match_project_version(false),
|
|
23
|
-
new FN021013_PKG_spfx_devdeps_match_version('1.20.
|
|
25
|
+
new FN021013_PKG_spfx_devdeps_match_version('1.20.2')
|
|
24
26
|
];
|
|
25
|
-
//# sourceMappingURL=doctor-1.20.0
|
|
27
|
+
//# sourceMappingURL=doctor-1.20.0.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DependencyRule } from './DependencyRule.js';
|
|
2
|
+
export class FN002021_DEVDEP_rushstack_eslint_config extends DependencyRule {
|
|
3
|
+
constructor(supportedRange) {
|
|
4
|
+
super('@rushstack/eslint-config', supportedRange, true);
|
|
5
|
+
}
|
|
6
|
+
get id() {
|
|
7
|
+
return 'FN002021';
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=FN002021_DEVDEP_rushstack_eslint_config.js.map
|
|
@@ -71,7 +71,7 @@ class SpfxProjectDoctorCommand extends BaseProjectCommand {
|
|
|
71
71
|
'1.18.1',
|
|
72
72
|
'1.18.2',
|
|
73
73
|
'1.19.0',
|
|
74
|
-
'1.20.0
|
|
74
|
+
'1.20.0'
|
|
75
75
|
];
|
|
76
76
|
__classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initTelemetry).call(this);
|
|
77
77
|
__classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initOptions).call(this);
|
package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.20.0-rc.1.js → upgrade-1.20.0.js}
RENAMED
|
@@ -20,38 +20,40 @@ import { FN001032_DEP_microsoft_sp_page_context } from './rules/FN001032_DEP_mic
|
|
|
20
20
|
import { FN001034_DEP_microsoft_sp_adaptive_card_extension_base } from './rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base.js';
|
|
21
21
|
import { FN002001_DEVDEP_microsoft_sp_build_web } from './rules/FN002001_DEVDEP_microsoft_sp_build_web.js';
|
|
22
22
|
import { FN002002_DEVDEP_microsoft_sp_module_interfaces } from './rules/FN002002_DEVDEP_microsoft_sp_module_interfaces.js';
|
|
23
|
+
import { FN002021_DEVDEP_rushstack_eslint_config } from './rules/FN002021_DEVDEP_rushstack_eslint_config.js';
|
|
23
24
|
import { FN002022_DEVDEP_microsoft_eslint_plugin_spfx } from './rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx.js';
|
|
24
25
|
import { FN002023_DEVDEP_microsoft_eslint_config_spfx } from './rules/FN002023_DEVDEP_microsoft_eslint_config_spfx.js';
|
|
25
26
|
import { FN002024_DEVDEP_eslint } from './rules/FN002024_DEVDEP_eslint.js';
|
|
26
27
|
import { FN010001_YORC_version } from './rules/FN010001_YORC_version.js';
|
|
27
28
|
import { FN010010_YORC_sdkVersions_teams_js } from './rules/FN010010_YORC_sdkVersions_teams_js.js';
|
|
28
29
|
export default [
|
|
29
|
-
new FN001001_DEP_microsoft_sp_core_library('1.20.0
|
|
30
|
-
new FN001002_DEP_microsoft_sp_lodash_subset('1.20.0
|
|
31
|
-
new FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.20.0
|
|
32
|
-
new FN001004_DEP_microsoft_sp_webpart_base('1.20.0
|
|
33
|
-
new FN001011_DEP_microsoft_sp_dialog('1.20.0
|
|
34
|
-
new FN001012_DEP_microsoft_sp_application_base('1.20.0
|
|
35
|
-
new FN001014_DEP_microsoft_sp_listview_extensibility('1.20.0
|
|
36
|
-
new FN001021_DEP_microsoft_sp_property_pane('1.20.0
|
|
37
|
-
new FN001023_DEP_microsoft_sp_component_base('1.20.0
|
|
38
|
-
new FN001024_DEP_microsoft_sp_diagnostics('1.20.0
|
|
39
|
-
new FN001025_DEP_microsoft_sp_dynamic_data('1.20.0
|
|
40
|
-
new FN001026_DEP_microsoft_sp_extension_base('1.20.0
|
|
41
|
-
new FN001027_DEP_microsoft_sp_http('1.20.0
|
|
42
|
-
new FN001028_DEP_microsoft_sp_list_subscription('1.20.0
|
|
43
|
-
new FN001029_DEP_microsoft_sp_loader('1.20.0
|
|
44
|
-
new FN001030_DEP_microsoft_sp_module_interfaces('1.20.0
|
|
45
|
-
new FN001031_DEP_microsoft_sp_odata_types('1.20.0
|
|
46
|
-
new FN001032_DEP_microsoft_sp_page_context('1.20.0
|
|
47
|
-
new FN001013_DEP_microsoft_decorators('1.20.0
|
|
48
|
-
new FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.20.0
|
|
49
|
-
new FN002001_DEVDEP_microsoft_sp_build_web('1.20.
|
|
50
|
-
new FN002002_DEVDEP_microsoft_sp_module_interfaces('1.20.
|
|
30
|
+
new FN001001_DEP_microsoft_sp_core_library('1.20.0'),
|
|
31
|
+
new FN001002_DEP_microsoft_sp_lodash_subset('1.20.0'),
|
|
32
|
+
new FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.20.0'),
|
|
33
|
+
new FN001004_DEP_microsoft_sp_webpart_base('1.20.0'),
|
|
34
|
+
new FN001011_DEP_microsoft_sp_dialog('1.20.0'),
|
|
35
|
+
new FN001012_DEP_microsoft_sp_application_base('1.20.0'),
|
|
36
|
+
new FN001014_DEP_microsoft_sp_listview_extensibility('1.20.0'),
|
|
37
|
+
new FN001021_DEP_microsoft_sp_property_pane('1.20.0'),
|
|
38
|
+
new FN001023_DEP_microsoft_sp_component_base('1.20.0'),
|
|
39
|
+
new FN001024_DEP_microsoft_sp_diagnostics('1.20.0'),
|
|
40
|
+
new FN001025_DEP_microsoft_sp_dynamic_data('1.20.0'),
|
|
41
|
+
new FN001026_DEP_microsoft_sp_extension_base('1.20.0'),
|
|
42
|
+
new FN001027_DEP_microsoft_sp_http('1.20.0'),
|
|
43
|
+
new FN001028_DEP_microsoft_sp_list_subscription('1.20.0'),
|
|
44
|
+
new FN001029_DEP_microsoft_sp_loader('1.20.0'),
|
|
45
|
+
new FN001030_DEP_microsoft_sp_module_interfaces('1.20.0'),
|
|
46
|
+
new FN001031_DEP_microsoft_sp_odata_types('1.20.0'),
|
|
47
|
+
new FN001032_DEP_microsoft_sp_page_context('1.20.0'),
|
|
48
|
+
new FN001013_DEP_microsoft_decorators('1.20.0'),
|
|
49
|
+
new FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.20.0'),
|
|
50
|
+
new FN002001_DEVDEP_microsoft_sp_build_web('1.20.2'),
|
|
51
|
+
new FN002002_DEVDEP_microsoft_sp_module_interfaces('1.20.2'),
|
|
52
|
+
new FN002021_DEVDEP_rushstack_eslint_config('4.0.1'),
|
|
51
53
|
new FN002024_DEVDEP_eslint('8.57.0'),
|
|
52
|
-
new FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.20.
|
|
53
|
-
new FN002023_DEVDEP_microsoft_eslint_config_spfx('1.20.
|
|
54
|
-
new FN010001_YORC_version('1.20.0
|
|
54
|
+
new FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.20.2'),
|
|
55
|
+
new FN002023_DEVDEP_microsoft_eslint_config_spfx('1.20.2'),
|
|
56
|
+
new FN010001_YORC_version('1.20.0'),
|
|
55
57
|
new FN010010_YORC_sdkVersions_teams_js('2.24.0')
|
|
56
58
|
];
|
|
57
|
-
//# sourceMappingURL=upgrade-1.20.0
|
|
59
|
+
//# sourceMappingURL=upgrade-1.20.0.js.map
|
|
@@ -7,8 +7,6 @@ var _SpfxProjectUpgradeCommand_instances, _a, _SpfxProjectUpgradeCommand_initTel
|
|
|
7
7
|
import fs from 'fs';
|
|
8
8
|
import os from 'os';
|
|
9
9
|
import path from 'path';
|
|
10
|
-
// uncomment to support upgrading to preview releases
|
|
11
|
-
import { prerelease } from 'semver';
|
|
12
10
|
import { CommandError } from '../../../../Command.js';
|
|
13
11
|
import { fsUtil } from '../../../../utils/fsUtil.js';
|
|
14
12
|
import { packageManager } from '../../../../utils/packageManager.js';
|
|
@@ -75,7 +73,7 @@ class SpfxProjectUpgradeCommand extends BaseProjectCommand {
|
|
|
75
73
|
'1.18.1',
|
|
76
74
|
'1.18.2',
|
|
77
75
|
'1.19.0',
|
|
78
|
-
'1.20.0
|
|
76
|
+
'1.20.0'
|
|
79
77
|
];
|
|
80
78
|
__classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initTelemetry).call(this);
|
|
81
79
|
__classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initOptions).call(this);
|
|
@@ -88,15 +86,15 @@ class SpfxProjectUpgradeCommand extends BaseProjectCommand {
|
|
|
88
86
|
}
|
|
89
87
|
this.toVersion = args.options.toVersion ? args.options.toVersion : this.supportedVersions[this.supportedVersions.length - 1];
|
|
90
88
|
// uncomment to support upgrading to preview releases
|
|
91
|
-
if (!args.options.toVersion &&
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
89
|
+
// if (!args.options.toVersion &&
|
|
90
|
+
// !args.options.preview &&
|
|
91
|
+
// prerelease(this.toVersion)) {
|
|
92
|
+
// // no version and no preview specified while the current version to
|
|
93
|
+
// // upgrade to is a prerelease so let's grab the first non-preview version
|
|
94
|
+
// // since we're supporting only one preview version, it's sufficient for
|
|
95
|
+
// // us to take second to last version
|
|
96
|
+
// this.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
|
|
97
|
+
// }
|
|
100
98
|
this.packageManager = args.options.packageManager || 'npm';
|
|
101
99
|
this.shell = args.options.shell || 'bash';
|
|
102
100
|
if (this.supportedVersions.indexOf(this.toVersion) < 0) {
|
|
@@ -485,9 +483,9 @@ _a = SpfxProjectUpgradeCommand, _SpfxProjectUpgradeCommand_instances = new WeakS
|
|
|
485
483
|
preview: args.options.preview
|
|
486
484
|
});
|
|
487
485
|
// uncomment to support upgrading to preview releases
|
|
488
|
-
if (prerelease(this.telemetryProperties.toVersion) && !args.options.preview) {
|
|
489
|
-
|
|
490
|
-
}
|
|
486
|
+
// if (prerelease(this.telemetryProperties.toVersion) && !args.options.preview) {
|
|
487
|
+
// this.telemetryProperties.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
|
|
488
|
+
// }
|
|
491
489
|
});
|
|
492
490
|
}, _SpfxProjectUpgradeCommand_initOptions = function _SpfxProjectUpgradeCommand_initOptions() {
|
|
493
491
|
this.options.unshift({
|