@pnp/cli-microsoft365 7.4.0-beta.b16adf9 → 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/{aad → entra}/commands/m365group/m365group-user-list.js +16 -12
- 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/{aad → entra}/m365group/m365group-user-list.mdx +13 -7
- 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/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/dist/m365/{aad → entra}/commands/approleassignment/ServicePrincipal.js +0 -0
- /package/dist/m365/{aad → entra}/commands/m365group/GroupExtended.js +0 -0
- /package/dist/m365/{aad → entra}/commands/siteclassification/SiteClassificationSettings.js +0 -0
|
@@ -3,11 +3,12 @@ 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 _EntraSpListCommand_instances, _EntraSpListCommand_initTelemetry, _EntraSpListCommand_initOptions;
|
|
7
7
|
import { odata } from '../../../../utils/odata.js';
|
|
8
8
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
9
|
+
import aadCommands from '../../aadCommands.js';
|
|
9
10
|
import commands from '../../commands.js';
|
|
10
|
-
class
|
|
11
|
+
class EntraSpListCommand extends GraphCommand {
|
|
11
12
|
get name() {
|
|
12
13
|
return commands.SP_LIST;
|
|
13
14
|
}
|
|
@@ -17,11 +18,14 @@ class AadSpListCommand extends GraphCommand {
|
|
|
17
18
|
get description() {
|
|
18
19
|
return 'Lists the service principals in the directory';
|
|
19
20
|
}
|
|
21
|
+
alias() {
|
|
22
|
+
return [aadCommands.SP_LIST];
|
|
23
|
+
}
|
|
20
24
|
constructor() {
|
|
21
25
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
26
|
+
_EntraSpListCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraSpListCommand_instances, "m", _EntraSpListCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraSpListCommand_instances, "m", _EntraSpListCommand_initOptions).call(this);
|
|
25
29
|
}
|
|
26
30
|
async commandAction(logger, args) {
|
|
27
31
|
if (this.verbose) {
|
|
@@ -47,19 +51,19 @@ class AadSpListCommand extends GraphCommand {
|
|
|
47
51
|
}
|
|
48
52
|
}
|
|
49
53
|
}
|
|
50
|
-
|
|
54
|
+
_EntraSpListCommand_instances = new WeakSet(), _EntraSpListCommand_initTelemetry = function _EntraSpListCommand_initTelemetry() {
|
|
51
55
|
this.telemetry.push((args) => {
|
|
52
56
|
Object.assign(this.telemetryProperties, {
|
|
53
57
|
displayName: typeof args.options.displayName !== 'undefined',
|
|
54
58
|
tag: typeof args.options.tag !== 'undefined'
|
|
55
59
|
});
|
|
56
60
|
});
|
|
57
|
-
},
|
|
61
|
+
}, _EntraSpListCommand_initOptions = function _EntraSpListCommand_initOptions() {
|
|
58
62
|
this.options.unshift({
|
|
59
63
|
option: '--displayName [displayName]'
|
|
60
64
|
}, {
|
|
61
65
|
option: '--tag [tag]'
|
|
62
66
|
});
|
|
63
67
|
};
|
|
64
|
-
export default new
|
|
68
|
+
export default new EntraSpListCommand();
|
|
65
69
|
//# sourceMappingURL=sp-list.js.map
|
|
@@ -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 _EntraUserAddCommand_instances, _EntraUserAddCommand_initTelemetry, _EntraUserAddCommand_initOptions, _EntraUserAddCommand_initValidators, _EntraUserAddCommand_initOptionSets, _EntraUserAddCommand_initTypes;
|
|
7
7
|
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
|
-
|
|
11
|
+
import aadCommands from '../../aadCommands.js';
|
|
12
|
+
class EntraUserAddCommand extends GraphCommand {
|
|
12
13
|
get name() {
|
|
13
14
|
return commands.USER_ADD;
|
|
14
15
|
}
|
|
15
16
|
get description() {
|
|
16
17
|
return 'Creates a new user';
|
|
17
18
|
}
|
|
19
|
+
alias() {
|
|
20
|
+
return [aadCommands.USER_ADD];
|
|
21
|
+
}
|
|
18
22
|
allowUnknownOptions() {
|
|
19
23
|
return true;
|
|
20
24
|
}
|
|
21
25
|
constructor() {
|
|
22
26
|
super();
|
|
23
|
-
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
27
|
-
__classPrivateFieldGet(this,
|
|
28
|
-
__classPrivateFieldGet(this,
|
|
27
|
+
_EntraUserAddCommand_instances.add(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraUserAddCommand_instances, "m", _EntraUserAddCommand_initTelemetry).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraUserAddCommand_instances, "m", _EntraUserAddCommand_initOptions).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraUserAddCommand_instances, "m", _EntraUserAddCommand_initValidators).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _EntraUserAddCommand_instances, "m", _EntraUserAddCommand_initOptionSets).call(this);
|
|
32
|
+
__classPrivateFieldGet(this, _EntraUserAddCommand_instances, "m", _EntraUserAddCommand_initTypes).call(this);
|
|
29
33
|
}
|
|
30
34
|
async commandAction(logger, args) {
|
|
31
35
|
if (this.verbose) {
|
|
@@ -112,7 +116,7 @@ class AadUserAddCommand extends GraphCommand {
|
|
|
112
116
|
return characterArray;
|
|
113
117
|
}
|
|
114
118
|
}
|
|
115
|
-
|
|
119
|
+
_EntraUserAddCommand_instances = new WeakSet(), _EntraUserAddCommand_initTelemetry = function _EntraUserAddCommand_initTelemetry() {
|
|
116
120
|
this.telemetry.push((args) => {
|
|
117
121
|
Object.assign(this.telemetryProperties, {
|
|
118
122
|
accountEnabled: typeof args.options.accountEnabled !== 'undefined',
|
|
@@ -132,7 +136,7 @@ _AadUserAddCommand_instances = new WeakSet(), _AadUserAddCommand_initTelemetry =
|
|
|
132
136
|
managerUserName: typeof args.options.managerUserName !== 'undefined'
|
|
133
137
|
});
|
|
134
138
|
});
|
|
135
|
-
},
|
|
139
|
+
}, _EntraUserAddCommand_initOptions = function _EntraUserAddCommand_initOptions() {
|
|
136
140
|
this.options.unshift({
|
|
137
141
|
option: '--displayName <displayName>'
|
|
138
142
|
}, {
|
|
@@ -169,7 +173,7 @@ _AadUserAddCommand_instances = new WeakSet(), _AadUserAddCommand_initTelemetry =
|
|
|
169
173
|
}, {
|
|
170
174
|
option: '--managerUserName [managerUserName]'
|
|
171
175
|
});
|
|
172
|
-
},
|
|
176
|
+
}, _EntraUserAddCommand_initValidators = function _EntraUserAddCommand_initValidators() {
|
|
173
177
|
this.validators.push(async (args) => {
|
|
174
178
|
if (!validation.isValidUserPrincipalName(args.options.userName)) {
|
|
175
179
|
return `${args.options.userName} is not a valid userName`;
|
|
@@ -206,13 +210,13 @@ _AadUserAddCommand_instances = new WeakSet(), _AadUserAddCommand_initTelemetry =
|
|
|
206
210
|
}
|
|
207
211
|
return true;
|
|
208
212
|
});
|
|
209
|
-
},
|
|
213
|
+
}, _EntraUserAddCommand_initOptionSets = function _EntraUserAddCommand_initOptionSets() {
|
|
210
214
|
this.optionSets.push({
|
|
211
215
|
options: ['managerUserId', 'managerUserName'],
|
|
212
216
|
runsWhen: (args) => args.options.managerId || args.options.managerUserName
|
|
213
217
|
});
|
|
214
|
-
},
|
|
218
|
+
}, _EntraUserAddCommand_initTypes = function _EntraUserAddCommand_initTypes() {
|
|
215
219
|
this.types.boolean.push('accountEnabled');
|
|
216
220
|
};
|
|
217
|
-
export default new
|
|
221
|
+
export default new EntraUserAddCommand();
|
|
218
222
|
//# sourceMappingURL=user-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 _EntraUserGetCommand_instances, _EntraUserGetCommand_initTelemetry, _EntraUserGetCommand_initOptions, _EntraUserGetCommand_initValidators, _EntraUserGetCommand_initOptionSets;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
12
12
|
import { cli } from '../../../../cli/cli.js';
|
|
13
|
-
|
|
13
|
+
import aadCommands from '../../aadCommands.js';
|
|
14
|
+
class EntraUserGetCommand extends GraphCommand {
|
|
14
15
|
get name() {
|
|
15
16
|
return commands.USER_GET;
|
|
16
17
|
}
|
|
17
18
|
get description() {
|
|
18
19
|
return 'Gets information about the specified user';
|
|
19
20
|
}
|
|
21
|
+
alias() {
|
|
22
|
+
return [aadCommands.USER_GET];
|
|
23
|
+
}
|
|
20
24
|
constructor() {
|
|
21
25
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
26
|
+
_EntraUserGetCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraUserGetCommand_instances, "m", _EntraUserGetCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraUserGetCommand_instances, "m", _EntraUserGetCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraUserGetCommand_instances, "m", _EntraUserGetCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraUserGetCommand_instances, "m", _EntraUserGetCommand_initOptionSets).call(this);
|
|
27
31
|
}
|
|
28
32
|
async commandAction(logger, args) {
|
|
29
33
|
const properties = args.options.properties ?
|
|
@@ -71,7 +75,7 @@ class AadUserGetCommand extends GraphCommand {
|
|
|
71
75
|
}
|
|
72
76
|
}
|
|
73
77
|
}
|
|
74
|
-
|
|
78
|
+
_EntraUserGetCommand_instances = new WeakSet(), _EntraUserGetCommand_initTelemetry = function _EntraUserGetCommand_initTelemetry() {
|
|
75
79
|
this.telemetry.push((args) => {
|
|
76
80
|
Object.assign(this.telemetryProperties, {
|
|
77
81
|
id: typeof args.options.id !== 'undefined',
|
|
@@ -81,7 +85,7 @@ _AadUserGetCommand_instances = new WeakSet(), _AadUserGetCommand_initTelemetry =
|
|
|
81
85
|
withManager: typeof args.options.withManager !== 'undefined'
|
|
82
86
|
});
|
|
83
87
|
});
|
|
84
|
-
},
|
|
88
|
+
}, _EntraUserGetCommand_initOptions = function _EntraUserGetCommand_initOptions() {
|
|
85
89
|
this.options.unshift({
|
|
86
90
|
option: '-i, --id [id]'
|
|
87
91
|
}, {
|
|
@@ -93,7 +97,7 @@ _AadUserGetCommand_instances = new WeakSet(), _AadUserGetCommand_initTelemetry =
|
|
|
93
97
|
}, {
|
|
94
98
|
option: '--withManager'
|
|
95
99
|
});
|
|
96
|
-
},
|
|
100
|
+
}, _EntraUserGetCommand_initValidators = function _EntraUserGetCommand_initValidators() {
|
|
97
101
|
this.validators.push(async (args) => {
|
|
98
102
|
if (args.options.id &&
|
|
99
103
|
!validation.isValidGuid(args.options.id)) {
|
|
@@ -104,8 +108,8 @@ _AadUserGetCommand_instances = new WeakSet(), _AadUserGetCommand_initTelemetry =
|
|
|
104
108
|
}
|
|
105
109
|
return true;
|
|
106
110
|
});
|
|
107
|
-
},
|
|
111
|
+
}, _EntraUserGetCommand_initOptionSets = function _EntraUserGetCommand_initOptionSets() {
|
|
108
112
|
this.optionSets.push({ options: ['id', 'userName', 'email'] });
|
|
109
113
|
};
|
|
110
|
-
export default new
|
|
114
|
+
export default new EntraUserGetCommand();
|
|
111
115
|
//# sourceMappingURL=user-get.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 _EntraUserGuestAddCommand_instances, _EntraUserGuestAddCommand_initTelemetry, _EntraUserGuestAddCommand_initOptions;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
9
|
+
import aadCommands from '../../aadCommands.js';
|
|
9
10
|
import commands from '../../commands.js';
|
|
10
|
-
class
|
|
11
|
+
class EntraUserGuestAddCommand extends GraphCommand {
|
|
11
12
|
get name() {
|
|
12
13
|
return commands.USER_GUEST_ADD;
|
|
13
14
|
}
|
|
14
15
|
get description() {
|
|
15
16
|
return 'Invite an external user to the organization';
|
|
16
17
|
}
|
|
18
|
+
alias() {
|
|
19
|
+
return [aadCommands.USER_GUEST_ADD];
|
|
20
|
+
}
|
|
17
21
|
constructor() {
|
|
18
22
|
super();
|
|
19
|
-
|
|
20
|
-
__classPrivateFieldGet(this,
|
|
21
|
-
__classPrivateFieldGet(this,
|
|
23
|
+
_EntraUserGuestAddCommand_instances.add(this);
|
|
24
|
+
__classPrivateFieldGet(this, _EntraUserGuestAddCommand_instances, "m", _EntraUserGuestAddCommand_initTelemetry).call(this);
|
|
25
|
+
__classPrivateFieldGet(this, _EntraUserGuestAddCommand_instances, "m", _EntraUserGuestAddCommand_initOptions).call(this);
|
|
22
26
|
}
|
|
23
27
|
defaultProperties() {
|
|
24
28
|
return ['id', 'inviteRedeemUrl', 'invitedUserDisplayName', 'invitedUserEmailAddress', 'invitedUserType', 'resetRedemption', 'sendInvitationMessage', 'status'];
|
|
@@ -58,7 +62,7 @@ class AadUserGuestAddCommand extends GraphCommand {
|
|
|
58
62
|
}));
|
|
59
63
|
}
|
|
60
64
|
}
|
|
61
|
-
|
|
65
|
+
_EntraUserGuestAddCommand_instances = new WeakSet(), _EntraUserGuestAddCommand_initTelemetry = function _EntraUserGuestAddCommand_initTelemetry() {
|
|
62
66
|
this.telemetry.push((args) => {
|
|
63
67
|
Object.assign(this.telemetryProperties, {
|
|
64
68
|
displayName: typeof args.options.displayName !== 'undefined',
|
|
@@ -69,7 +73,7 @@ _AadUserGuestAddCommand_instances = new WeakSet(), _AadUserGuestAddCommand_initT
|
|
|
69
73
|
sendInvitationMessage: !!args.options.sendInvitationMessage
|
|
70
74
|
});
|
|
71
75
|
});
|
|
72
|
-
},
|
|
76
|
+
}, _EntraUserGuestAddCommand_initOptions = function _EntraUserGuestAddCommand_initOptions() {
|
|
73
77
|
this.options.unshift({
|
|
74
78
|
option: '--emailAddress <emailAddress>'
|
|
75
79
|
}, {
|
|
@@ -86,5 +90,5 @@ _AadUserGuestAddCommand_instances = new WeakSet(), _AadUserGuestAddCommand_initT
|
|
|
86
90
|
option: '--sendInvitationMessage'
|
|
87
91
|
});
|
|
88
92
|
};
|
|
89
|
-
export default new
|
|
93
|
+
export default new EntraUserGuestAddCommand();
|
|
90
94
|
//# sourceMappingURL=user-guest-add.js.map
|
|
@@ -3,25 +3,29 @@ 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 _EntraUserHibpCommand_instances, _EntraUserHibpCommand_initTelemetry, _EntraUserHibpCommand_initOptions, _EntraUserHibpCommand_initValidators;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import AnonymousCommand from '../../../base/AnonymousCommand.js';
|
|
11
|
+
import aadCommands from '../../aadCommands.js';
|
|
11
12
|
import commands from '../../commands.js';
|
|
12
|
-
class
|
|
13
|
+
class EntraUserHibpCommand extends AnonymousCommand {
|
|
13
14
|
get name() {
|
|
14
15
|
return commands.USER_HIBP;
|
|
15
16
|
}
|
|
16
17
|
get description() {
|
|
17
18
|
return 'Allows you to retrieve all accounts that have been pwned with the specified username';
|
|
18
19
|
}
|
|
20
|
+
alias() {
|
|
21
|
+
return [aadCommands.USER_HIBP];
|
|
22
|
+
}
|
|
19
23
|
constructor() {
|
|
20
24
|
super();
|
|
21
|
-
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
+
_EntraUserHibpCommand_instances.add(this);
|
|
26
|
+
__classPrivateFieldGet(this, _EntraUserHibpCommand_instances, "m", _EntraUserHibpCommand_initTelemetry).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraUserHibpCommand_instances, "m", _EntraUserHibpCommand_initOptions).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraUserHibpCommand_instances, "m", _EntraUserHibpCommand_initValidators).call(this);
|
|
25
29
|
}
|
|
26
30
|
async commandAction(logger, args) {
|
|
27
31
|
try {
|
|
@@ -46,13 +50,13 @@ class AadUserHibpCommand extends AnonymousCommand {
|
|
|
46
50
|
}
|
|
47
51
|
}
|
|
48
52
|
}
|
|
49
|
-
|
|
53
|
+
_EntraUserHibpCommand_instances = new WeakSet(), _EntraUserHibpCommand_initTelemetry = function _EntraUserHibpCommand_initTelemetry() {
|
|
50
54
|
this.telemetry.push((args) => {
|
|
51
55
|
Object.assign(this.telemetryProperties, {
|
|
52
56
|
domain: args.options.domain
|
|
53
57
|
});
|
|
54
58
|
});
|
|
55
|
-
},
|
|
59
|
+
}, _EntraUserHibpCommand_initOptions = function _EntraUserHibpCommand_initOptions() {
|
|
56
60
|
this.options.unshift({
|
|
57
61
|
option: '-n, --userName <userName>'
|
|
58
62
|
}, {
|
|
@@ -60,7 +64,7 @@ _AadUserHibpCommand_instances = new WeakSet(), _AadUserHibpCommand_initTelemetry
|
|
|
60
64
|
}, {
|
|
61
65
|
option: '--domain, [domain]'
|
|
62
66
|
});
|
|
63
|
-
},
|
|
67
|
+
}, _EntraUserHibpCommand_initValidators = function _EntraUserHibpCommand_initValidators() {
|
|
64
68
|
this.validators.push(async (args) => {
|
|
65
69
|
if (!validation.isValidUserPrincipalName(args.options.userName)) {
|
|
66
70
|
return 'Specify valid userName';
|
|
@@ -68,5 +72,5 @@ _AadUserHibpCommand_instances = new WeakSet(), _AadUserHibpCommand_initTelemetry
|
|
|
68
72
|
return true;
|
|
69
73
|
});
|
|
70
74
|
};
|
|
71
|
-
export default new
|
|
75
|
+
export default new EntraUserHibpCommand();
|
|
72
76
|
//# sourceMappingURL=user-hibp.js.map
|
|
@@ -3,25 +3,29 @@ 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 _EntraUserLicenseAddCommand_instances, _EntraUserLicenseAddCommand_initTelemetry, _EntraUserLicenseAddCommand_initOptions, _EntraUserLicenseAddCommand_initValidators, _EntraUserLicenseAddCommand_initOptionSets;
|
|
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';
|
|
10
11
|
import commands from '../../commands.js';
|
|
11
|
-
class
|
|
12
|
+
class EntraUserLicenseAddCommand extends GraphCommand {
|
|
12
13
|
get name() {
|
|
13
14
|
return commands.USER_LICENSE_ADD;
|
|
14
15
|
}
|
|
15
16
|
get description() {
|
|
16
17
|
return 'Assigns a license to a user';
|
|
17
18
|
}
|
|
19
|
+
alias() {
|
|
20
|
+
return [aadCommands.USER_LICENSE_ADD];
|
|
21
|
+
}
|
|
18
22
|
constructor() {
|
|
19
23
|
super();
|
|
20
|
-
|
|
21
|
-
__classPrivateFieldGet(this,
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
24
|
+
_EntraUserLicenseAddCommand_instances.add(this);
|
|
25
|
+
__classPrivateFieldGet(this, _EntraUserLicenseAddCommand_instances, "m", _EntraUserLicenseAddCommand_initTelemetry).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _EntraUserLicenseAddCommand_instances, "m", _EntraUserLicenseAddCommand_initOptions).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraUserLicenseAddCommand_instances, "m", _EntraUserLicenseAddCommand_initValidators).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraUserLicenseAddCommand_instances, "m", _EntraUserLicenseAddCommand_initOptionSets).call(this);
|
|
25
29
|
}
|
|
26
30
|
async commandAction(logger, args) {
|
|
27
31
|
const addLicenses = args.options.ids.split(',').map(x => { return { "disabledPlans": [], "skuId": x }; });
|
|
@@ -43,14 +47,14 @@ class AadUserLicenseAddCommand extends GraphCommand {
|
|
|
43
47
|
}
|
|
44
48
|
}
|
|
45
49
|
}
|
|
46
|
-
|
|
50
|
+
_EntraUserLicenseAddCommand_instances = new WeakSet(), _EntraUserLicenseAddCommand_initTelemetry = function _EntraUserLicenseAddCommand_initTelemetry() {
|
|
47
51
|
this.telemetry.push((args) => {
|
|
48
52
|
Object.assign(this.telemetryProperties, {
|
|
49
53
|
userId: typeof args.options.userId !== 'undefined',
|
|
50
54
|
userName: typeof args.options.userName !== 'undefined'
|
|
51
55
|
});
|
|
52
56
|
});
|
|
53
|
-
},
|
|
57
|
+
}, _EntraUserLicenseAddCommand_initOptions = function _EntraUserLicenseAddCommand_initOptions() {
|
|
54
58
|
this.options.unshift({
|
|
55
59
|
option: '--userId [userId]'
|
|
56
60
|
}, {
|
|
@@ -58,7 +62,7 @@ _AadUserLicenseAddCommand_instances = new WeakSet(), _AadUserLicenseAddCommand_i
|
|
|
58
62
|
}, {
|
|
59
63
|
option: '--ids <ids>'
|
|
60
64
|
});
|
|
61
|
-
},
|
|
65
|
+
}, _EntraUserLicenseAddCommand_initValidators = function _EntraUserLicenseAddCommand_initValidators() {
|
|
62
66
|
this.validators.push(async (args) => {
|
|
63
67
|
if (args.options.userId && !validation.isValidGuid(args.options.userId)) {
|
|
64
68
|
return `${args.options.userId} is not a valid GUID`;
|
|
@@ -68,8 +72,8 @@ _AadUserLicenseAddCommand_instances = new WeakSet(), _AadUserLicenseAddCommand_i
|
|
|
68
72
|
}
|
|
69
73
|
return true;
|
|
70
74
|
});
|
|
71
|
-
},
|
|
75
|
+
}, _EntraUserLicenseAddCommand_initOptionSets = function _EntraUserLicenseAddCommand_initOptionSets() {
|
|
72
76
|
this.optionSets.push({ options: ['userId', 'userName'] });
|
|
73
77
|
};
|
|
74
|
-
export default new
|
|
78
|
+
export default new EntraUserLicenseAddCommand();
|
|
75
79
|
//# sourceMappingURL=user-license-add.js.map
|
|
@@ -3,30 +3,34 @@ 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 _EntraUserLicenseListCommand_instances, _EntraUserLicenseListCommand_initTelemetry, _EntraUserLicenseListCommand_initOptions, _EntraUserLicenseListCommand_initValidators, _EntraUserLicenseListCommand_initOptionSets;
|
|
7
7
|
import { accessToken } from '../../../../utils/accessToken.js';
|
|
8
8
|
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
12
|
import auth from '../../../../Auth.js';
|
|
13
|
-
|
|
13
|
+
import aadCommands from '../../aadCommands.js';
|
|
14
|
+
class EntraUserLicenseListCommand extends GraphCommand {
|
|
14
15
|
get name() {
|
|
15
16
|
return commands.USER_LICENSE_LIST;
|
|
16
17
|
}
|
|
17
18
|
get description() {
|
|
18
19
|
return 'Lists the license details for a given user';
|
|
19
20
|
}
|
|
21
|
+
alias() {
|
|
22
|
+
return [aadCommands.USER_LICENSE_LIST];
|
|
23
|
+
}
|
|
20
24
|
defaultProperties() {
|
|
21
25
|
return ['id', 'skuId', 'skuPartNumber'];
|
|
22
26
|
}
|
|
23
27
|
constructor() {
|
|
24
28
|
super();
|
|
25
|
-
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
27
|
-
__classPrivateFieldGet(this,
|
|
28
|
-
__classPrivateFieldGet(this,
|
|
29
|
-
__classPrivateFieldGet(this,
|
|
29
|
+
_EntraUserLicenseListCommand_instances.add(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraUserLicenseListCommand_instances, "m", _EntraUserLicenseListCommand_initTelemetry).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _EntraUserLicenseListCommand_instances, "m", _EntraUserLicenseListCommand_initOptions).call(this);
|
|
32
|
+
__classPrivateFieldGet(this, _EntraUserLicenseListCommand_instances, "m", _EntraUserLicenseListCommand_initValidators).call(this);
|
|
33
|
+
__classPrivateFieldGet(this, _EntraUserLicenseListCommand_instances, "m", _EntraUserLicenseListCommand_initOptionSets).call(this);
|
|
30
34
|
}
|
|
31
35
|
async commandAction(logger, args) {
|
|
32
36
|
const isAppOnlyAccessToken = accessToken.isAppOnlyAccessToken(auth.service.accessTokens[this.resource].accessToken);
|
|
@@ -53,20 +57,20 @@ class AadUserLicenseListCommand extends GraphCommand {
|
|
|
53
57
|
}
|
|
54
58
|
}
|
|
55
59
|
}
|
|
56
|
-
|
|
60
|
+
_EntraUserLicenseListCommand_instances = new WeakSet(), _EntraUserLicenseListCommand_initTelemetry = function _EntraUserLicenseListCommand_initTelemetry() {
|
|
57
61
|
this.telemetry.push((args) => {
|
|
58
62
|
Object.assign(this.telemetryProperties, {
|
|
59
63
|
userId: typeof args.options.userId !== 'undefined',
|
|
60
64
|
userName: typeof args.options.userName !== 'undefined'
|
|
61
65
|
});
|
|
62
66
|
});
|
|
63
|
-
},
|
|
67
|
+
}, _EntraUserLicenseListCommand_initOptions = function _EntraUserLicenseListCommand_initOptions() {
|
|
64
68
|
this.options.unshift({
|
|
65
69
|
option: '--userId [userId]'
|
|
66
70
|
}, {
|
|
67
71
|
option: '--userName [userName]'
|
|
68
72
|
});
|
|
69
|
-
},
|
|
73
|
+
}, _EntraUserLicenseListCommand_initValidators = function _EntraUserLicenseListCommand_initValidators() {
|
|
70
74
|
this.validators.push(async (args) => {
|
|
71
75
|
if (args.options.userId && !validation.isValidGuid(args.options.userId)) {
|
|
72
76
|
return `${args.options.userId} is not a valid GUID`;
|
|
@@ -76,11 +80,11 @@ _AadUserLicenseListCommand_instances = new WeakSet(), _AadUserLicenseListCommand
|
|
|
76
80
|
}
|
|
77
81
|
return true;
|
|
78
82
|
});
|
|
79
|
-
},
|
|
83
|
+
}, _EntraUserLicenseListCommand_initOptionSets = function _EntraUserLicenseListCommand_initOptionSets() {
|
|
80
84
|
this.optionSets.push({
|
|
81
85
|
options: ['userId', 'userName'],
|
|
82
86
|
runsWhen: (args) => args.options.userId || args.options.userName
|
|
83
87
|
});
|
|
84
88
|
};
|
|
85
|
-
export default new
|
|
89
|
+
export default new EntraUserLicenseListCommand();
|
|
86
90
|
//# sourceMappingURL=user-license-list.js.map
|
|
@@ -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 _EntraUserLicenseRemoveCommand_instances, _EntraUserLicenseRemoveCommand_initTelemetry, _EntraUserLicenseRemoveCommand_initOptions, _EntraUserLicenseRemoveCommand_initOptionSets, _EntraUserLicenseRemoveCommand_initValidators;
|
|
7
7
|
import commands from '../../commands.js';
|
|
8
8
|
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
|
-
|
|
12
|
+
import aadCommands from '../../aadCommands.js';
|
|
13
|
+
class EntraUserLicenseRemoveCommand extends GraphCommand {
|
|
13
14
|
get name() {
|
|
14
15
|
return commands.USER_LICENSE_REMOVE;
|
|
15
16
|
}
|
|
16
17
|
get description() {
|
|
17
18
|
return 'Removes a license from a user';
|
|
18
19
|
}
|
|
20
|
+
alias() {
|
|
21
|
+
return [aadCommands.USER_LICENSE_REMOVE];
|
|
22
|
+
}
|
|
19
23
|
constructor() {
|
|
20
24
|
super();
|
|
21
|
-
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
25
|
+
_EntraUserLicenseRemoveCommand_instances.add(this);
|
|
26
|
+
__classPrivateFieldGet(this, _EntraUserLicenseRemoveCommand_instances, "m", _EntraUserLicenseRemoveCommand_initTelemetry).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraUserLicenseRemoveCommand_instances, "m", _EntraUserLicenseRemoveCommand_initOptions).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraUserLicenseRemoveCommand_instances, "m", _EntraUserLicenseRemoveCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraUserLicenseRemoveCommand_instances, "m", _EntraUserLicenseRemoveCommand_initOptionSets).call(this);
|
|
26
30
|
}
|
|
27
31
|
async commandAction(logger, args) {
|
|
28
32
|
if (this.verbose) {
|
|
@@ -57,7 +61,7 @@ class AadUserLicenseRemoveCommand extends GraphCommand {
|
|
|
57
61
|
}
|
|
58
62
|
}
|
|
59
63
|
}
|
|
60
|
-
|
|
64
|
+
_EntraUserLicenseRemoveCommand_instances = new WeakSet(), _EntraUserLicenseRemoveCommand_initTelemetry = function _EntraUserLicenseRemoveCommand_initTelemetry() {
|
|
61
65
|
this.telemetry.push((args) => {
|
|
62
66
|
Object.assign(this.telemetryProperties, {
|
|
63
67
|
userId: typeof args.options.userId !== 'undefined',
|
|
@@ -65,7 +69,7 @@ _AadUserLicenseRemoveCommand_instances = new WeakSet(), _AadUserLicenseRemoveCom
|
|
|
65
69
|
force: !!args.options.force
|
|
66
70
|
});
|
|
67
71
|
});
|
|
68
|
-
},
|
|
72
|
+
}, _EntraUserLicenseRemoveCommand_initOptions = function _EntraUserLicenseRemoveCommand_initOptions() {
|
|
69
73
|
this.options.unshift({
|
|
70
74
|
option: '--userId [userId]'
|
|
71
75
|
}, {
|
|
@@ -75,9 +79,9 @@ _AadUserLicenseRemoveCommand_instances = new WeakSet(), _AadUserLicenseRemoveCom
|
|
|
75
79
|
}, {
|
|
76
80
|
option: '-f, --force'
|
|
77
81
|
});
|
|
78
|
-
},
|
|
82
|
+
}, _EntraUserLicenseRemoveCommand_initOptionSets = function _EntraUserLicenseRemoveCommand_initOptionSets() {
|
|
79
83
|
this.optionSets.push({ options: ['userId', 'userName'] });
|
|
80
|
-
},
|
|
84
|
+
}, _EntraUserLicenseRemoveCommand_initValidators = function _EntraUserLicenseRemoveCommand_initValidators() {
|
|
81
85
|
this.validators.push(async (args) => {
|
|
82
86
|
if (args.options.userId && !validation.isValidGuid(args.options.userId)) {
|
|
83
87
|
return `${args.options.userId} is not a valid GUID`;
|
|
@@ -91,5 +95,5 @@ _AadUserLicenseRemoveCommand_instances = new WeakSet(), _AadUserLicenseRemoveCom
|
|
|
91
95
|
return true;
|
|
92
96
|
});
|
|
93
97
|
};
|
|
94
|
-
export default new
|
|
98
|
+
export default new EntraUserLicenseRemoveCommand();
|
|
95
99
|
//# sourceMappingURL=user-license-remove.js.map
|
|
@@ -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 _EntraUserListCommand_instances, _EntraUserListCommand_initTelemetry, _EntraUserListCommand_initOptions;
|
|
7
7
|
import { formatting } from '../../../../utils/formatting.js';
|
|
8
8
|
import { odata } from '../../../../utils/odata.js';
|
|
9
9
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
10
10
|
import commands from '../../commands.js';
|
|
11
|
-
|
|
11
|
+
import aadCommands from '../../aadCommands.js';
|
|
12
|
+
class EntraUserListCommand extends GraphCommand {
|
|
12
13
|
get name() {
|
|
13
14
|
return commands.USER_LIST;
|
|
14
15
|
}
|
|
15
16
|
get description() {
|
|
16
17
|
return 'Lists users matching specified criteria';
|
|
17
18
|
}
|
|
19
|
+
alias() {
|
|
20
|
+
return [aadCommands.USER_LIST];
|
|
21
|
+
}
|
|
18
22
|
allowUnknownOptions() {
|
|
19
23
|
return true;
|
|
20
24
|
}
|
|
21
25
|
constructor() {
|
|
22
26
|
super();
|
|
23
|
-
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
27
|
+
_EntraUserListCommand_instances.add(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraUserListCommand_instances, "m", _EntraUserListCommand_initTelemetry).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraUserListCommand_instances, "m", _EntraUserListCommand_initOptions).call(this);
|
|
26
30
|
}
|
|
27
31
|
async commandAction(logger, args) {
|
|
28
32
|
try {
|
|
@@ -72,14 +76,14 @@ class AadUserListCommand extends GraphCommand {
|
|
|
72
76
|
return filter;
|
|
73
77
|
}
|
|
74
78
|
}
|
|
75
|
-
|
|
79
|
+
_EntraUserListCommand_instances = new WeakSet(), _EntraUserListCommand_initTelemetry = function _EntraUserListCommand_initTelemetry() {
|
|
76
80
|
this.telemetry.push((args) => {
|
|
77
81
|
Object.assign(this.telemetryProperties, {
|
|
78
82
|
properties: args.options.properties
|
|
79
83
|
});
|
|
80
84
|
});
|
|
81
|
-
},
|
|
85
|
+
}, _EntraUserListCommand_initOptions = function _EntraUserListCommand_initOptions() {
|
|
82
86
|
this.options.unshift({ option: '-p, --properties [properties]' });
|
|
83
87
|
};
|
|
84
|
-
export default new
|
|
88
|
+
export default new EntraUserListCommand();
|
|
85
89
|
//# sourceMappingURL=user-list.js.map
|