@pnp/cli-microsoft365 7.0.0-beta.4ebf3ad → 7.0.0-beta.669444a
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 -1
- package/dist/Auth.js +2 -1
- package/dist/Command.js +1 -1
- package/dist/cli/Cli.js +19 -2
- package/dist/m365/aad/commands/{o365group/o365group-add.js → m365group/m365group-add.js} +17 -17
- package/dist/m365/aad/commands/{o365group/o365group-conversation-list.js → m365group/m365group-conversation-list.js} +10 -10
- package/dist/m365/aad/commands/{o365group/o365group-conversation-post-list.js → m365group/m365group-conversation-post-list.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-get.js → m365group/m365group-get.js} +13 -10
- package/dist/m365/aad/commands/{o365group/o365group-list.js → m365group/m365group-list.js} +13 -28
- package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-clear.js → m365group/m365group-recyclebinitem-clear.js} +15 -15
- package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-list.js → m365group/m365group-recyclebinitem-list.js} +10 -10
- package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-remove.js → m365group/m365group-recyclebinitem-remove.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-restore.js → m365group/m365group-recyclebinitem-restore.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-remove.js → m365group/m365group-remove.js} +12 -12
- package/dist/m365/aad/commands/{o365group/o365group-renew.js → m365group/m365group-renew.js} +10 -10
- package/dist/m365/aad/commands/{o365group/o365group-report-activitycounts.js → m365group/m365group-report-activitycounts.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-report-activitydetail.js → m365group/m365group-report-activitydetail.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-report-activityfilecounts.js → m365group/m365group-report-activityfilecounts.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-report-activitygroupcounts.js → m365group/m365group-report-activitygroupcounts.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-report-activitystorage.js → m365group/m365group-report-activitystorage.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-set.js → m365group/m365group-set.js} +17 -17
- package/dist/m365/aad/commands/{o365group/o365group-teamify.js → m365group/m365group-teamify.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-user-add.js → m365group/m365group-user-add.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-user-list.js → m365group/m365group-user-list.js} +12 -12
- package/dist/m365/aad/commands/{o365group/o365group-user-remove.js → m365group/m365group-user-remove.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-user-set.js → m365group/m365group-user-set.js} +15 -15
- package/dist/m365/aad/commands.js +22 -22
- package/dist/m365/cli/commands/config/config-list.js +16 -0
- package/dist/m365/cli/commands.js +1 -0
- package/dist/m365/pa/commands/app/app-permission-ensure.js +162 -0
- package/dist/m365/pa/commands/app/app-permission-list.js +2 -2
- package/dist/m365/pa/commands/app/app-permission-remove.js +153 -0
- package/dist/m365/pa/commands.js +2 -0
- package/dist/m365/planner/commands/bucket/bucket-add.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-get.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-list.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-remove.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-set.js +2 -2
- package/dist/m365/planner/commands/plan/plan-get.js +1 -2
- package/dist/m365/planner/commands/plan/plan-list.js +4 -5
- package/dist/m365/planner/commands/plan/plan-set.js +2 -2
- package/dist/m365/spfx/commands/project/project-externalize/rules/PnPJsRule.js +2 -2
- package/dist/m365/spfx/commands/spfx-doctor.js +73 -103
- package/dist/m365/spo/commands/file/file-add.js +13 -13
- package/dist/m365/spo/commands/file/file-checkin.js +1 -1
- package/dist/m365/spo/commands/file/file-checkout.js +1 -1
- package/dist/m365/spo/commands/file/file-copy.js +36 -4
- package/dist/m365/spo/commands/file/file-list.js +4 -4
- package/dist/m365/spo/commands/file/file-move.js +74 -98
- package/dist/m365/spo/commands/file/file-remove.js +6 -6
- package/dist/m365/spo/commands/file/file-rename.js +2 -2
- package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +1 -1
- package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +1 -1
- package/dist/m365/spo/commands/file/file-roleassignment-add.js +1 -1
- package/dist/m365/spo/commands/file/file-roleassignment-remove.js +1 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-break.js +1 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +1 -1
- package/dist/m365/spo/commands/file/file-version-clear.js +1 -1
- package/dist/m365/spo/commands/file/file-version-get.js +1 -1
- package/dist/m365/spo/commands/file/file-version-list.js +1 -1
- package/dist/m365/spo/commands/file/file-version-remove.js +1 -1
- package/dist/m365/spo/commands/file/file-version-restore.js +1 -1
- package/dist/m365/spo/commands/folder/folder-add.js +2 -4
- package/dist/m365/spo/commands/folder/folder-copy.js +89 -45
- package/dist/m365/spo/commands/folder/folder-get.js +1 -1
- package/dist/m365/spo/commands/folder/folder-list.js +2 -2
- package/dist/m365/spo/commands/folder/folder-move.js +89 -47
- package/dist/m365/spo/commands/folder/folder-remove.js +7 -4
- package/dist/m365/spo/commands/folder/folder-rename.js +13 -17
- package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +1 -1
- package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +1 -1
- package/dist/m365/spo/commands/group/group-list.js +0 -1
- package/dist/m365/spo/commands/navigation/navigation-node-set.js +2 -2
- package/dist/m365/spo/commands/site/site-set.js +2 -2
- package/dist/m365/spo/commands/theme/theme-list.js +1 -9
- package/dist/utils/planner.js +4 -3
- package/dist/utils/spo.js +13 -54
- package/docs/docs/cmd/aad/{o365group/o365group-add.mdx → m365group/m365group-add.mdx} +13 -13
- package/docs/docs/cmd/aad/{o365group/o365group-conversation-list.mdx → m365group/m365group-conversation-list.mdx} +4 -4
- package/docs/docs/cmd/aad/{o365group/o365group-conversation-post-list.mdx → m365group/m365group-conversation-post-list.mdx} +8 -8
- package/docs/docs/cmd/aad/{o365group/o365group-get.mdx → m365group/m365group-get.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-list.mdx → m365group/m365group-list.mdx} +12 -29
- package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-clear.mdx → m365group/m365group-recyclebinitem-clear.mdx} +5 -5
- package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-list.mdx → m365group/m365group-recyclebinitem-list.mdx} +8 -8
- package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-remove.mdx → m365group/m365group-recyclebinitem-remove.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-restore.mdx → m365group/m365group-recyclebinitem-restore.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-remove.mdx → m365group/m365group-remove.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-renew.mdx → m365group/m365group-renew.mdx} +4 -4
- package/docs/docs/cmd/aad/{o365group/o365group-report-activitycounts.mdx → m365group/m365group-report-activitycounts.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-report-activitydetail.mdx → m365group/m365group-report-activitydetail.mdx} +7 -7
- package/docs/docs/cmd/aad/{o365group/o365group-report-activityfilecounts.mdx → m365group/m365group-report-activityfilecounts.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-report-activitygroupcounts.mdx → m365group/m365group-report-activitygroupcounts.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-report-activitystorage.mdx → m365group/m365group-report-activitystorage.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-set.mdx → m365group/m365group-set.mdx} +8 -8
- package/docs/docs/cmd/aad/{o365group/o365group-teamify.mdx → m365group/m365group-teamify.mdx} +5 -5
- package/docs/docs/cmd/aad/{o365group/o365group-user-add.mdx → m365group/m365group-user-add.mdx} +5 -5
- package/docs/docs/cmd/aad/{o365group/o365group-user-list.mdx → m365group/m365group-user-list.mdx} +7 -7
- package/docs/docs/cmd/aad/{o365group/o365group-user-remove.mdx → m365group/m365group-user-remove.mdx} +5 -5
- package/docs/docs/cmd/aad/{o365group/o365group-user-set.mdx → m365group/m365group-user-set.mdx} +5 -5
- package/docs/docs/cmd/aad/user/user-set.mdx +1 -1
- package/docs/docs/cmd/cli/config/config-list.mdx +78 -0
- package/docs/docs/cmd/flow/flow-enable.mdx +2 -2
- package/docs/docs/cmd/login.mdx +6 -0
- package/docs/docs/cmd/pa/app/app-permission-ensure.mdx +85 -0
- package/docs/docs/cmd/pa/app/app-permission-remove.mdx +74 -0
- package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
- package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +2 -2
- package/docs/docs/cmd/pp/dataverse/dataverse-table-list.mdx +2 -2
- package/docs/docs/cmd/pp/dataverse/dataverse-table-remove.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-checkin.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +1 -9
- package/docs/docs/cmd/spo/file/file-checkout.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-copy.mdx +20 -16
- package/docs/docs/cmd/spo/file/file-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-list.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-move.mdx +36 -18
- package/docs/docs/cmd/spo/file/file-remove.mdx +8 -8
- package/docs/docs/cmd/spo/file/file-rename.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-clear.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-list.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-restore.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-add.mdx +76 -1
- package/docs/docs/cmd/spo/folder/folder-copy.mdx +39 -12
- package/docs/docs/cmd/spo/folder/folder-get.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-list.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-move.mdx +40 -13
- package/docs/docs/cmd/spo/folder/folder-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-rename.mdx +5 -1
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +2 -2
- package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-attachment-list.mdx +1 -1
- 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-list.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
- package/docs/docs/cmd/teams/team/team-add.mdx +1 -1
- package/docs/docs/cmd/yammer/network/network-list.mdx +1 -1
- package/npm-shrinkwrap.json +142 -88
- package/package.json +13 -13
- /package/dist/m365/aad/commands/{o365group → m365group}/GroupExtended.js +0 -0
|
@@ -3,27 +3,27 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var
|
|
6
|
+
var _AadM365GroupRecycleBinItemRemoveCommand_instances, _AadM365GroupRecycleBinItemRemoveCommand_initTelemetry, _AadM365GroupRecycleBinItemRemoveCommand_initOptions, _AadM365GroupRecycleBinItemRemoveCommand_initValidators, _AadM365GroupRecycleBinItemRemoveCommand_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
|
-
class
|
|
13
|
+
class AadM365GroupRecycleBinItemRemoveCommand extends GraphCommand {
|
|
14
14
|
get name() {
|
|
15
|
-
return commands.
|
|
15
|
+
return commands.M365GROUP_RECYCLEBINITEM_REMOVE;
|
|
16
16
|
}
|
|
17
17
|
get description() {
|
|
18
18
|
return 'Permanently deletes a Microsoft 365 Group from the recycle bin in the current tenant';
|
|
19
19
|
}
|
|
20
20
|
constructor() {
|
|
21
21
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
22
|
+
_AadM365GroupRecycleBinItemRemoveCommand_instances.add(this);
|
|
23
|
+
__classPrivateFieldGet(this, _AadM365GroupRecycleBinItemRemoveCommand_instances, "m", _AadM365GroupRecycleBinItemRemoveCommand_initTelemetry).call(this);
|
|
24
|
+
__classPrivateFieldGet(this, _AadM365GroupRecycleBinItemRemoveCommand_instances, "m", _AadM365GroupRecycleBinItemRemoveCommand_initOptions).call(this);
|
|
25
|
+
__classPrivateFieldGet(this, _AadM365GroupRecycleBinItemRemoveCommand_instances, "m", _AadM365GroupRecycleBinItemRemoveCommand_initValidators).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _AadM365GroupRecycleBinItemRemoveCommand_instances, "m", _AadM365GroupRecycleBinItemRemoveCommand_initOptionSets).call(this);
|
|
27
27
|
}
|
|
28
28
|
async commandAction(logger, args) {
|
|
29
29
|
const removeGroup = async () => {
|
|
@@ -87,7 +87,7 @@ class AadO365GroupRecycleBinItemRemoveCommand extends GraphCommand {
|
|
|
87
87
|
return groups[0].id;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
_AadM365GroupRecycleBinItemRemoveCommand_instances = new WeakSet(), _AadM365GroupRecycleBinItemRemoveCommand_initTelemetry = function _AadM365GroupRecycleBinItemRemoveCommand_initTelemetry() {
|
|
91
91
|
this.telemetry.push((args) => {
|
|
92
92
|
Object.assign(this.telemetryProperties, {
|
|
93
93
|
id: typeof args.options.id !== 'undefined',
|
|
@@ -96,7 +96,7 @@ _AadO365GroupRecycleBinItemRemoveCommand_instances = new WeakSet(), _AadO365Grou
|
|
|
96
96
|
force: !!args.options.force
|
|
97
97
|
});
|
|
98
98
|
});
|
|
99
|
-
},
|
|
99
|
+
}, _AadM365GroupRecycleBinItemRemoveCommand_initOptions = function _AadM365GroupRecycleBinItemRemoveCommand_initOptions() {
|
|
100
100
|
this.options.unshift({
|
|
101
101
|
option: '-i, --id [id]'
|
|
102
102
|
}, {
|
|
@@ -106,15 +106,15 @@ _AadO365GroupRecycleBinItemRemoveCommand_instances = new WeakSet(), _AadO365Grou
|
|
|
106
106
|
}, {
|
|
107
107
|
option: '-f, --force'
|
|
108
108
|
});
|
|
109
|
-
},
|
|
109
|
+
}, _AadM365GroupRecycleBinItemRemoveCommand_initValidators = function _AadM365GroupRecycleBinItemRemoveCommand_initValidators() {
|
|
110
110
|
this.validators.push(async (args) => {
|
|
111
111
|
if (args.options.id && !validation.isValidGuid(args.options.id)) {
|
|
112
112
|
return `${args.options.id} is not a valid GUID`;
|
|
113
113
|
}
|
|
114
114
|
return true;
|
|
115
115
|
});
|
|
116
|
-
},
|
|
116
|
+
}, _AadM365GroupRecycleBinItemRemoveCommand_initOptionSets = function _AadM365GroupRecycleBinItemRemoveCommand_initOptionSets() {
|
|
117
117
|
this.optionSets.push({ options: ['id', 'displayName', 'mailNickname'] });
|
|
118
118
|
};
|
|
119
|
-
export default new
|
|
120
|
-
//# sourceMappingURL=
|
|
119
|
+
export default new AadM365GroupRecycleBinItemRemoveCommand();
|
|
120
|
+
//# sourceMappingURL=m365group-recyclebinitem-remove.js.map
|
|
@@ -3,26 +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 _AadM365GroupRecycleBinItemRestoreCommand_instances, _AadM365GroupRecycleBinItemRestoreCommand_initTelemetry, _AadM365GroupRecycleBinItemRestoreCommand_initOptions, _AadM365GroupRecycleBinItemRestoreCommand_initValidators, _AadM365GroupRecycleBinItemRestoreCommand_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
|
-
class
|
|
12
|
+
class AadM365GroupRecycleBinItemRestoreCommand extends GraphCommand {
|
|
13
13
|
get name() {
|
|
14
|
-
return commands.
|
|
14
|
+
return commands.M365GROUP_RECYCLEBINITEM_RESTORE;
|
|
15
15
|
}
|
|
16
16
|
get description() {
|
|
17
17
|
return 'Restores a deleted Microsoft 365 Group';
|
|
18
18
|
}
|
|
19
19
|
constructor() {
|
|
20
20
|
super();
|
|
21
|
-
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
21
|
+
_AadM365GroupRecycleBinItemRestoreCommand_instances.add(this);
|
|
22
|
+
__classPrivateFieldGet(this, _AadM365GroupRecycleBinItemRestoreCommand_instances, "m", _AadM365GroupRecycleBinItemRestoreCommand_initTelemetry).call(this);
|
|
23
|
+
__classPrivateFieldGet(this, _AadM365GroupRecycleBinItemRestoreCommand_instances, "m", _AadM365GroupRecycleBinItemRestoreCommand_initOptions).call(this);
|
|
24
|
+
__classPrivateFieldGet(this, _AadM365GroupRecycleBinItemRestoreCommand_instances, "m", _AadM365GroupRecycleBinItemRestoreCommand_initValidators).call(this);
|
|
25
|
+
__classPrivateFieldGet(this, _AadM365GroupRecycleBinItemRestoreCommand_instances, "m", _AadM365GroupRecycleBinItemRestoreCommand_initOptionSets).call(this);
|
|
26
26
|
}
|
|
27
27
|
async commandAction(logger, args) {
|
|
28
28
|
if (this.verbose) {
|
|
@@ -74,7 +74,7 @@ class AadO365GroupRecycleBinItemRestoreCommand extends GraphCommand {
|
|
|
74
74
|
return groups[0].id;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
_AadM365GroupRecycleBinItemRestoreCommand_instances = new WeakSet(), _AadM365GroupRecycleBinItemRestoreCommand_initTelemetry = function _AadM365GroupRecycleBinItemRestoreCommand_initTelemetry() {
|
|
78
78
|
this.telemetry.push((args) => {
|
|
79
79
|
Object.assign(this.telemetryProperties, {
|
|
80
80
|
id: typeof args.options.id !== 'undefined',
|
|
@@ -82,7 +82,7 @@ _AadO365GroupRecycleBinItemRestoreCommand_instances = new WeakSet(), _AadO365Gro
|
|
|
82
82
|
mailNickname: typeof args.options.mailNickname !== 'undefined'
|
|
83
83
|
});
|
|
84
84
|
});
|
|
85
|
-
},
|
|
85
|
+
}, _AadM365GroupRecycleBinItemRestoreCommand_initOptions = function _AadM365GroupRecycleBinItemRestoreCommand_initOptions() {
|
|
86
86
|
this.options.unshift({
|
|
87
87
|
option: '-i, --id [id]'
|
|
88
88
|
}, {
|
|
@@ -90,15 +90,15 @@ _AadO365GroupRecycleBinItemRestoreCommand_instances = new WeakSet(), _AadO365Gro
|
|
|
90
90
|
}, {
|
|
91
91
|
option: '-m, --mailNickname [mailNickname]'
|
|
92
92
|
});
|
|
93
|
-
},
|
|
93
|
+
}, _AadM365GroupRecycleBinItemRestoreCommand_initValidators = function _AadM365GroupRecycleBinItemRestoreCommand_initValidators() {
|
|
94
94
|
this.validators.push(async (args) => {
|
|
95
95
|
if (args.options.id && !validation.isValidGuid(args.options.id)) {
|
|
96
96
|
return `${args.options.id} is not a valid GUID`;
|
|
97
97
|
}
|
|
98
98
|
return true;
|
|
99
99
|
});
|
|
100
|
-
},
|
|
100
|
+
}, _AadM365GroupRecycleBinItemRestoreCommand_initOptionSets = function _AadM365GroupRecycleBinItemRestoreCommand_initOptionSets() {
|
|
101
101
|
this.optionSets.push({ options: ['id', 'displayName', 'mailNickname'] });
|
|
102
102
|
};
|
|
103
|
-
export default new
|
|
104
|
-
//# sourceMappingURL=
|
|
103
|
+
export default new AadM365GroupRecycleBinItemRestoreCommand();
|
|
104
|
+
//# sourceMappingURL=m365group-recyclebinitem-restore.js.map
|
package/dist/m365/aad/commands/{o365group/o365group-remove.js → m365group/m365group-remove.js}
RENAMED
|
@@ -3,25 +3,25 @@ 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 _AadM365GroupRemoveCommand_instances, _AadM365GroupRemoveCommand_initTelemetry, _AadM365GroupRemoveCommand_initOptions, _AadM365GroupRemoveCommand_initValidators;
|
|
7
7
|
import { Cli } from '../../../../cli/Cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
12
|
-
class
|
|
12
|
+
class AadM365GroupRemoveCommand extends GraphCommand {
|
|
13
13
|
get name() {
|
|
14
|
-
return commands.
|
|
14
|
+
return commands.M365GROUP_REMOVE;
|
|
15
15
|
}
|
|
16
16
|
get description() {
|
|
17
17
|
return 'Removes an Microsoft 365 Group';
|
|
18
18
|
}
|
|
19
19
|
constructor() {
|
|
20
20
|
super();
|
|
21
|
-
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
21
|
+
_AadM365GroupRemoveCommand_instances.add(this);
|
|
22
|
+
__classPrivateFieldGet(this, _AadM365GroupRemoveCommand_instances, "m", _AadM365GroupRemoveCommand_initTelemetry).call(this);
|
|
23
|
+
__classPrivateFieldGet(this, _AadM365GroupRemoveCommand_instances, "m", _AadM365GroupRemoveCommand_initOptions).call(this);
|
|
24
|
+
__classPrivateFieldGet(this, _AadM365GroupRemoveCommand_instances, "m", _AadM365GroupRemoveCommand_initValidators).call(this);
|
|
25
25
|
}
|
|
26
26
|
async commandAction(logger, args) {
|
|
27
27
|
const removeGroup = async () => {
|
|
@@ -66,14 +66,14 @@ class AadO365GroupRemoveCommand extends GraphCommand {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
_AadM365GroupRemoveCommand_instances = new WeakSet(), _AadM365GroupRemoveCommand_initTelemetry = function _AadM365GroupRemoveCommand_initTelemetry() {
|
|
70
70
|
this.telemetry.push((args) => {
|
|
71
71
|
Object.assign(this.telemetryProperties, {
|
|
72
72
|
force: (!(!args.options.force)).toString(),
|
|
73
73
|
skipRecycleBin: args.options.skipRecycleBin
|
|
74
74
|
});
|
|
75
75
|
});
|
|
76
|
-
},
|
|
76
|
+
}, _AadM365GroupRemoveCommand_initOptions = function _AadM365GroupRemoveCommand_initOptions() {
|
|
77
77
|
this.options.unshift({
|
|
78
78
|
option: '-i, --id <id>'
|
|
79
79
|
}, {
|
|
@@ -81,7 +81,7 @@ _AadO365GroupRemoveCommand_instances = new WeakSet(), _AadO365GroupRemoveCommand
|
|
|
81
81
|
}, {
|
|
82
82
|
option: '--skipRecycleBin'
|
|
83
83
|
});
|
|
84
|
-
},
|
|
84
|
+
}, _AadM365GroupRemoveCommand_initValidators = function _AadM365GroupRemoveCommand_initValidators() {
|
|
85
85
|
this.validators.push(async (args) => {
|
|
86
86
|
if (!validation.isValidGuid(args.options.id)) {
|
|
87
87
|
return `${args.options.id} is not a valid GUID`;
|
|
@@ -89,5 +89,5 @@ _AadO365GroupRemoveCommand_instances = new WeakSet(), _AadO365GroupRemoveCommand
|
|
|
89
89
|
return true;
|
|
90
90
|
});
|
|
91
91
|
};
|
|
92
|
-
export default new
|
|
93
|
-
//# sourceMappingURL=
|
|
92
|
+
export default new AadM365GroupRemoveCommand();
|
|
93
|
+
//# sourceMappingURL=m365group-remove.js.map
|
package/dist/m365/aad/commands/{o365group/o365group-renew.js → m365group/m365group-renew.js}
RENAMED
|
@@ -3,23 +3,23 @@ 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 _AadM365GroupRenewCommand_instances, _AadM365GroupRenewCommand_initOptions, _AadM365GroupRenewCommand_initValidators;
|
|
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
|
-
class
|
|
11
|
+
class AadM365GroupRenewCommand extends GraphCommand {
|
|
12
12
|
get name() {
|
|
13
|
-
return commands.
|
|
13
|
+
return commands.M365GROUP_RENEW;
|
|
14
14
|
}
|
|
15
15
|
get description() {
|
|
16
16
|
return `Renews Microsoft 365 group's expiration`;
|
|
17
17
|
}
|
|
18
18
|
constructor() {
|
|
19
19
|
super();
|
|
20
|
-
|
|
21
|
-
__classPrivateFieldGet(this,
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
20
|
+
_AadM365GroupRenewCommand_instances.add(this);
|
|
21
|
+
__classPrivateFieldGet(this, _AadM365GroupRenewCommand_instances, "m", _AadM365GroupRenewCommand_initOptions).call(this);
|
|
22
|
+
__classPrivateFieldGet(this, _AadM365GroupRenewCommand_instances, "m", _AadM365GroupRenewCommand_initValidators).call(this);
|
|
23
23
|
}
|
|
24
24
|
async commandAction(logger, args) {
|
|
25
25
|
if (this.verbose) {
|
|
@@ -39,11 +39,11 @@ class AadO365GroupRenewCommand extends GraphCommand {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
_AadM365GroupRenewCommand_instances = new WeakSet(), _AadM365GroupRenewCommand_initOptions = function _AadM365GroupRenewCommand_initOptions() {
|
|
43
43
|
this.options.unshift({
|
|
44
44
|
option: '-i, --id <id>'
|
|
45
45
|
});
|
|
46
|
-
},
|
|
46
|
+
}, _AadM365GroupRenewCommand_initValidators = function _AadM365GroupRenewCommand_initValidators() {
|
|
47
47
|
this.validators.push(async (args) => {
|
|
48
48
|
if (!validation.isValidGuid(args.options.id)) {
|
|
49
49
|
return `${args.options.id} is not a valid GUID`;
|
|
@@ -51,5 +51,5 @@ _AadO365GroupRenewCommand_instances = new WeakSet(), _AadO365GroupRenewCommand_i
|
|
|
51
51
|
return true;
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
|
-
export default new
|
|
55
|
-
//# sourceMappingURL=
|
|
54
|
+
export default new AadM365GroupRenewCommand();
|
|
55
|
+
//# sourceMappingURL=m365group-renew.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import PeriodBasedReport from '../../../base/PeriodBasedReport.js';
|
|
2
2
|
import commands from '../../commands.js';
|
|
3
|
-
class
|
|
3
|
+
class M365GroupReportActivityCountsCommand extends PeriodBasedReport {
|
|
4
4
|
get name() {
|
|
5
|
-
return commands.
|
|
5
|
+
return commands.M365GROUP_REPORT_ACTIVITYCOUNTS;
|
|
6
6
|
}
|
|
7
7
|
get description() {
|
|
8
8
|
return 'Get the number of group activities across group workloads';
|
|
@@ -11,5 +11,5 @@ class O365GroupReportActivityCountsCommand extends PeriodBasedReport {
|
|
|
11
11
|
return 'getOffice365GroupsActivityCounts';
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
export default new
|
|
15
|
-
//# sourceMappingURL=
|
|
14
|
+
export default new M365GroupReportActivityCountsCommand();
|
|
15
|
+
//# sourceMappingURL=m365group-report-activitycounts.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import DateAndPeriodBasedReport from '../../../base/DateAndPeriodBasedReport.js';
|
|
2
2
|
import commands from '../../commands.js';
|
|
3
|
-
class
|
|
3
|
+
class M365GroupReportActivityDetailCommand extends DateAndPeriodBasedReport {
|
|
4
4
|
get name() {
|
|
5
|
-
return commands.
|
|
5
|
+
return commands.M365GROUP_REPORT_ACTIVITYDETAIL;
|
|
6
6
|
}
|
|
7
7
|
get description() {
|
|
8
8
|
return 'Get details about Microsoft 365 Groups activity by group';
|
|
@@ -11,5 +11,5 @@ class O365GroupReportActivityDetailCommand extends DateAndPeriodBasedReport {
|
|
|
11
11
|
return 'getOffice365GroupsActivityDetail';
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
export default new
|
|
15
|
-
//# sourceMappingURL=
|
|
14
|
+
export default new M365GroupReportActivityDetailCommand();
|
|
15
|
+
//# sourceMappingURL=m365group-report-activitydetail.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import PeriodBasedReport from '../../../base/PeriodBasedReport.js';
|
|
2
2
|
import commands from '../../commands.js';
|
|
3
|
-
class
|
|
3
|
+
class M365GroupReportActivityFileCountsCommand extends PeriodBasedReport {
|
|
4
4
|
get name() {
|
|
5
|
-
return commands.
|
|
5
|
+
return commands.M365GROUP_REPORT_ACTIVITYFILECOUNTS;
|
|
6
6
|
}
|
|
7
7
|
get description() {
|
|
8
8
|
return 'Get the total number of files and how many of them were active across all group sites associated with an Microsoft 365 Group';
|
|
@@ -11,5 +11,5 @@ class O365GroupReportActivityFileCountsCommand extends PeriodBasedReport {
|
|
|
11
11
|
return 'getOffice365GroupsActivityFileCounts';
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
export default new
|
|
15
|
-
//# sourceMappingURL=
|
|
14
|
+
export default new M365GroupReportActivityFileCountsCommand();
|
|
15
|
+
//# sourceMappingURL=m365group-report-activityfilecounts.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import PeriodBasedReport from '../../../base/PeriodBasedReport.js';
|
|
2
2
|
import commands from '../../commands.js';
|
|
3
|
-
class
|
|
3
|
+
class M365GroupReportActivityGroupCountsCommand extends PeriodBasedReport {
|
|
4
4
|
get name() {
|
|
5
|
-
return commands.
|
|
5
|
+
return commands.M365GROUP_REPORT_ACTIVITYGROUPCOUNTS;
|
|
6
6
|
}
|
|
7
7
|
get description() {
|
|
8
8
|
return 'Get the daily total number of groups and how many of them were active based on email conversations, Yammer posts, and SharePoint file activities';
|
|
@@ -11,5 +11,5 @@ class O365GroupReportActivityGroupCountsCommand extends PeriodBasedReport {
|
|
|
11
11
|
return 'getOffice365GroupsActivityGroupCounts';
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
export default new
|
|
15
|
-
//# sourceMappingURL=
|
|
14
|
+
export default new M365GroupReportActivityGroupCountsCommand();
|
|
15
|
+
//# sourceMappingURL=m365group-report-activitygroupcounts.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import PeriodBasedReport from '../../../base/PeriodBasedReport.js';
|
|
2
2
|
import commands from '../../commands.js';
|
|
3
|
-
class
|
|
3
|
+
class M365GroupReportActivityStorageCommand extends PeriodBasedReport {
|
|
4
4
|
get name() {
|
|
5
|
-
return commands.
|
|
5
|
+
return commands.M365GROUP_REPORT_ACTIVITYSTORAGE;
|
|
6
6
|
}
|
|
7
7
|
get description() {
|
|
8
8
|
return 'Get the total storage used across all group mailboxes and group sites';
|
|
@@ -11,5 +11,5 @@ class O365GroupReportActivityStorageCommand extends PeriodBasedReport {
|
|
|
11
11
|
return 'getOffice365GroupsActivityStorage';
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
export default new
|
|
15
|
-
//# sourceMappingURL=
|
|
14
|
+
export default new M365GroupReportActivityStorageCommand();
|
|
15
|
+
//# sourceMappingURL=m365group-report-activitystorage.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 _AadM365GroupSetCommand_instances, _AadM365GroupSetCommand_initTelemetry, _AadM365GroupSetCommand_initOptions, _AadM365GroupSetCommand_initTypes, _AadM365GroupSetCommand_initValidators;
|
|
7
7
|
import { setTimeout } from 'timers/promises';
|
|
8
8
|
import fs from 'fs';
|
|
9
9
|
import path from 'path';
|
|
@@ -11,21 +11,21 @@ import request from '../../../../request.js';
|
|
|
11
11
|
import { validation } from '../../../../utils/validation.js';
|
|
12
12
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
13
13
|
import commands from '../../commands.js';
|
|
14
|
-
class
|
|
14
|
+
class AadM365GroupSetCommand extends GraphCommand {
|
|
15
15
|
get name() {
|
|
16
|
-
return commands.
|
|
16
|
+
return commands.M365GROUP_SET;
|
|
17
17
|
}
|
|
18
18
|
get description() {
|
|
19
19
|
return 'Updates Microsoft 365 Group properties';
|
|
20
20
|
}
|
|
21
21
|
constructor() {
|
|
22
22
|
super();
|
|
23
|
-
|
|
23
|
+
_AadM365GroupSetCommand_instances.add(this);
|
|
24
24
|
this.pollingInterval = 500;
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
27
|
-
__classPrivateFieldGet(this,
|
|
28
|
-
__classPrivateFieldGet(this,
|
|
25
|
+
__classPrivateFieldGet(this, _AadM365GroupSetCommand_instances, "m", _AadM365GroupSetCommand_initTelemetry).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _AadM365GroupSetCommand_instances, "m", _AadM365GroupSetCommand_initOptions).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _AadM365GroupSetCommand_instances, "m", _AadM365GroupSetCommand_initTypes).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _AadM365GroupSetCommand_instances, "m", _AadM365GroupSetCommand_initValidators).call(this);
|
|
29
29
|
}
|
|
30
30
|
async commandAction(logger, args) {
|
|
31
31
|
try {
|
|
@@ -65,7 +65,7 @@ class AadO365GroupSetCommand extends GraphCommand {
|
|
|
65
65
|
},
|
|
66
66
|
data: fs.readFileSync(fullPath)
|
|
67
67
|
};
|
|
68
|
-
await this.setGroupLogo(requestOptions,
|
|
68
|
+
await this.setGroupLogo(requestOptions, AadM365GroupSetCommand.numRepeat, logger);
|
|
69
69
|
}
|
|
70
70
|
else if (this.debug) {
|
|
71
71
|
await logger.logToStderr('logoPath not set. Skipping');
|
|
@@ -135,7 +135,7 @@ class AadO365GroupSetCommand extends GraphCommand {
|
|
|
135
135
|
}
|
|
136
136
|
catch (err) {
|
|
137
137
|
if (--retryLeft > 0) {
|
|
138
|
-
await setTimeout(this.pollingInterval * (
|
|
138
|
+
await setTimeout(this.pollingInterval * (AadM365GroupSetCommand.numRepeat - retryLeft));
|
|
139
139
|
await this.setGroupLogo(requestOptions, retryLeft, logger);
|
|
140
140
|
}
|
|
141
141
|
else {
|
|
@@ -155,7 +155,7 @@ class AadO365GroupSetCommand extends GraphCommand {
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
_AadM365GroupSetCommand_instances = new WeakSet(), _AadM365GroupSetCommand_initTelemetry = function _AadM365GroupSetCommand_initTelemetry() {
|
|
159
159
|
this.telemetry.push((args) => {
|
|
160
160
|
Object.assign(this.telemetryProperties, {
|
|
161
161
|
displayName: typeof args.options.displayName !== 'undefined',
|
|
@@ -166,7 +166,7 @@ _AadO365GroupSetCommand_instances = new WeakSet(), _AadO365GroupSetCommand_initT
|
|
|
166
166
|
logoPath: typeof args.options.logoPath !== 'undefined'
|
|
167
167
|
});
|
|
168
168
|
});
|
|
169
|
-
},
|
|
169
|
+
}, _AadM365GroupSetCommand_initOptions = function _AadM365GroupSetCommand_initOptions() {
|
|
170
170
|
this.options.unshift({
|
|
171
171
|
option: '-i, --id <id>'
|
|
172
172
|
}, {
|
|
@@ -183,9 +183,9 @@ _AadO365GroupSetCommand_instances = new WeakSet(), _AadO365GroupSetCommand_initT
|
|
|
183
183
|
}, {
|
|
184
184
|
option: '-l, --logoPath [logoPath]'
|
|
185
185
|
});
|
|
186
|
-
},
|
|
186
|
+
}, _AadM365GroupSetCommand_initTypes = function _AadM365GroupSetCommand_initTypes() {
|
|
187
187
|
this.types.boolean.push('isPrivate');
|
|
188
|
-
},
|
|
188
|
+
}, _AadM365GroupSetCommand_initValidators = function _AadM365GroupSetCommand_initValidators() {
|
|
189
189
|
this.validators.push(async (args) => {
|
|
190
190
|
if (!args.options.displayName &&
|
|
191
191
|
!args.options.description &&
|
|
@@ -226,6 +226,6 @@ _AadO365GroupSetCommand_instances = new WeakSet(), _AadO365GroupSetCommand_initT
|
|
|
226
226
|
return true;
|
|
227
227
|
});
|
|
228
228
|
};
|
|
229
|
-
|
|
230
|
-
export default new
|
|
231
|
-
//# sourceMappingURL=
|
|
229
|
+
AadM365GroupSetCommand.numRepeat = 15;
|
|
230
|
+
export default new AadM365GroupSetCommand();
|
|
231
|
+
//# sourceMappingURL=m365group-set.js.map
|
package/dist/m365/aad/commands/{o365group/o365group-teamify.js → m365group/m365group-teamify.js}
RENAMED
|
@@ -3,26 +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 _AadM365GroupTeamifyCommand_instances, _AadM365GroupTeamifyCommand_initTelemetry, _AadM365GroupTeamifyCommand_initOptions, _AadM365GroupTeamifyCommand_initValidators, _AadM365GroupTeamifyCommand_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
|
-
class
|
|
12
|
+
class AadM365GroupTeamifyCommand extends GraphCommand {
|
|
13
13
|
get name() {
|
|
14
|
-
return commands.
|
|
14
|
+
return commands.M365GROUP_TEAMIFY;
|
|
15
15
|
}
|
|
16
16
|
get description() {
|
|
17
17
|
return 'Creates a new Microsoft Teams team under existing Microsoft 365 group';
|
|
18
18
|
}
|
|
19
19
|
constructor() {
|
|
20
20
|
super();
|
|
21
|
-
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
21
|
+
_AadM365GroupTeamifyCommand_instances.add(this);
|
|
22
|
+
__classPrivateFieldGet(this, _AadM365GroupTeamifyCommand_instances, "m", _AadM365GroupTeamifyCommand_initTelemetry).call(this);
|
|
23
|
+
__classPrivateFieldGet(this, _AadM365GroupTeamifyCommand_instances, "m", _AadM365GroupTeamifyCommand_initOptions).call(this);
|
|
24
|
+
__classPrivateFieldGet(this, _AadM365GroupTeamifyCommand_instances, "m", _AadM365GroupTeamifyCommand_initValidators).call(this);
|
|
25
|
+
__classPrivateFieldGet(this, _AadM365GroupTeamifyCommand_instances, "m", _AadM365GroupTeamifyCommand_initOptionSets).call(this);
|
|
26
26
|
}
|
|
27
27
|
async getGroupId(args) {
|
|
28
28
|
if (args.options.id) {
|
|
@@ -77,28 +77,28 @@ class AadO365GroupTeamifyCommand extends GraphCommand {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
_AadM365GroupTeamifyCommand_instances = new WeakSet(), _AadM365GroupTeamifyCommand_initTelemetry = function _AadM365GroupTeamifyCommand_initTelemetry() {
|
|
81
81
|
this.telemetry.push((args) => {
|
|
82
82
|
Object.assign(this.telemetryProperties, {
|
|
83
83
|
id: typeof args.options.id !== 'undefined',
|
|
84
84
|
mailNickname: typeof args.options.mailNickname !== 'undefined'
|
|
85
85
|
});
|
|
86
86
|
});
|
|
87
|
-
},
|
|
87
|
+
}, _AadM365GroupTeamifyCommand_initOptions = function _AadM365GroupTeamifyCommand_initOptions() {
|
|
88
88
|
this.options.unshift({
|
|
89
89
|
option: '-i, --id [id]'
|
|
90
90
|
}, {
|
|
91
91
|
option: '--mailNickname [mailNickname]'
|
|
92
92
|
});
|
|
93
|
-
},
|
|
93
|
+
}, _AadM365GroupTeamifyCommand_initValidators = function _AadM365GroupTeamifyCommand_initValidators() {
|
|
94
94
|
this.validators.push(async (args) => {
|
|
95
95
|
if (args.options.id && !validation.isValidGuid(args.options.id)) {
|
|
96
96
|
return `${args.options.id} is not a valid GUID`;
|
|
97
97
|
}
|
|
98
98
|
return true;
|
|
99
99
|
});
|
|
100
|
-
},
|
|
100
|
+
}, _AadM365GroupTeamifyCommand_initOptionSets = function _AadM365GroupTeamifyCommand_initOptionSets() {
|
|
101
101
|
this.optionSets.push({ options: ['id', 'mailNickname'] });
|
|
102
102
|
};
|
|
103
|
-
export default new
|
|
104
|
-
//# sourceMappingURL=
|
|
103
|
+
export default new AadM365GroupTeamifyCommand();
|
|
104
|
+
//# sourceMappingURL=m365group-teamify.js.map
|
package/dist/m365/aad/commands/{o365group/o365group-user-add.js → m365group/m365group-user-add.js}
RENAMED
|
@@ -3,16 +3,16 @@ 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 _AadM365GroupUserAddCommand_instances, _AadM365GroupUserAddCommand_initTelemetry, _AadM365GroupUserAddCommand_initOptions, _AadM365GroupUserAddCommand_initValidators, _AadM365GroupUserAddCommand_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 teamsCommands from '../../../teams/commands.js';
|
|
12
12
|
import commands from '../../commands.js';
|
|
13
|
-
class
|
|
13
|
+
class AadM365GroupUserAddCommand extends GraphCommand {
|
|
14
14
|
get name() {
|
|
15
|
-
return commands.
|
|
15
|
+
return commands.M365GROUP_USER_ADD;
|
|
16
16
|
}
|
|
17
17
|
get description() {
|
|
18
18
|
return 'Adds user to specified Microsoft 365 Group or Microsoft Teams team';
|
|
@@ -22,11 +22,11 @@ class AadO365GroupUserAddCommand extends GraphCommand {
|
|
|
22
22
|
}
|
|
23
23
|
constructor() {
|
|
24
24
|
super();
|
|
25
|
-
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
27
|
-
__classPrivateFieldGet(this,
|
|
28
|
-
__classPrivateFieldGet(this,
|
|
29
|
-
__classPrivateFieldGet(this,
|
|
25
|
+
_AadM365GroupUserAddCommand_instances.add(this);
|
|
26
|
+
__classPrivateFieldGet(this, _AadM365GroupUserAddCommand_instances, "m", _AadM365GroupUserAddCommand_initTelemetry).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _AadM365GroupUserAddCommand_instances, "m", _AadM365GroupUserAddCommand_initOptions).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _AadM365GroupUserAddCommand_instances, "m", _AadM365GroupUserAddCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _AadM365GroupUserAddCommand_instances, "m", _AadM365GroupUserAddCommand_initOptionSets).call(this);
|
|
30
30
|
}
|
|
31
31
|
async commandAction(logger, args) {
|
|
32
32
|
try {
|
|
@@ -55,7 +55,7 @@ class AadO365GroupUserAddCommand extends GraphCommand {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
|
|
58
|
+
_AadM365GroupUserAddCommand_instances = new WeakSet(), _AadM365GroupUserAddCommand_initTelemetry = function _AadM365GroupUserAddCommand_initTelemetry() {
|
|
59
59
|
this.telemetry.push((args) => {
|
|
60
60
|
Object.assign(this.telemetryProperties, {
|
|
61
61
|
role: args.options.role,
|
|
@@ -63,7 +63,7 @@ _AadO365GroupUserAddCommand_instances = new WeakSet(), _AadO365GroupUserAddComma
|
|
|
63
63
|
groupId: typeof args.options.groupId !== 'undefined'
|
|
64
64
|
});
|
|
65
65
|
});
|
|
66
|
-
},
|
|
66
|
+
}, _AadM365GroupUserAddCommand_initOptions = function _AadM365GroupUserAddCommand_initOptions() {
|
|
67
67
|
this.options.unshift({
|
|
68
68
|
option: '-n, --userName <userName>'
|
|
69
69
|
}, {
|
|
@@ -74,7 +74,7 @@ _AadO365GroupUserAddCommand_instances = new WeakSet(), _AadO365GroupUserAddComma
|
|
|
74
74
|
option: '-r, --role [role]',
|
|
75
75
|
autocomplete: ['Owner', 'Member']
|
|
76
76
|
});
|
|
77
|
-
},
|
|
77
|
+
}, _AadM365GroupUserAddCommand_initValidators = function _AadM365GroupUserAddCommand_initValidators() {
|
|
78
78
|
this.validators.push(async (args) => {
|
|
79
79
|
if (args.options.teamId && !validation.isValidGuid(args.options.teamId)) {
|
|
80
80
|
return `${args.options.teamId} is not a valid GUID`;
|
|
@@ -89,8 +89,8 @@ _AadO365GroupUserAddCommand_instances = new WeakSet(), _AadO365GroupUserAddComma
|
|
|
89
89
|
}
|
|
90
90
|
return true;
|
|
91
91
|
});
|
|
92
|
-
},
|
|
92
|
+
}, _AadM365GroupUserAddCommand_initOptionSets = function _AadM365GroupUserAddCommand_initOptionSets() {
|
|
93
93
|
this.optionSets.push({ options: ['groupId', 'teamId'] });
|
|
94
94
|
};
|
|
95
|
-
export default new
|
|
96
|
-
//# sourceMappingURL=
|
|
95
|
+
export default new AadM365GroupUserAddCommand();
|
|
96
|
+
//# sourceMappingURL=m365group-user-add.js.map
|