@pnp/cli-microsoft365 7.4.0-beta.ae3d33b → 7.4.0-beta.d2ff47d
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 +2 -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/spo/commands/group/group-member-remove.js +1 -1
- 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/teams/commands/app/app-install.js +1 -1
- package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +1 -1
- 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/graph/schemaextension/schemaextension-add.mdx +1 -1
- package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +1 -1
- 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/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/teams/team/team-add.mdx +1 -1
- package/npm-shrinkwrap.json +184 -430
- 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
package/dist/Auth.js
CHANGED
package/dist/appInsights.js
CHANGED
|
@@ -24,6 +24,8 @@ appInsightsClient.commonProperties = {
|
|
|
24
24
|
env: env,
|
|
25
25
|
ci: Boolean(process.env.CI).toString()
|
|
26
26
|
};
|
|
27
|
+
appInsightsClient.config.proxyHttpUrl = process.env.HTTP_PROXY ?? '';
|
|
28
|
+
appInsightsClient.config.proxyHttpsUrl = process.env.HTTPS_PROXY ?? '';
|
|
27
29
|
appInsightsClient.context.tags['ai.cloud.roleInstance'] = crypto.createHash('sha256').update(appInsightsClient.context.tags['ai.cloud.roleInstance']).digest('hex');
|
|
28
30
|
delete appInsightsClient.context.tags['ai.cloud.role'];
|
|
29
31
|
delete appInsightsClient.context.tags['ai.cloud.roleName'];
|
package/dist/cli/cli.js
CHANGED
|
@@ -134,6 +134,7 @@ async function execute(rawArgs) {
|
|
|
134
134
|
if (validationResult !== true) {
|
|
135
135
|
return cli.closeWithError(validationResult, cli.optionsFromArgs, true);
|
|
136
136
|
}
|
|
137
|
+
cli.optionsFromArgs = removeShortOptions(cli.optionsFromArgs);
|
|
137
138
|
const end = process.hrtime.bigint();
|
|
138
139
|
timings.core.push(Number(end - start));
|
|
139
140
|
try {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cli } from '../../../cli/cli.js';
|
|
2
|
-
import aadAppGetCommand from '../../
|
|
2
|
+
import aadAppGetCommand from '../../entra/commands/app/app-get.js';
|
|
3
3
|
import AppCommand from '../../base/AppCommand.js';
|
|
4
4
|
import commands from '../commands.js';
|
|
5
5
|
class AppGetCommand extends AppCommand {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cli } from '../../../../cli/cli.js';
|
|
2
2
|
import request from '../../../../request.js';
|
|
3
|
-
import appGetCommand from '../../../
|
|
3
|
+
import appGetCommand from '../../../entra/commands/app/app-get.js';
|
|
4
4
|
import AppCommand from '../../../base/AppCommand.js';
|
|
5
5
|
import commands from '../../commands.js';
|
|
6
6
|
var GetServicePrincipal;
|
|
@@ -7,6 +7,7 @@ export default {
|
|
|
7
7
|
ADMINISTRATIVEUNIT_MEMBER_ADD: `${prefix} administrativeunit member add`,
|
|
8
8
|
ADMINISTRATIVEUNIT_MEMBER_GET: `${prefix} administrativeunit member get`,
|
|
9
9
|
ADMINISTRATIVEUNIT_MEMBER_LIST: `${prefix} administrativeunit member list`,
|
|
10
|
+
ADMINISTRATIVEUNIT_ROLEASSIGNMENT_ADD: `${prefix} administrativeunit roleassignment add`,
|
|
10
11
|
APP_ADD: `${prefix} app add`,
|
|
11
12
|
APP_GET: `${prefix} app get`,
|
|
12
13
|
APP_LIST: `${prefix} app list`,
|
|
@@ -82,4 +83,4 @@ export default {
|
|
|
82
83
|
USER_SET: `${prefix} user set`,
|
|
83
84
|
USER_SIGNIN_LIST: `${prefix} user signin list`
|
|
84
85
|
};
|
|
85
|
-
//# sourceMappingURL=
|
|
86
|
+
//# sourceMappingURL=aadCommands.js.map
|
|
@@ -3,22 +3,26 @@ 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 _EntraAdministrativeUnitAddCommand_instances, _EntraAdministrativeUnitAddCommand_initTelemetry, _EntraAdministrativeUnitAddCommand_initOptions;
|
|
7
7
|
import request from "../../../../request.js";
|
|
8
8
|
import GraphCommand from "../../../base/GraphCommand.js";
|
|
9
9
|
import commands from "../../commands.js";
|
|
10
|
-
|
|
10
|
+
import aadCommands from "../../aadCommands.js";
|
|
11
|
+
class EntraAdministrativeUnitAddCommand extends GraphCommand {
|
|
11
12
|
get name() {
|
|
12
13
|
return commands.ADMINISTRATIVEUNIT_ADD;
|
|
13
14
|
}
|
|
14
15
|
get description() {
|
|
15
16
|
return 'Creates an administrative unit';
|
|
16
17
|
}
|
|
18
|
+
alias() {
|
|
19
|
+
return [aadCommands.ADMINISTRATIVEUNIT_ADD];
|
|
20
|
+
}
|
|
17
21
|
constructor() {
|
|
18
22
|
super();
|
|
19
|
-
|
|
20
|
-
__classPrivateFieldGet(this,
|
|
21
|
-
__classPrivateFieldGet(this,
|
|
23
|
+
_EntraAdministrativeUnitAddCommand_instances.add(this);
|
|
24
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitAddCommand_instances, "m", _EntraAdministrativeUnitAddCommand_initTelemetry).call(this);
|
|
25
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitAddCommand_instances, "m", _EntraAdministrativeUnitAddCommand_initOptions).call(this);
|
|
22
26
|
}
|
|
23
27
|
async commandAction(logger, args) {
|
|
24
28
|
const requestOptions = {
|
|
@@ -42,13 +46,13 @@ class AadAdministrativeUnitAddCommand extends GraphCommand {
|
|
|
42
46
|
}
|
|
43
47
|
}
|
|
44
48
|
}
|
|
45
|
-
|
|
49
|
+
_EntraAdministrativeUnitAddCommand_instances = new WeakSet(), _EntraAdministrativeUnitAddCommand_initTelemetry = function _EntraAdministrativeUnitAddCommand_initTelemetry() {
|
|
46
50
|
this.telemetry.push((args) => {
|
|
47
51
|
Object.assign(this.telemetryProperties, {
|
|
48
52
|
hiddenMembership: !!args.options.hiddenMembership
|
|
49
53
|
});
|
|
50
54
|
});
|
|
51
|
-
},
|
|
55
|
+
}, _EntraAdministrativeUnitAddCommand_initOptions = function _EntraAdministrativeUnitAddCommand_initOptions() {
|
|
52
56
|
this.options.unshift({
|
|
53
57
|
option: '-n, --displayName <displayName>'
|
|
54
58
|
}, {
|
|
@@ -57,5 +61,5 @@ _AadAdministrativeUnitAddCommand_instances = new WeakSet(), _AadAdministrativeUn
|
|
|
57
61
|
option: '--hiddenMembership'
|
|
58
62
|
});
|
|
59
63
|
};
|
|
60
|
-
export default new
|
|
64
|
+
export default new EntraAdministrativeUnitAddCommand();
|
|
61
65
|
//# sourceMappingURL=administrativeunit-add.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 _EntraAdministrativeUnitGetCommand_instances, _EntraAdministrativeUnitGetCommand_initTelemetry, _EntraAdministrativeUnitGetCommand_initOptions, _EntraAdministrativeUnitGetCommand_initValidators, _EntraAdministrativeUnitGetCommand_initOptionSets, _EntraAdministrativeUnitGetCommand_initTypes;
|
|
7
7
|
import { validation } from "../../../../utils/validation.js";
|
|
8
8
|
import request from "../../../../request.js";
|
|
9
9
|
import GraphCommand from "../../../base/GraphCommand.js";
|
|
10
10
|
import commands from "../../commands.js";
|
|
11
11
|
import { aadAdministrativeUnit } from "../../../../utils/aadAdministrativeUnit.js";
|
|
12
|
-
|
|
12
|
+
import aadCommands from "../../aadCommands.js";
|
|
13
|
+
class EntraAdministrativeUnitGetCommand extends GraphCommand {
|
|
13
14
|
get name() {
|
|
14
15
|
return commands.ADMINISTRATIVEUNIT_GET;
|
|
15
16
|
}
|
|
16
17
|
get description() {
|
|
17
18
|
return 'Gets information about a specific administrative unit';
|
|
18
19
|
}
|
|
20
|
+
alias() {
|
|
21
|
+
return [aadCommands.ADMINISTRATIVEUNIT_GET];
|
|
22
|
+
}
|
|
19
23
|
constructor() {
|
|
20
24
|
super();
|
|
21
|
-
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
25
|
+
_EntraAdministrativeUnitGetCommand_instances.add(this);
|
|
26
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitGetCommand_instances, "m", _EntraAdministrativeUnitGetCommand_initTelemetry).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitGetCommand_instances, "m", _EntraAdministrativeUnitGetCommand_initOptions).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitGetCommand_instances, "m", _EntraAdministrativeUnitGetCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitGetCommand_instances, "m", _EntraAdministrativeUnitGetCommand_initOptionSets).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitGetCommand_instances, "m", _EntraAdministrativeUnitGetCommand_initTypes).call(this);
|
|
27
31
|
}
|
|
28
32
|
async commandAction(logger, args) {
|
|
29
33
|
let administrativeUnit;
|
|
@@ -51,30 +55,30 @@ class AadAdministrativeUnitGetCommand extends GraphCommand {
|
|
|
51
55
|
return await request.get(requestOptions);
|
|
52
56
|
}
|
|
53
57
|
}
|
|
54
|
-
|
|
58
|
+
_EntraAdministrativeUnitGetCommand_instances = new WeakSet(), _EntraAdministrativeUnitGetCommand_initTelemetry = function _EntraAdministrativeUnitGetCommand_initTelemetry() {
|
|
55
59
|
this.telemetry.push((args) => {
|
|
56
60
|
Object.assign(this.telemetryProperties, {
|
|
57
61
|
id: typeof args.options.id !== 'undefined',
|
|
58
62
|
displayName: typeof args.options.displayName !== 'undefined'
|
|
59
63
|
});
|
|
60
64
|
});
|
|
61
|
-
},
|
|
65
|
+
}, _EntraAdministrativeUnitGetCommand_initOptions = function _EntraAdministrativeUnitGetCommand_initOptions() {
|
|
62
66
|
this.options.unshift({
|
|
63
67
|
option: '-i, --id [id]'
|
|
64
68
|
}, {
|
|
65
69
|
option: '-n, --displayName [displayName]'
|
|
66
70
|
});
|
|
67
|
-
},
|
|
71
|
+
}, _EntraAdministrativeUnitGetCommand_initValidators = function _EntraAdministrativeUnitGetCommand_initValidators() {
|
|
68
72
|
this.validators.push(async (args) => {
|
|
69
73
|
if (args.options.id && !validation.isValidGuid(args.options.id)) {
|
|
70
74
|
return `${args.options.id} is not a valid GUID`;
|
|
71
75
|
}
|
|
72
76
|
return true;
|
|
73
77
|
});
|
|
74
|
-
},
|
|
78
|
+
}, _EntraAdministrativeUnitGetCommand_initOptionSets = function _EntraAdministrativeUnitGetCommand_initOptionSets() {
|
|
75
79
|
this.optionSets.push({ options: ['id', 'displayName'] });
|
|
76
|
-
},
|
|
80
|
+
}, _EntraAdministrativeUnitGetCommand_initTypes = function _EntraAdministrativeUnitGetCommand_initTypes() {
|
|
77
81
|
this.types.string.push('displayName');
|
|
78
82
|
};
|
|
79
|
-
export default new
|
|
83
|
+
export default new EntraAdministrativeUnitGetCommand();
|
|
80
84
|
//# sourceMappingURL=administrativeunit-get.js.map
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { odata } from '../../../../utils/odata.js';
|
|
2
2
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
3
3
|
import commands from '../../commands.js';
|
|
4
|
-
|
|
4
|
+
import aadCommands from '../../aadCommands.js';
|
|
5
|
+
class EntraAdministrativeUnitListCommand extends GraphCommand {
|
|
5
6
|
get name() {
|
|
6
7
|
return commands.ADMINISTRATIVEUNIT_LIST;
|
|
7
8
|
}
|
|
8
9
|
get description() {
|
|
9
10
|
return 'Retrieves a list of administrative units';
|
|
10
11
|
}
|
|
12
|
+
alias() {
|
|
13
|
+
return [aadCommands.ADMINISTRATIVEUNIT_LIST];
|
|
14
|
+
}
|
|
11
15
|
defaultProperties() {
|
|
12
16
|
return ['id', 'displayName', 'visibility'];
|
|
13
17
|
}
|
|
@@ -21,5 +25,5 @@ class AadAdministrativeUnitListCommand extends GraphCommand {
|
|
|
21
25
|
}
|
|
22
26
|
}
|
|
23
27
|
}
|
|
24
|
-
export default new
|
|
28
|
+
export default new EntraAdministrativeUnitListCommand();
|
|
25
29
|
//# sourceMappingURL=administrativeunit-list.js.map
|
package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-add.js
RENAMED
|
@@ -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 _EntraAdministrativeUnitMemberAddCommand_instances, _EntraAdministrativeUnitMemberAddCommand_initTelemetry, _EntraAdministrativeUnitMemberAddCommand_initOptions, _EntraAdministrativeUnitMemberAddCommand_initValidators, _EntraAdministrativeUnitMemberAddCommand_initOptionSets;
|
|
7
7
|
import { aadAdministrativeUnit } from "../../../../utils/aadAdministrativeUnit.js";
|
|
8
8
|
import { aadGroup } from "../../../../utils/aadGroup.js";
|
|
9
9
|
import { aadUser } from "../../../../utils/aadUser.js";
|
|
@@ -12,20 +12,24 @@ import GraphCommand from "../../../base/GraphCommand.js";
|
|
|
12
12
|
import commands from "../../commands.js";
|
|
13
13
|
import request from "../../../../request.js";
|
|
14
14
|
import { aadDevice } from "../../../../utils/aadDevice.js";
|
|
15
|
-
|
|
15
|
+
import aadCommands from "../../aadCommands.js";
|
|
16
|
+
class EntraAdministrativeUnitMemberAddCommand extends GraphCommand {
|
|
16
17
|
get name() {
|
|
17
18
|
return commands.ADMINISTRATIVEUNIT_MEMBER_ADD;
|
|
18
19
|
}
|
|
19
20
|
get description() {
|
|
20
21
|
return 'Adds a member (user, group, device) to an administrative unit';
|
|
21
22
|
}
|
|
23
|
+
alias() {
|
|
24
|
+
return [aadCommands.ADMINISTRATIVEUNIT_MEMBER_ADD];
|
|
25
|
+
}
|
|
22
26
|
constructor() {
|
|
23
27
|
super();
|
|
24
|
-
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
27
|
-
__classPrivateFieldGet(this,
|
|
28
|
-
__classPrivateFieldGet(this,
|
|
28
|
+
_EntraAdministrativeUnitMemberAddCommand_instances.add(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitMemberAddCommand_instances, "m", _EntraAdministrativeUnitMemberAddCommand_initTelemetry).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitMemberAddCommand_instances, "m", _EntraAdministrativeUnitMemberAddCommand_initOptions).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitMemberAddCommand_instances, "m", _EntraAdministrativeUnitMemberAddCommand_initValidators).call(this);
|
|
32
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitMemberAddCommand_instances, "m", _EntraAdministrativeUnitMemberAddCommand_initOptionSets).call(this);
|
|
29
33
|
}
|
|
30
34
|
async commandAction(logger, args) {
|
|
31
35
|
let administrativeUnitId = args.options.administrativeUnitId;
|
|
@@ -84,7 +88,7 @@ class AadAdministrativeUnitMemberAddCommand extends GraphCommand {
|
|
|
84
88
|
}
|
|
85
89
|
}
|
|
86
90
|
}
|
|
87
|
-
|
|
91
|
+
_EntraAdministrativeUnitMemberAddCommand_instances = new WeakSet(), _EntraAdministrativeUnitMemberAddCommand_initTelemetry = function _EntraAdministrativeUnitMemberAddCommand_initTelemetry() {
|
|
88
92
|
this.telemetry.push((args) => {
|
|
89
93
|
Object.assign(this.telemetryProperties, {
|
|
90
94
|
userId: typeof args.options.userId !== 'undefined',
|
|
@@ -95,7 +99,7 @@ _AadAdministrativeUnitMemberAddCommand_instances = new WeakSet(), _AadAdministra
|
|
|
95
99
|
deviceName: typeof args.options.deviceName !== 'undefined'
|
|
96
100
|
});
|
|
97
101
|
});
|
|
98
|
-
},
|
|
102
|
+
}, _EntraAdministrativeUnitMemberAddCommand_initOptions = function _EntraAdministrativeUnitMemberAddCommand_initOptions() {
|
|
99
103
|
this.options.unshift({
|
|
100
104
|
option: '-i, --administrativeUnitId [administrativeUnitId]'
|
|
101
105
|
}, {
|
|
@@ -113,7 +117,7 @@ _AadAdministrativeUnitMemberAddCommand_instances = new WeakSet(), _AadAdministra
|
|
|
113
117
|
}, {
|
|
114
118
|
option: "--deviceName [deviceName]"
|
|
115
119
|
});
|
|
116
|
-
},
|
|
120
|
+
}, _EntraAdministrativeUnitMemberAddCommand_initValidators = function _EntraAdministrativeUnitMemberAddCommand_initValidators() {
|
|
117
121
|
this.validators.push(async (args) => {
|
|
118
122
|
if (args.options.administrativeUnitId && !validation.isValidGuid(args.options.administrativeUnitId)) {
|
|
119
123
|
return `${args.options.administrativeUnitId} is not a valid GUID`;
|
|
@@ -129,9 +133,9 @@ _AadAdministrativeUnitMemberAddCommand_instances = new WeakSet(), _AadAdministra
|
|
|
129
133
|
}
|
|
130
134
|
return true;
|
|
131
135
|
});
|
|
132
|
-
},
|
|
136
|
+
}, _EntraAdministrativeUnitMemberAddCommand_initOptionSets = function _EntraAdministrativeUnitMemberAddCommand_initOptionSets() {
|
|
133
137
|
this.optionSets.push({ options: ['administrativeUnitId', 'administrativeUnitName'] });
|
|
134
138
|
this.optionSets.push({ options: ['userId', 'userName', 'groupId', 'groupName', 'deviceId', 'deviceName'] });
|
|
135
139
|
};
|
|
136
|
-
export default new
|
|
140
|
+
export default new EntraAdministrativeUnitMemberAddCommand();
|
|
137
141
|
//# sourceMappingURL=administrativeunit-member-add.js.map
|
package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-get.js
RENAMED
|
@@ -3,26 +3,30 @@ 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 _EntraAdministrativeUnitMemberGetCommand_instances, _EntraAdministrativeUnitMemberGetCommand_initTelemetry, _EntraAdministrativeUnitMemberGetCommand_initOptions, _EntraAdministrativeUnitMemberGetCommand_initValidators, _EntraAdministrativeUnitMemberGetCommand_initOptionSets;
|
|
7
7
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
8
8
|
import commands from '../../commands.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import { aadAdministrativeUnit } from '../../../../utils/aadAdministrativeUnit.js';
|
|
11
11
|
import request from '../../../../request.js';
|
|
12
|
-
|
|
12
|
+
import aadCommands from '../../aadCommands.js';
|
|
13
|
+
class EntraAdministrativeUnitMemberGetCommand extends GraphCommand {
|
|
13
14
|
get name() {
|
|
14
15
|
return commands.ADMINISTRATIVEUNIT_MEMBER_GET;
|
|
15
16
|
}
|
|
16
17
|
get description() {
|
|
17
18
|
return 'Retrieve a specific member (user, group, or device) of an administrative unit';
|
|
18
19
|
}
|
|
20
|
+
alias() {
|
|
21
|
+
return [aadCommands.ADMINISTRATIVEUNIT_MEMBER_GET];
|
|
22
|
+
}
|
|
19
23
|
constructor() {
|
|
20
24
|
super();
|
|
21
|
-
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
25
|
+
_EntraAdministrativeUnitMemberGetCommand_instances.add(this);
|
|
26
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitMemberGetCommand_instances, "m", _EntraAdministrativeUnitMemberGetCommand_initTelemetry).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitMemberGetCommand_instances, "m", _EntraAdministrativeUnitMemberGetCommand_initOptions).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitMemberGetCommand_instances, "m", _EntraAdministrativeUnitMemberGetCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitMemberGetCommand_instances, "m", _EntraAdministrativeUnitMemberGetCommand_initOptionSets).call(this);
|
|
26
30
|
}
|
|
27
31
|
async commandAction(logger, args) {
|
|
28
32
|
let administrativeUnitId = args.options.administrativeUnitId;
|
|
@@ -77,7 +81,7 @@ class AadAdministrativeUnitMemberGetCommand extends GraphCommand {
|
|
|
77
81
|
return `${this.resource}/v1.0/directory/administrativeUnits/${administrativeUnitId}/members/${memberId}${queryString}`;
|
|
78
82
|
}
|
|
79
83
|
}
|
|
80
|
-
|
|
84
|
+
_EntraAdministrativeUnitMemberGetCommand_instances = new WeakSet(), _EntraAdministrativeUnitMemberGetCommand_initTelemetry = function _EntraAdministrativeUnitMemberGetCommand_initTelemetry() {
|
|
81
85
|
this.telemetry.push((args) => {
|
|
82
86
|
Object.assign(this.telemetryProperties, {
|
|
83
87
|
administrativeUnitId: typeof args.options.administrativeUnitId !== 'undefined',
|
|
@@ -85,7 +89,7 @@ _AadAdministrativeUnitMemberGetCommand_instances = new WeakSet(), _AadAdministra
|
|
|
85
89
|
properties: typeof args.options.properties !== 'undefined'
|
|
86
90
|
});
|
|
87
91
|
});
|
|
88
|
-
},
|
|
92
|
+
}, _EntraAdministrativeUnitMemberGetCommand_initOptions = function _EntraAdministrativeUnitMemberGetCommand_initOptions() {
|
|
89
93
|
this.options.unshift({
|
|
90
94
|
option: '-i, --id <id>'
|
|
91
95
|
}, {
|
|
@@ -95,7 +99,7 @@ _AadAdministrativeUnitMemberGetCommand_instances = new WeakSet(), _AadAdministra
|
|
|
95
99
|
}, {
|
|
96
100
|
option: '-p, --properties [properties]'
|
|
97
101
|
});
|
|
98
|
-
},
|
|
102
|
+
}, _EntraAdministrativeUnitMemberGetCommand_initValidators = function _EntraAdministrativeUnitMemberGetCommand_initValidators() {
|
|
99
103
|
this.validators.push(async (args) => {
|
|
100
104
|
if (args.options.id && !validation.isValidGuid(args.options.id)) {
|
|
101
105
|
return `${args.options.id} is not a valid GUID`;
|
|
@@ -105,8 +109,8 @@ _AadAdministrativeUnitMemberGetCommand_instances = new WeakSet(), _AadAdministra
|
|
|
105
109
|
}
|
|
106
110
|
return true;
|
|
107
111
|
});
|
|
108
|
-
},
|
|
112
|
+
}, _EntraAdministrativeUnitMemberGetCommand_initOptionSets = function _EntraAdministrativeUnitMemberGetCommand_initOptionSets() {
|
|
109
113
|
this.optionSets.push({ options: ['administrativeUnitId', 'administrativeUnitName'] });
|
|
110
114
|
};
|
|
111
|
-
export default new
|
|
115
|
+
export default new EntraAdministrativeUnitMemberGetCommand();
|
|
112
116
|
//# sourceMappingURL=administrativeunit-member-get.js.map
|
package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-list.js
RENAMED
|
@@ -3,29 +3,33 @@ 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 _EntraAdministrativeUnitMemberListCommand_instances, _EntraAdministrativeUnitMemberListCommand_initTelemetry, _EntraAdministrativeUnitMemberListCommand_initOptions, _EntraAdministrativeUnitMemberListCommand_initValidators, _EntraAdministrativeUnitMemberListCommand_initOptionSets;
|
|
7
7
|
import { odata } from '../../../../utils/odata.js';
|
|
8
8
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
9
9
|
import commands from '../../commands.js';
|
|
10
10
|
import { aadAdministrativeUnit } from '../../../../utils/aadAdministrativeUnit.js';
|
|
11
11
|
import { validation } from '../../../../utils/validation.js';
|
|
12
|
-
|
|
12
|
+
import aadCommands from '../../aadCommands.js';
|
|
13
|
+
class EntraAdministrativeUnitMemberListCommand extends GraphCommand {
|
|
13
14
|
get name() {
|
|
14
15
|
return commands.ADMINISTRATIVEUNIT_MEMBER_LIST;
|
|
15
16
|
}
|
|
16
17
|
get description() {
|
|
17
18
|
return 'Retrieves members (users, groups, or devices) of an administrative unit.';
|
|
18
19
|
}
|
|
20
|
+
alias() {
|
|
21
|
+
return [aadCommands.ADMINISTRATIVEUNIT_MEMBER_LIST];
|
|
22
|
+
}
|
|
19
23
|
defaultProperties() {
|
|
20
24
|
return ['id', 'displayName'];
|
|
21
25
|
}
|
|
22
26
|
constructor() {
|
|
23
27
|
super();
|
|
24
|
-
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
27
|
-
__classPrivateFieldGet(this,
|
|
28
|
-
__classPrivateFieldGet(this,
|
|
28
|
+
_EntraAdministrativeUnitMemberListCommand_instances.add(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitMemberListCommand_instances, "m", _EntraAdministrativeUnitMemberListCommand_initTelemetry).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitMemberListCommand_instances, "m", _EntraAdministrativeUnitMemberListCommand_initOptions).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitMemberListCommand_instances, "m", _EntraAdministrativeUnitMemberListCommand_initValidators).call(this);
|
|
32
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitMemberListCommand_instances, "m", _EntraAdministrativeUnitMemberListCommand_initOptionSets).call(this);
|
|
29
33
|
}
|
|
30
34
|
async commandAction(logger, args) {
|
|
31
35
|
let administrativeUnitId = args.options.administrativeUnitId;
|
|
@@ -95,7 +99,7 @@ class AadAdministrativeUnitMemberListCommand extends GraphCommand {
|
|
|
95
99
|
: `${this.resource}/v1.0/directory/administrativeUnits/${administrativeUnitId}/members${queryString}`;
|
|
96
100
|
}
|
|
97
101
|
}
|
|
98
|
-
|
|
102
|
+
_EntraAdministrativeUnitMemberListCommand_instances = new WeakSet(), _EntraAdministrativeUnitMemberListCommand_initTelemetry = function _EntraAdministrativeUnitMemberListCommand_initTelemetry() {
|
|
99
103
|
this.telemetry.push((args) => {
|
|
100
104
|
Object.assign(this.telemetryProperties, {
|
|
101
105
|
type: typeof args.options.type !== 'undefined',
|
|
@@ -103,7 +107,7 @@ _AadAdministrativeUnitMemberListCommand_instances = new WeakSet(), _AadAdministr
|
|
|
103
107
|
filter: typeof args.options.filter !== 'undefined'
|
|
104
108
|
});
|
|
105
109
|
});
|
|
106
|
-
},
|
|
110
|
+
}, _EntraAdministrativeUnitMemberListCommand_initOptions = function _EntraAdministrativeUnitMemberListCommand_initOptions() {
|
|
107
111
|
this.options.unshift({
|
|
108
112
|
option: '-i, --administrativeUnitId [administrativeUnitId]'
|
|
109
113
|
}, {
|
|
@@ -116,7 +120,7 @@ _AadAdministrativeUnitMemberListCommand_instances = new WeakSet(), _AadAdministr
|
|
|
116
120
|
}, {
|
|
117
121
|
option: '-f, --filter [filter]'
|
|
118
122
|
});
|
|
119
|
-
},
|
|
123
|
+
}, _EntraAdministrativeUnitMemberListCommand_initValidators = function _EntraAdministrativeUnitMemberListCommand_initValidators() {
|
|
120
124
|
this.validators.push(async (args) => {
|
|
121
125
|
if (args.options.administrativeUnitId && !validation.isValidGuid(args.options.administrativeUnitId)) {
|
|
122
126
|
return `${args.options.administrativeUnitId} is not a valid GUID`;
|
|
@@ -131,8 +135,8 @@ _AadAdministrativeUnitMemberListCommand_instances = new WeakSet(), _AadAdministr
|
|
|
131
135
|
}
|
|
132
136
|
return true;
|
|
133
137
|
});
|
|
134
|
-
},
|
|
138
|
+
}, _EntraAdministrativeUnitMemberListCommand_initOptionSets = function _EntraAdministrativeUnitMemberListCommand_initOptionSets() {
|
|
135
139
|
this.optionSets.push({ options: ['administrativeUnitId', 'administrativeUnitName'] });
|
|
136
140
|
};
|
|
137
|
-
export default new
|
|
141
|
+
export default new EntraAdministrativeUnitMemberListCommand();
|
|
138
142
|
//# sourceMappingURL=administrativeunit-member-list.js.map
|
|
@@ -3,28 +3,32 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var
|
|
6
|
+
var _EntraAdministrativeUnitRemoveCommand_instances, _EntraAdministrativeUnitRemoveCommand_initTelemetry, _EntraAdministrativeUnitRemoveCommand_initOptions, _EntraAdministrativeUnitRemoveCommand_initOptionSets, _EntraAdministrativeUnitRemoveCommand_initValidators, _EntraAdministrativeUnitRemoveCommand_initTypes;
|
|
7
7
|
import { aadAdministrativeUnit } from '../../../../utils/aadAdministrativeUnit.js';
|
|
8
8
|
import { validation } from "../../../../utils/validation.js";
|
|
9
9
|
import request from "../../../../request.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 EntraAdministrativeUnitRemoveCommand extends GraphCommand {
|
|
14
15
|
get name() {
|
|
15
16
|
return commands.ADMINISTRATIVEUNIT_REMOVE;
|
|
16
17
|
}
|
|
17
18
|
get description() {
|
|
18
19
|
return 'Removes an administrative unit';
|
|
19
20
|
}
|
|
21
|
+
alias() {
|
|
22
|
+
return [aadCommands.ADMINISTRATIVEUNIT_REMOVE];
|
|
23
|
+
}
|
|
20
24
|
constructor() {
|
|
21
25
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
27
|
-
__classPrivateFieldGet(this,
|
|
26
|
+
_EntraAdministrativeUnitRemoveCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitRemoveCommand_instances, "m", _EntraAdministrativeUnitRemoveCommand_initOptions).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitRemoveCommand_instances, "m", _EntraAdministrativeUnitRemoveCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitRemoveCommand_instances, "m", _EntraAdministrativeUnitRemoveCommand_initOptionSets).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitRemoveCommand_instances, "m", _EntraAdministrativeUnitRemoveCommand_initTelemetry).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _EntraAdministrativeUnitRemoveCommand_instances, "m", _EntraAdministrativeUnitRemoveCommand_initTypes).call(this);
|
|
28
32
|
}
|
|
29
33
|
async commandAction(logger, args) {
|
|
30
34
|
const removeAdministrativeUnit = async () => {
|
|
@@ -57,7 +61,7 @@ class AadAdministrativeUnitRemoveCommand extends GraphCommand {
|
|
|
57
61
|
}
|
|
58
62
|
}
|
|
59
63
|
}
|
|
60
|
-
|
|
64
|
+
_EntraAdministrativeUnitRemoveCommand_instances = new WeakSet(), _EntraAdministrativeUnitRemoveCommand_initTelemetry = function _EntraAdministrativeUnitRemoveCommand_initTelemetry() {
|
|
61
65
|
this.telemetry.push((args) => {
|
|
62
66
|
Object.assign(this.telemetryProperties, {
|
|
63
67
|
id: args.options.id !== 'undefined',
|
|
@@ -65,7 +69,7 @@ _AadAdministrativeUnitRemoveCommand_instances = new WeakSet(), _AadAdministrativ
|
|
|
65
69
|
force: !!args.options.force
|
|
66
70
|
});
|
|
67
71
|
});
|
|
68
|
-
},
|
|
72
|
+
}, _EntraAdministrativeUnitRemoveCommand_initOptions = function _EntraAdministrativeUnitRemoveCommand_initOptions() {
|
|
69
73
|
this.options.unshift({
|
|
70
74
|
option: '-i, --id [id]'
|
|
71
75
|
}, {
|
|
@@ -73,19 +77,19 @@ _AadAdministrativeUnitRemoveCommand_instances = new WeakSet(), _AadAdministrativ
|
|
|
73
77
|
}, {
|
|
74
78
|
option: '-f, --force'
|
|
75
79
|
});
|
|
76
|
-
},
|
|
80
|
+
}, _EntraAdministrativeUnitRemoveCommand_initOptionSets = function _EntraAdministrativeUnitRemoveCommand_initOptionSets() {
|
|
77
81
|
this.optionSets.push({
|
|
78
82
|
options: ['id', 'displayName']
|
|
79
83
|
});
|
|
80
|
-
},
|
|
84
|
+
}, _EntraAdministrativeUnitRemoveCommand_initValidators = function _EntraAdministrativeUnitRemoveCommand_initValidators() {
|
|
81
85
|
this.validators.push(async (args) => {
|
|
82
86
|
if (args.options.id && !validation.isValidGuid(args.options.id)) {
|
|
83
87
|
return `${args.options.id} is not a valid GUID for option id.`;
|
|
84
88
|
}
|
|
85
89
|
return true;
|
|
86
90
|
});
|
|
87
|
-
},
|
|
91
|
+
}, _EntraAdministrativeUnitRemoveCommand_initTypes = function _EntraAdministrativeUnitRemoveCommand_initTypes() {
|
|
88
92
|
this.types.string.push('id', 'displayName');
|
|
89
93
|
};
|
|
90
|
-
export default new
|
|
94
|
+
export default new EntraAdministrativeUnitRemoveCommand();
|
|
91
95
|
//# sourceMappingURL=administrativeunit-remove.js.map
|