@pnp/cli-microsoft365 7.3.0 → 7.4.0-beta.4c4cef8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +1 -0
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/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} +1 -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/{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 +85 -0
- package/dist/m365/pa/commands/app/app-get.js +26 -11
- package/dist/m365/pa/commands/app/app-remove.js +19 -2
- package/dist/m365/spo/commands/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/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/{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/pa/app/app-get.mdx +15 -0
- package/docs/docs/cmd/pa/app/app-remove.mdx +14 -0
- package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-add.mdx +1 -1
- package/docs/docs/cmd/teams/team/team-add.mdx +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
- package/dist/m365/aad/commands/m365group/m365group-user-list.js +0 -94
- package/docs/docs/cmd/aad/app/app-permission-add.mdx +0 -62
- package/docs/docs/cmd/aad/app/app-remove.mdx +0 -59
- package/docs/docs/cmd/aad/app/app-role-add.mdx +0 -68
- package/docs/docs/cmd/aad/app/app-role-remove.mdx +0 -78
- package/docs/docs/cmd/aad/app/app-set.mdx +0 -97
- package/docs/docs/cmd/aad/group/group-remove.mdx +0 -44
- package/docs/docs/cmd/aad/m365group/m365group-user-list.mdx +0 -99
- /package/dist/m365/{aad → entra}/commands/approleassignment/ServicePrincipal.js +0 -0
- /package/dist/m365/{aad → entra}/commands/m365group/GroupExtended.js +0 -0
- /package/dist/m365/{aad → entra}/commands/siteclassification/SiteClassificationSettings.js +0 -0
|
@@ -3,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 _EntraAppAddCommand_instances, _a, _EntraAppAddCommand_initTelemetry, _EntraAppAddCommand_initOptions, _EntraAppAddCommand_initValidators, _EntraAppAddCommand_initOptionSets;
|
|
7
7
|
import fs from 'fs';
|
|
8
8
|
import { v4 } from 'uuid';
|
|
9
9
|
import auth from '../../../../Auth.js';
|
|
@@ -12,22 +12,26 @@ import { accessToken } from '../../../../utils/accessToken.js';
|
|
|
12
12
|
import { odata } from '../../../../utils/odata.js';
|
|
13
13
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
14
14
|
import commands from '../../commands.js';
|
|
15
|
-
|
|
15
|
+
import aadCommands from '../../aadCommands.js';
|
|
16
|
+
class EntraAppAddCommand extends GraphCommand {
|
|
16
17
|
get name() {
|
|
17
18
|
return commands.APP_ADD;
|
|
18
19
|
}
|
|
19
20
|
get description() {
|
|
20
|
-
return 'Creates new
|
|
21
|
+
return 'Creates new Entra app registration';
|
|
22
|
+
}
|
|
23
|
+
alias() {
|
|
24
|
+
return [aadCommands.APP_ADD];
|
|
21
25
|
}
|
|
22
26
|
constructor() {
|
|
23
27
|
super();
|
|
24
|
-
|
|
28
|
+
_EntraAppAddCommand_instances.add(this);
|
|
25
29
|
this.appName = '';
|
|
26
30
|
this.appPermissions = [];
|
|
27
|
-
__classPrivateFieldGet(this,
|
|
28
|
-
__classPrivateFieldGet(this,
|
|
29
|
-
__classPrivateFieldGet(this,
|
|
30
|
-
__classPrivateFieldGet(this,
|
|
31
|
+
__classPrivateFieldGet(this, _EntraAppAddCommand_instances, "m", _EntraAppAddCommand_initTelemetry).call(this);
|
|
32
|
+
__classPrivateFieldGet(this, _EntraAppAddCommand_instances, "m", _EntraAppAddCommand_initOptions).call(this);
|
|
33
|
+
__classPrivateFieldGet(this, _EntraAppAddCommand_instances, "m", _EntraAppAddCommand_initValidators).call(this);
|
|
34
|
+
__classPrivateFieldGet(this, _EntraAppAddCommand_instances, "m", _EntraAppAddCommand_initOptionSets).call(this);
|
|
31
35
|
}
|
|
32
36
|
async commandAction(logger, args) {
|
|
33
37
|
try {
|
|
@@ -635,7 +639,7 @@ class AadAppAddCommand extends GraphCommand {
|
|
|
635
639
|
return platform.charAt(0).toUpperCase() + platform.substring(1);
|
|
636
640
|
}
|
|
637
641
|
}
|
|
638
|
-
_a =
|
|
642
|
+
_a = EntraAppAddCommand, _EntraAppAddCommand_instances = new WeakSet(), _EntraAppAddCommand_initTelemetry = function _EntraAppAddCommand_initTelemetry() {
|
|
639
643
|
this.telemetry.push((args) => {
|
|
640
644
|
Object.assign(this.telemetryProperties, {
|
|
641
645
|
apis: typeof args.options.apisDelegated !== 'undefined',
|
|
@@ -655,7 +659,7 @@ _a = AadAppAddCommand, _AadAppAddCommand_instances = new WeakSet(), _AadAppAddCo
|
|
|
655
659
|
grantAdminConsent: typeof args.options.grantAdminConsent !== 'undefined'
|
|
656
660
|
});
|
|
657
661
|
});
|
|
658
|
-
},
|
|
662
|
+
}, _EntraAppAddCommand_initOptions = function _EntraAppAddCommand_initOptions() {
|
|
659
663
|
this.options.unshift({
|
|
660
664
|
option: '-n, --name [name]'
|
|
661
665
|
}, {
|
|
@@ -664,7 +668,7 @@ _a = AadAppAddCommand, _AadAppAddCommand_instances = new WeakSet(), _AadAppAddCo
|
|
|
664
668
|
option: '-r, --redirectUris [redirectUris]'
|
|
665
669
|
}, {
|
|
666
670
|
option: '-p, --platform [platform]',
|
|
667
|
-
autocomplete: _a.
|
|
671
|
+
autocomplete: _a.entraApplicationPlatform
|
|
668
672
|
}, {
|
|
669
673
|
option: '--implicitFlow'
|
|
670
674
|
}, {
|
|
@@ -679,7 +683,7 @@ _a = AadAppAddCommand, _AadAppAddCommand_instances = new WeakSet(), _AadAppAddCo
|
|
|
679
683
|
option: '--scopeName [scopeName]'
|
|
680
684
|
}, {
|
|
681
685
|
option: '--scopeConsentBy [scopeConsentBy]',
|
|
682
|
-
autocomplete: _a.
|
|
686
|
+
autocomplete: _a.entraAppScopeConsentBy
|
|
683
687
|
}, {
|
|
684
688
|
option: '--scopeAdminConsentDisplayName [scopeAdminConsentDisplayName]'
|
|
685
689
|
}, {
|
|
@@ -697,11 +701,11 @@ _a = AadAppAddCommand, _AadAppAddCommand_instances = new WeakSet(), _AadAppAddCo
|
|
|
697
701
|
}, {
|
|
698
702
|
option: '--grantAdminConsent'
|
|
699
703
|
});
|
|
700
|
-
},
|
|
704
|
+
}, _EntraAppAddCommand_initValidators = function _EntraAppAddCommand_initValidators() {
|
|
701
705
|
this.validators.push(async (args) => {
|
|
702
706
|
if (args.options.platform &&
|
|
703
|
-
_a.
|
|
704
|
-
return `${args.options.platform} is not a valid value for platform. Allowed values are ${_a.
|
|
707
|
+
_a.entraApplicationPlatform.indexOf(args.options.platform) < 0) {
|
|
708
|
+
return `${args.options.platform} is not a valid value for platform. Allowed values are ${_a.entraApplicationPlatform.join(', ')}`;
|
|
705
709
|
}
|
|
706
710
|
if (args.options.redirectUris && !args.options.platform) {
|
|
707
711
|
return `When you specify redirectUris you also need to specify platform`;
|
|
@@ -727,8 +731,8 @@ _a = AadAppAddCommand, _AadAppAddCommand_instances = new WeakSet(), _AadAppAddCo
|
|
|
727
731
|
}
|
|
728
732
|
}
|
|
729
733
|
if (args.options.scopeConsentBy &&
|
|
730
|
-
_a.
|
|
731
|
-
return `${args.options.scopeConsentBy} is not a valid value for scopeConsentBy. Allowed values are ${_a.
|
|
734
|
+
_a.entraAppScopeConsentBy.indexOf(args.options.scopeConsentBy) < 0) {
|
|
735
|
+
return `${args.options.scopeConsentBy} is not a valid value for scopeConsentBy. Allowed values are ${_a.entraAppScopeConsentBy.join(', ')}`;
|
|
732
736
|
}
|
|
733
737
|
if (args.options.manifest) {
|
|
734
738
|
try {
|
|
@@ -743,10 +747,10 @@ _a = AadAppAddCommand, _AadAppAddCommand_instances = new WeakSet(), _AadAppAddCo
|
|
|
743
747
|
}
|
|
744
748
|
return true;
|
|
745
749
|
});
|
|
746
|
-
},
|
|
750
|
+
}, _EntraAppAddCommand_initOptionSets = function _EntraAppAddCommand_initOptionSets() {
|
|
747
751
|
this.optionSets.push({ options: ['name', 'manifest'] });
|
|
748
752
|
};
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
export default new
|
|
753
|
+
EntraAppAddCommand.entraApplicationPlatform = ['spa', 'web', 'publicClient'];
|
|
754
|
+
EntraAppAddCommand.entraAppScopeConsentBy = ['admins', 'adminsAndUsers'];
|
|
755
|
+
export default new EntraAppAddCommand();
|
|
752
756
|
//# sourceMappingURL=app-add.js.map
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var
|
|
6
|
+
var _EntraAppGetCommand_instances, _EntraAppGetCommand_initTelemetry, _EntraAppGetCommand_initOptions, _EntraAppGetCommand_initValidators, _EntraAppGetCommand_initOptionSets;
|
|
7
7
|
import fs from 'fs';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
@@ -11,20 +11,24 @@ import { validation } from '../../../../utils/validation.js';
|
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
12
|
import commands from '../../commands.js';
|
|
13
13
|
import { cli } from '../../../../cli/cli.js';
|
|
14
|
-
|
|
14
|
+
import aadCommands from '../../aadCommands.js';
|
|
15
|
+
class EntraAppGetCommand extends GraphCommand {
|
|
15
16
|
get name() {
|
|
16
17
|
return commands.APP_GET;
|
|
17
18
|
}
|
|
18
19
|
get description() {
|
|
19
|
-
return 'Gets an
|
|
20
|
+
return 'Gets an Entra app registration';
|
|
21
|
+
}
|
|
22
|
+
alias() {
|
|
23
|
+
return [aadCommands.APP_GET];
|
|
20
24
|
}
|
|
21
25
|
constructor() {
|
|
22
26
|
super();
|
|
23
|
-
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
27
|
-
__classPrivateFieldGet(this,
|
|
27
|
+
_EntraAppGetCommand_instances.add(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraAppGetCommand_instances, "m", _EntraAppGetCommand_initTelemetry).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraAppGetCommand_instances, "m", _EntraAppGetCommand_initOptions).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraAppGetCommand_instances, "m", _EntraAppGetCommand_initValidators).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _EntraAppGetCommand_instances, "m", _EntraAppGetCommand_initOptionSets).call(this);
|
|
28
32
|
}
|
|
29
33
|
async commandAction(logger, args) {
|
|
30
34
|
try {
|
|
@@ -116,7 +120,7 @@ class AadAppGetCommand extends GraphCommand {
|
|
|
116
120
|
return appInfo;
|
|
117
121
|
}
|
|
118
122
|
}
|
|
119
|
-
|
|
123
|
+
_EntraAppGetCommand_instances = new WeakSet(), _EntraAppGetCommand_initTelemetry = function _EntraAppGetCommand_initTelemetry() {
|
|
120
124
|
this.telemetry.push((args) => {
|
|
121
125
|
Object.assign(this.telemetryProperties, {
|
|
122
126
|
appId: typeof args.options.appId !== 'undefined',
|
|
@@ -124,9 +128,9 @@ _AadAppGetCommand_instances = new WeakSet(), _AadAppGetCommand_initTelemetry = f
|
|
|
124
128
|
name: typeof args.options.name !== 'undefined'
|
|
125
129
|
});
|
|
126
130
|
});
|
|
127
|
-
},
|
|
131
|
+
}, _EntraAppGetCommand_initOptions = function _EntraAppGetCommand_initOptions() {
|
|
128
132
|
this.options.unshift({ option: '--appId [appId]' }, { option: '--objectId [objectId]' }, { option: '--name [name]' }, { option: '--save' });
|
|
129
|
-
},
|
|
133
|
+
}, _EntraAppGetCommand_initValidators = function _EntraAppGetCommand_initValidators() {
|
|
130
134
|
this.validators.push(async (args) => {
|
|
131
135
|
if (args.options.appId && !validation.isValidGuid(args.options.appId)) {
|
|
132
136
|
return `${args.options.appId} is not a valid GUID`;
|
|
@@ -136,8 +140,8 @@ _AadAppGetCommand_instances = new WeakSet(), _AadAppGetCommand_initTelemetry = f
|
|
|
136
140
|
}
|
|
137
141
|
return true;
|
|
138
142
|
});
|
|
139
|
-
},
|
|
143
|
+
}, _EntraAppGetCommand_initOptionSets = function _EntraAppGetCommand_initOptionSets() {
|
|
140
144
|
this.optionSets.push({ options: ['appId', 'objectId', 'name'] });
|
|
141
145
|
};
|
|
142
|
-
export default new
|
|
146
|
+
export default new EntraAppGetCommand();
|
|
143
147
|
//# sourceMappingURL=app-get.js.map
|
|
@@ -1,12 +1,16 @@
|
|
|
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 EntraAppListCommand extends GraphCommand {
|
|
5
6
|
get name() {
|
|
6
7
|
return commands.APP_LIST;
|
|
7
8
|
}
|
|
8
9
|
get description() {
|
|
9
|
-
return 'Retrieves a list of
|
|
10
|
+
return 'Retrieves a list of Entra app registrations';
|
|
11
|
+
}
|
|
12
|
+
alias() {
|
|
13
|
+
return [aadCommands.APP_LIST];
|
|
10
14
|
}
|
|
11
15
|
defaultProperties() {
|
|
12
16
|
return ['appId', 'id', 'displayName', "signInAudience"];
|
|
@@ -21,5 +25,5 @@ class AadAppListCommand extends GraphCommand {
|
|
|
21
25
|
}
|
|
22
26
|
}
|
|
23
27
|
}
|
|
24
|
-
export default new
|
|
28
|
+
export default new EntraAppListCommand();
|
|
25
29
|
//# sourceMappingURL=app-list.js.map
|
|
@@ -3,31 +3,35 @@ 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 _EntraAppPermissionAddCommand_instances, _EntraAppPermissionAddCommand_initTelemetry, _EntraAppPermissionAddCommand_initOptions, _EntraAppPermissionAddCommand_initValidators, _EntraAppPermissionAddCommand_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 request from "../../../../request.js";
|
|
11
11
|
import { validation } from "../../../../utils/validation.js";
|
|
12
|
+
import aadCommands from "../../aadCommands.js";
|
|
12
13
|
var ScopeType;
|
|
13
14
|
(function (ScopeType) {
|
|
14
15
|
ScopeType["Role"] = "Role";
|
|
15
16
|
ScopeType["Scope"] = "Scope";
|
|
16
17
|
})(ScopeType || (ScopeType = {}));
|
|
17
|
-
class
|
|
18
|
+
class EntraAppPermissionAddCommand extends GraphCommand {
|
|
18
19
|
get name() {
|
|
19
20
|
return commands.APP_PERMISSION_ADD;
|
|
20
21
|
}
|
|
21
22
|
get description() {
|
|
22
23
|
return 'Adds the specified application and/or delegated permissions to a specified Entra ID (Azure AD) app';
|
|
23
24
|
}
|
|
25
|
+
alias() {
|
|
26
|
+
return [aadCommands.APP_PERMISSION_ADD];
|
|
27
|
+
}
|
|
24
28
|
constructor() {
|
|
25
29
|
super();
|
|
26
|
-
|
|
27
|
-
__classPrivateFieldGet(this,
|
|
28
|
-
__classPrivateFieldGet(this,
|
|
29
|
-
__classPrivateFieldGet(this,
|
|
30
|
-
__classPrivateFieldGet(this,
|
|
30
|
+
_EntraAppPermissionAddCommand_instances.add(this);
|
|
31
|
+
__classPrivateFieldGet(this, _EntraAppPermissionAddCommand_instances, "m", _EntraAppPermissionAddCommand_initTelemetry).call(this);
|
|
32
|
+
__classPrivateFieldGet(this, _EntraAppPermissionAddCommand_instances, "m", _EntraAppPermissionAddCommand_initOptions).call(this);
|
|
33
|
+
__classPrivateFieldGet(this, _EntraAppPermissionAddCommand_instances, "m", _EntraAppPermissionAddCommand_initValidators).call(this);
|
|
34
|
+
__classPrivateFieldGet(this, _EntraAppPermissionAddCommand_instances, "m", _EntraAppPermissionAddCommand_initOptionSets).call(this);
|
|
31
35
|
}
|
|
32
36
|
async commandAction(logger, args) {
|
|
33
37
|
try {
|
|
@@ -204,7 +208,7 @@ class AadAppPermissionAddCommand extends GraphCommand {
|
|
|
204
208
|
});
|
|
205
209
|
}
|
|
206
210
|
}
|
|
207
|
-
|
|
211
|
+
_EntraAppPermissionAddCommand_instances = new WeakSet(), _EntraAppPermissionAddCommand_initTelemetry = function _EntraAppPermissionAddCommand_initTelemetry() {
|
|
208
212
|
this.telemetry.push((args) => {
|
|
209
213
|
Object.assign(this.telemetryProperties, {
|
|
210
214
|
appId: typeof args.options.appId !== 'undefined',
|
|
@@ -214,9 +218,9 @@ _AadAppPermissionAddCommand_instances = new WeakSet(), _AadAppPermissionAddComma
|
|
|
214
218
|
grantAdminConsent: !!args.options.grantAdminConsent
|
|
215
219
|
});
|
|
216
220
|
});
|
|
217
|
-
},
|
|
221
|
+
}, _EntraAppPermissionAddCommand_initOptions = function _EntraAppPermissionAddCommand_initOptions() {
|
|
218
222
|
this.options.unshift({ option: '-i, --appId [appId]' }, { option: '--appObjectId [appObjectId]' }, { option: '-a, --applicationPermissions [applicationPermissions]' }, { option: '-d, --delegatedPermissions [delegatedPermissions]' }, { option: '--grantAdminConsent' });
|
|
219
|
-
},
|
|
223
|
+
}, _EntraAppPermissionAddCommand_initValidators = function _EntraAppPermissionAddCommand_initValidators() {
|
|
220
224
|
this.validators.push(async (args) => {
|
|
221
225
|
if (args.options.appId && !validation.isValidGuid(args.options.appId)) {
|
|
222
226
|
return `${args.options.appId} is not a valid GUID`;
|
|
@@ -226,12 +230,12 @@ _AadAppPermissionAddCommand_instances = new WeakSet(), _AadAppPermissionAddComma
|
|
|
226
230
|
}
|
|
227
231
|
return true;
|
|
228
232
|
});
|
|
229
|
-
},
|
|
233
|
+
}, _EntraAppPermissionAddCommand_initOptionSets = function _EntraAppPermissionAddCommand_initOptionSets() {
|
|
230
234
|
this.optionSets.push({ options: ['appId', 'appObjectId'] });
|
|
231
235
|
this.optionSets.push({
|
|
232
236
|
options: ['applicationPermissions', 'delegatedPermissions'],
|
|
233
237
|
runsWhen: (args) => args.options.delegatedPermissions === undefined && args.options.applicationPermissions === undefined
|
|
234
238
|
});
|
|
235
239
|
};
|
|
236
|
-
export default new
|
|
240
|
+
export default new EntraAppPermissionAddCommand();
|
|
237
241
|
//# sourceMappingURL=app-permission-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 _EntraAppRemoveCommand_instances, _EntraAppRemoveCommand_initTelemetry, _EntraAppRemoveCommand_initOptions, _EntraAppRemoveCommand_initValidators, _EntraAppRemoveCommand_initOptionSets;
|
|
7
7
|
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
|
+
import aadCommands from '../../aadCommands.js';
|
|
12
13
|
import commands from '../../commands.js';
|
|
13
|
-
class
|
|
14
|
+
class EntraAppRemoveCommand extends GraphCommand {
|
|
14
15
|
get name() {
|
|
15
16
|
return commands.APP_REMOVE;
|
|
16
17
|
}
|
|
17
18
|
get description() {
|
|
18
|
-
return 'Removes an
|
|
19
|
+
return 'Removes an Entra app registration';
|
|
20
|
+
}
|
|
21
|
+
alias() {
|
|
22
|
+
return [aadCommands.APP_REMOVE];
|
|
19
23
|
}
|
|
20
24
|
constructor() {
|
|
21
25
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
26
|
+
_EntraAppRemoveCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraAppRemoveCommand_instances, "m", _EntraAppRemoveCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraAppRemoveCommand_instances, "m", _EntraAppRemoveCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraAppRemoveCommand_instances, "m", _EntraAppRemoveCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraAppRemoveCommand_instances, "m", _EntraAppRemoveCommand_initOptionSets).call(this);
|
|
27
31
|
}
|
|
28
32
|
async commandAction(logger, args) {
|
|
29
33
|
const deleteApp = async () => {
|
|
@@ -86,7 +90,7 @@ class AadAppRemoveCommand extends GraphCommand {
|
|
|
86
90
|
return result.id;
|
|
87
91
|
}
|
|
88
92
|
}
|
|
89
|
-
|
|
93
|
+
_EntraAppRemoveCommand_instances = new WeakSet(), _EntraAppRemoveCommand_initTelemetry = function _EntraAppRemoveCommand_initTelemetry() {
|
|
90
94
|
this.telemetry.push((args) => {
|
|
91
95
|
Object.assign(this.telemetryProperties, {
|
|
92
96
|
appId: typeof args.options.appId !== 'undefined',
|
|
@@ -95,9 +99,9 @@ _AadAppRemoveCommand_instances = new WeakSet(), _AadAppRemoveCommand_initTelemet
|
|
|
95
99
|
force: (!(!args.options.force)).toString()
|
|
96
100
|
});
|
|
97
101
|
});
|
|
98
|
-
},
|
|
102
|
+
}, _EntraAppRemoveCommand_initOptions = function _EntraAppRemoveCommand_initOptions() {
|
|
99
103
|
this.options.unshift({ option: '--appId [appId]' }, { option: '--objectId [objectId]' }, { option: '--name [name]' }, { option: '-f, --force' });
|
|
100
|
-
},
|
|
104
|
+
}, _EntraAppRemoveCommand_initValidators = function _EntraAppRemoveCommand_initValidators() {
|
|
101
105
|
this.validators.push(async (args) => {
|
|
102
106
|
if (args.options.appId && !validation.isValidGuid(args.options.appId)) {
|
|
103
107
|
return `${args.options.appId} is not a valid GUID`;
|
|
@@ -107,8 +111,8 @@ _AadAppRemoveCommand_instances = new WeakSet(), _AadAppRemoveCommand_initTelemet
|
|
|
107
111
|
}
|
|
108
112
|
return true;
|
|
109
113
|
});
|
|
110
|
-
},
|
|
114
|
+
}, _EntraAppRemoveCommand_initOptionSets = function _EntraAppRemoveCommand_initOptionSets() {
|
|
111
115
|
this.optionSets.push({ options: ['appId', 'objectId', 'name'] });
|
|
112
116
|
};
|
|
113
|
-
export default new
|
|
117
|
+
export default new EntraAppRemoveCommand();
|
|
114
118
|
//# sourceMappingURL=app-remove.js.map
|
|
@@ -3,27 +3,31 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var
|
|
6
|
+
var _EntraAppRoleAddCommand_instances, _a, _EntraAppRoleAddCommand_initTelemetry, _EntraAppRoleAddCommand_initOptions, _EntraAppRoleAddCommand_initValidators, _EntraAppRoleAddCommand_initOptionSets;
|
|
7
7
|
import { v4 } from 'uuid';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.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 EntraAppRoleAddCommand extends GraphCommand {
|
|
14
15
|
get name() {
|
|
15
16
|
return commands.APP_ROLE_ADD;
|
|
16
17
|
}
|
|
17
18
|
get description() {
|
|
18
|
-
return 'Adds role to the specified
|
|
19
|
+
return 'Adds role to the specified Entra app registration';
|
|
20
|
+
}
|
|
21
|
+
alias() {
|
|
22
|
+
return [aadCommands.APP_ROLE_ADD];
|
|
19
23
|
}
|
|
20
24
|
constructor() {
|
|
21
25
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
26
|
+
_EntraAppRoleAddCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraAppRoleAddCommand_instances, "m", _EntraAppRoleAddCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraAppRoleAddCommand_instances, "m", _EntraAppRoleAddCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraAppRoleAddCommand_instances, "m", _EntraAppRoleAddCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraAppRoleAddCommand_instances, "m", _EntraAppRoleAddCommand_initOptionSets).call(this);
|
|
27
31
|
}
|
|
28
32
|
async commandAction(logger, args) {
|
|
29
33
|
try {
|
|
@@ -110,7 +114,7 @@ class AadAppRoleAddCommand extends GraphCommand {
|
|
|
110
114
|
return result.id;
|
|
111
115
|
}
|
|
112
116
|
}
|
|
113
|
-
_a =
|
|
117
|
+
_a = EntraAppRoleAddCommand, _EntraAppRoleAddCommand_instances = new WeakSet(), _EntraAppRoleAddCommand_initTelemetry = function _EntraAppRoleAddCommand_initTelemetry() {
|
|
114
118
|
this.telemetry.push((args) => {
|
|
115
119
|
Object.assign(this.telemetryProperties, {
|
|
116
120
|
appId: typeof args.options.appId !== 'undefined',
|
|
@@ -118,11 +122,11 @@ _a = AadAppRoleAddCommand, _AadAppRoleAddCommand_instances = new WeakSet(), _Aad
|
|
|
118
122
|
appName: typeof args.options.appName !== 'undefined'
|
|
119
123
|
});
|
|
120
124
|
});
|
|
121
|
-
},
|
|
125
|
+
}, _EntraAppRoleAddCommand_initOptions = function _EntraAppRoleAddCommand_initOptions() {
|
|
122
126
|
this.options.unshift({ option: '--appId [appId]' }, { option: '--appObjectId [appObjectId]' }, { option: '--appName [appName]' }, { option: '-n, --name <name>' }, { option: '-d, --description <description>' }, {
|
|
123
127
|
option: '-m, --allowedMembers <allowedMembers>', autocomplete: _a.allowedMembers
|
|
124
128
|
}, { option: '-c, --claim <claim>' });
|
|
125
|
-
},
|
|
129
|
+
}, _EntraAppRoleAddCommand_initValidators = function _EntraAppRoleAddCommand_initValidators() {
|
|
126
130
|
this.validators.push(async (args) => {
|
|
127
131
|
const { allowedMembers, claim } = args.options;
|
|
128
132
|
if (_a.allowedMembers.indexOf(allowedMembers) < 0) {
|
|
@@ -139,9 +143,9 @@ _a = AadAppRoleAddCommand, _AadAppRoleAddCommand_instances = new WeakSet(), _Aad
|
|
|
139
143
|
}
|
|
140
144
|
return true;
|
|
141
145
|
});
|
|
142
|
-
},
|
|
146
|
+
}, _EntraAppRoleAddCommand_initOptionSets = function _EntraAppRoleAddCommand_initOptionSets() {
|
|
143
147
|
this.optionSets.push({ options: ['appId', 'appObjectId', 'appName'] });
|
|
144
148
|
};
|
|
145
|
-
|
|
146
|
-
export default new
|
|
149
|
+
EntraAppRoleAddCommand.allowedMembers = ['usersGroups', 'applications', 'both'];
|
|
150
|
+
export default new EntraAppRoleAddCommand();
|
|
147
151
|
//# sourceMappingURL=app-role-add.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 _EntraAppRoleListCommand_instances, _EntraAppRoleListCommand_initTelemetry, _EntraAppRoleListCommand_initOptions, _EntraAppRoleListCommand_initOptionSets;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
9
|
import { odata } from '../../../../utils/odata.js';
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
12
12
|
import { cli } from '../../../../cli/cli.js';
|
|
13
|
-
|
|
13
|
+
import aadCommands from '../../aadCommands.js';
|
|
14
|
+
class EntraAppRoleListCommand extends GraphCommand {
|
|
14
15
|
get name() {
|
|
15
16
|
return commands.APP_ROLE_LIST;
|
|
16
17
|
}
|
|
17
18
|
get description() {
|
|
18
|
-
return 'Gets
|
|
19
|
+
return 'Gets Entra app registration roles';
|
|
20
|
+
}
|
|
21
|
+
alias() {
|
|
22
|
+
return [aadCommands.APP_ROLE_LIST];
|
|
19
23
|
}
|
|
20
24
|
constructor() {
|
|
21
25
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
+
_EntraAppRoleListCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraAppRoleListCommand_instances, "m", _EntraAppRoleListCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraAppRoleListCommand_instances, "m", _EntraAppRoleListCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraAppRoleListCommand_instances, "m", _EntraAppRoleListCommand_initOptionSets).call(this);
|
|
26
30
|
}
|
|
27
31
|
defaultProperties() {
|
|
28
32
|
return ['displayName', 'description', 'id'];
|
|
@@ -68,7 +72,7 @@ class AadAppRoleListCommand extends GraphCommand {
|
|
|
68
72
|
return result.id;
|
|
69
73
|
}
|
|
70
74
|
}
|
|
71
|
-
|
|
75
|
+
_EntraAppRoleListCommand_instances = new WeakSet(), _EntraAppRoleListCommand_initTelemetry = function _EntraAppRoleListCommand_initTelemetry() {
|
|
72
76
|
this.telemetry.push((args) => {
|
|
73
77
|
Object.assign(this.telemetryProperties, {
|
|
74
78
|
appId: typeof args.options.appId !== 'undefined',
|
|
@@ -76,10 +80,10 @@ _AadAppRoleListCommand_instances = new WeakSet(), _AadAppRoleListCommand_initTel
|
|
|
76
80
|
appName: typeof args.options.appName !== 'undefined'
|
|
77
81
|
});
|
|
78
82
|
});
|
|
79
|
-
},
|
|
83
|
+
}, _EntraAppRoleListCommand_initOptions = function _EntraAppRoleListCommand_initOptions() {
|
|
80
84
|
this.options.unshift({ option: '--appId [appId]' }, { option: '--appObjectId [appObjectId]' }, { option: '--appName [appName]' });
|
|
81
|
-
},
|
|
85
|
+
}, _EntraAppRoleListCommand_initOptionSets = function _EntraAppRoleListCommand_initOptionSets() {
|
|
82
86
|
this.optionSets.push({ options: ['appId', 'appObjectId', 'appName'] });
|
|
83
87
|
};
|
|
84
|
-
export default new
|
|
88
|
+
export default new EntraAppRoleListCommand();
|
|
85
89
|
//# sourceMappingURL=app-role-list.js.map
|
|
@@ -3,27 +3,31 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var
|
|
6
|
+
var _EntraAppRoleRemoveCommand_instances, _EntraAppRoleRemoveCommand_initTelemetry, _EntraAppRoleRemoveCommand_initOptions, _EntraAppRoleRemoveCommand_initValidators, _EntraAppRoleRemoveCommand_initOptionSets;
|
|
7
7
|
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { formatting } from "../../../../utils/formatting.js";
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
12
|
import commands from '../../commands.js';
|
|
13
|
-
|
|
13
|
+
import aadCommands from "../../aadCommands.js";
|
|
14
|
+
class EntraAppRoleRemoveCommand extends GraphCommand {
|
|
14
15
|
get name() {
|
|
15
16
|
return commands.APP_ROLE_REMOVE;
|
|
16
17
|
}
|
|
17
18
|
get description() {
|
|
18
|
-
return 'Removes role from the specified
|
|
19
|
+
return 'Removes role from the specified Entra app registration';
|
|
20
|
+
}
|
|
21
|
+
alias() {
|
|
22
|
+
return [aadCommands.APP_ROLE_REMOVE];
|
|
19
23
|
}
|
|
20
24
|
constructor() {
|
|
21
25
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
26
|
+
_EntraAppRoleRemoveCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraAppRoleRemoveCommand_instances, "m", _EntraAppRoleRemoveCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraAppRoleRemoveCommand_instances, "m", _EntraAppRoleRemoveCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraAppRoleRemoveCommand_instances, "m", _EntraAppRoleRemoveCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraAppRoleRemoveCommand_instances, "m", _EntraAppRoleRemoveCommand_initOptionSets).call(this);
|
|
27
31
|
}
|
|
28
32
|
async commandAction(logger, args) {
|
|
29
33
|
const deleteAppRole = async () => {
|
|
@@ -152,7 +156,7 @@ class AadAppRoleRemoveCommand extends GraphCommand {
|
|
|
152
156
|
return result.id;
|
|
153
157
|
}
|
|
154
158
|
}
|
|
155
|
-
|
|
159
|
+
_EntraAppRoleRemoveCommand_instances = new WeakSet(), _EntraAppRoleRemoveCommand_initTelemetry = function _EntraAppRoleRemoveCommand_initTelemetry() {
|
|
156
160
|
this.telemetry.push((args) => {
|
|
157
161
|
Object.assign(this.telemetryProperties, {
|
|
158
162
|
appId: typeof args.options.appId !== 'undefined',
|
|
@@ -163,9 +167,9 @@ _AadAppRoleRemoveCommand_instances = new WeakSet(), _AadAppRoleRemoveCommand_ini
|
|
|
163
167
|
id: typeof args.options.id !== 'undefined'
|
|
164
168
|
});
|
|
165
169
|
});
|
|
166
|
-
},
|
|
170
|
+
}, _EntraAppRoleRemoveCommand_initOptions = function _EntraAppRoleRemoveCommand_initOptions() {
|
|
167
171
|
this.options.unshift({ option: '--appId [appId]' }, { option: '--appObjectId [appObjectId]' }, { option: '--appName [appName]' }, { option: '-n, --name [name]' }, { option: '-i, --id [id]' }, { option: '-c, --claim [claim]' }, { option: '-f, --force' });
|
|
168
|
-
},
|
|
172
|
+
}, _EntraAppRoleRemoveCommand_initValidators = function _EntraAppRoleRemoveCommand_initValidators() {
|
|
169
173
|
this.validators.push(async (args) => {
|
|
170
174
|
if (args.options.id) {
|
|
171
175
|
if (!validation.isValidGuid(args.options.id)) {
|
|
@@ -174,8 +178,8 @@ _AadAppRoleRemoveCommand_instances = new WeakSet(), _AadAppRoleRemoveCommand_ini
|
|
|
174
178
|
}
|
|
175
179
|
return true;
|
|
176
180
|
});
|
|
177
|
-
},
|
|
181
|
+
}, _EntraAppRoleRemoveCommand_initOptionSets = function _EntraAppRoleRemoveCommand_initOptionSets() {
|
|
178
182
|
this.optionSets.push({ options: ['appId', 'appObjectId', 'appName'] }, { options: ['name', 'claim', 'id'] });
|
|
179
183
|
};
|
|
180
|
-
export default new
|
|
184
|
+
export default new EntraAppRoleRemoveCommand();
|
|
181
185
|
//# sourceMappingURL=app-role-remove.js.map
|