@pnp/cli-microsoft365 7.0.0-beta.b7c2a8d → 7.0.0-beta.c0afb7b
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 -3
- package/dist/GlobalOptions.js +1 -7
- 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/pa/commands/app/app-permission-list.js +2 -2
- package/dist/m365/pa/commands/app/app-permission-remove.js +3 -3
- package/dist/m365/pa/commands.js +1 -4
- package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.18.0-beta.1.js → doctor-1.18.0-beta.5.js} +1 -1
- package/dist/m365/spfx/commands/project/project-doctor.js +1 -1
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.2.js +1 -1
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.18.0-beta.1.js → upgrade-1.18.0-beta.5.js} +26 -26
- package/dist/m365/spfx/commands/project/project-upgrade.js +1 -1
- package/dist/m365/spfx/commands/spfx-doctor.js +3 -3
- package/dist/m365/spo/commands/app/SpoAppBaseCommand.js +27 -26
- package/dist/m365/spo/commands/app/app-add.js +9 -9
- package/dist/m365/spo/commands/file/file-copy.js +1 -1
- package/dist/m365/spo/commands/file/file-move.js +73 -97
- package/dist/m365/spo/commands/folder/folder-copy.js +89 -45
- package/dist/m365/spo/commands/folder/folder-move.js +89 -47
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +32 -3
- package/dist/m365/spo/commands/page/clientsidepages.js +1 -81
- package/dist/m365/spo/commands/propertybag/propertybag-base.js +63 -59
- package/dist/m365/spo/commands/propertybag/propertybag-remove.js +28 -31
- package/dist/m365/spo/commands/site/FlowsPolicy.js +7 -0
- package/dist/m365/spo/commands/site/site-ensure.js +3 -3
- package/dist/m365/spo/commands/site/site-hubsite-disconnect.js +22 -22
- package/dist/m365/spo/commands/site/site-list.js +27 -43
- package/dist/m365/spo/commands/site/site-set.js +60 -49
- package/dist/m365/spo/commands/theme/theme-list.js +1 -9
- package/dist/m365/spo/commands/theme/theme-remove.js +24 -24
- package/dist/m365/spo/commands/theme/theme-set.js +0 -1
- package/dist/m365/spo/commands/user/user-remove.js +27 -27
- package/dist/m365/spo/commands/web/web-reindex.js +35 -42
- package/dist/m365/spo/commands/web/web-remove.js +21 -21
- package/dist/m365/spo/commands/web/web-roleassignment-add.js +16 -31
- package/dist/m365/spo/commands/web/web-roleassignment-remove.js +33 -44
- package/dist/m365/spo/commands/web/web-roleinheritance-break.js +18 -18
- package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +19 -19
- package/dist/m365/yammer/commands/message/message-like-set.js +27 -28
- package/dist/m365/yammer/commands/message/message-list.js +62 -81
- package/dist/m365/yammer/commands/message/message-remove.js +18 -18
- package/dist/m365/yammer/commands/yammer-search.js +53 -69
- package/dist/utils/spo.js +12 -53
- package/dist/utils/validation.js +0 -3
- 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/pa/app/app-permission-remove.mdx +1 -1
- package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-move.mdx +36 -18
- package/docs/docs/cmd/spo/folder/folder-copy.mdx +39 -12
- package/docs/docs/cmd/spo/folder/folder-move.mdx +40 -13
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.mdx +14 -1
- package/docs/docs/cmd/spo/site/site-add.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-list.mdx +3 -78
- package/docs/docs/cmd/teams/team/team-add.mdx +1 -1
- package/npm-shrinkwrap.json +178 -1304
- package/package.json +5 -7
- package/dist/m365/pa/cds-project-mutator.js +0 -91
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/dataset-template/generated/ManifestTypes.d.ts +0 -11
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/dataset-template/template_ControlManifest.Input.xml +0 -31
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/dataset-template/template_index.ts +0 -51
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/field-template/generated/ManifestTypes.d.ts +0 -12
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/field-template/template_ControlManifest.Input.xml +0 -37
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/field-template/template_index.ts +0 -48
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/index.ts +0 -0
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-dataset-template/template_ControlManifest.Input.xml +0 -31
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-dataset-template/template_index.tsx +0 -58
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-field-template/template_ControlManifest.Input.xml +0 -37
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-field-template/template_index.tsx +0 -55
- package/dist/m365/pa/commands/pcf/pcf-init/assets/package.json +0 -19
- package/dist/m365/pa/commands/pcf/pcf-init/assets/pcfconfig.json +0 -3
- package/dist/m365/pa/commands/pcf/pcf-init/assets/template_.gitignore +0 -14
- package/dist/m365/pa/commands/pcf/pcf-init/assets/template_pcfprojecttype.pcfproj +0 -45
- package/dist/m365/pa/commands/pcf/pcf-init/pcf-init-variables.js +0 -2
- package/dist/m365/pa/commands/pcf/pcf-init.js +0 -120
- package/dist/m365/pa/commands/solution/solution-init/assets/Other/Customizations.xml +0 -18
- package/dist/m365/pa/commands/solution/solution-init/assets/Other/Relationships.xml +0 -2
- package/dist/m365/pa/commands/solution/solution-init/assets/Other/template_Solution.xml +0 -94
- package/dist/m365/pa/commands/solution/solution-init/assets/template_.gitignore +0 -2
- package/dist/m365/pa/commands/solution/solution-init/assets/template_solutionprojecttype.cdsproj +0 -44
- package/dist/m365/pa/commands/solution/solution-init/solution-init-variables.js +0 -2
- package/dist/m365/pa/commands/solution/solution-init.js +0 -126
- package/dist/m365/pa/commands/solution/solution-reference-add.js +0 -88
- package/dist/m365/pa/template-instantiator.js +0 -57
- package/docs/docs/cmd/pa/pcf/pcf-init.mdx +0 -56
- package/docs/docs/cmd/pa/solution/solution-init.mdx +0 -46
- package/docs/docs/cmd/pa/solution/solution-reference-add.mdx +0 -42
- /package/dist/m365/aad/commands/{o365group → m365group}/GroupExtended.js +0 -0
package/.eslintrc.cjs
CHANGED
|
@@ -57,13 +57,13 @@ const dictionary = [
|
|
|
57
57
|
'member',
|
|
58
58
|
'messaging',
|
|
59
59
|
'model',
|
|
60
|
+
'm365',
|
|
60
61
|
'news',
|
|
61
62
|
'oauth2',
|
|
62
63
|
'office365',
|
|
63
64
|
'one',
|
|
64
65
|
'org',
|
|
65
66
|
'owner',
|
|
66
|
-
'o365',
|
|
67
67
|
'permission',
|
|
68
68
|
'place',
|
|
69
69
|
'policy',
|
|
@@ -128,8 +128,6 @@ module.exports = {
|
|
|
128
128
|
"mocha"
|
|
129
129
|
],
|
|
130
130
|
"ignorePatterns": [
|
|
131
|
-
"**/pcf-init/assets/**",
|
|
132
|
-
"**/solution-init/assets/**",
|
|
133
131
|
"**/package-generate/assets/**",
|
|
134
132
|
"**/test-projects/**",
|
|
135
133
|
"clientsidepages.ts",
|
package/dist/GlobalOptions.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
(function (Output) {
|
|
3
|
-
Output[Output["text"] = 0] = "text";
|
|
4
|
-
Output[Output["json"] = 1] = "json";
|
|
5
|
-
Output[Output["csv"] = 2] = "csv";
|
|
6
|
-
Output[Output["md"] = 3] = "md";
|
|
7
|
-
})(Output || (Output = {}));
|
|
1
|
+
export {};
|
|
8
2
|
//# sourceMappingURL=GlobalOptions.js.map
|
package/dist/cli/Cli.js
CHANGED
|
@@ -761,8 +761,9 @@ export class Cli {
|
|
|
761
761
|
}
|
|
762
762
|
static log(message, ...optionalParams) {
|
|
763
763
|
const cli = Cli.getInstance();
|
|
764
|
+
const spinnerSpinning = cli.spinner.isSpinning;
|
|
764
765
|
/* c8 ignore next 3 */
|
|
765
|
-
if (
|
|
766
|
+
if (spinnerSpinning) {
|
|
766
767
|
cli.spinner.stop();
|
|
767
768
|
}
|
|
768
769
|
if (message) {
|
|
@@ -771,15 +772,31 @@ export class Cli {
|
|
|
771
772
|
else {
|
|
772
773
|
console.log();
|
|
773
774
|
}
|
|
775
|
+
// Restart the spinner if it was running before the log
|
|
776
|
+
/* c8 ignore next 3 */
|
|
777
|
+
if (spinnerSpinning) {
|
|
778
|
+
cli.spinner.start();
|
|
779
|
+
}
|
|
774
780
|
}
|
|
775
781
|
static async error(message, ...optionalParams) {
|
|
776
|
-
const
|
|
782
|
+
const cli = Cli.getInstance();
|
|
783
|
+
const spinnerSpinning = cli.spinner.isSpinning;
|
|
784
|
+
/* c8 ignore next 3 */
|
|
785
|
+
if (spinnerSpinning) {
|
|
786
|
+
cli.spinner.stop();
|
|
787
|
+
}
|
|
788
|
+
const errorOutput = cli.getSettingWithDefaultValue(settingsNames.errorOutput, 'stderr');
|
|
777
789
|
if (errorOutput === 'stdout') {
|
|
778
790
|
console.log(message, ...optionalParams);
|
|
779
791
|
}
|
|
780
792
|
else {
|
|
781
793
|
console.error(message, ...optionalParams);
|
|
782
794
|
}
|
|
795
|
+
// Restart the spinner if it was running before the log
|
|
796
|
+
/* c8 ignore next 3 */
|
|
797
|
+
if (spinnerSpinning) {
|
|
798
|
+
cli.spinner.start();
|
|
799
|
+
}
|
|
783
800
|
}
|
|
784
801
|
static async prompt(options, answers) {
|
|
785
802
|
const inquirer = await import('inquirer');
|
|
@@ -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 _AadM365GroupAddCommand_instances, _AadM365GroupAddCommand_initTelemetry, _AadM365GroupAddCommand_initOptions, _AadM365GroupAddCommand_initTypes, _AadM365GroupAddCommand_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 { formatting } from '../../../../utils/formatting.js';
|
|
12
12
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
13
13
|
import commands from '../../commands.js';
|
|
14
|
-
class
|
|
14
|
+
class AadM365GroupAddCommand extends GraphCommand {
|
|
15
15
|
get name() {
|
|
16
|
-
return commands.
|
|
16
|
+
return commands.M365GROUP_ADD;
|
|
17
17
|
}
|
|
18
18
|
get description() {
|
|
19
19
|
return 'Creates a Microsoft 365 Group';
|
|
20
20
|
}
|
|
21
21
|
constructor() {
|
|
22
22
|
super();
|
|
23
|
-
|
|
23
|
+
_AadM365GroupAddCommand_instances.add(this);
|
|
24
24
|
this.pollingInterval = 500;
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
27
|
-
__classPrivateFieldGet(this,
|
|
28
|
-
__classPrivateFieldGet(this,
|
|
25
|
+
__classPrivateFieldGet(this, _AadM365GroupAddCommand_instances, "m", _AadM365GroupAddCommand_initTelemetry).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _AadM365GroupAddCommand_instances, "m", _AadM365GroupAddCommand_initOptions).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _AadM365GroupAddCommand_instances, "m", _AadM365GroupAddCommand_initTypes).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _AadM365GroupAddCommand_instances, "m", _AadM365GroupAddCommand_initValidators).call(this);
|
|
29
29
|
}
|
|
30
30
|
async commandAction(logger, args) {
|
|
31
31
|
let group;
|
|
@@ -87,7 +87,7 @@ class AadO365GroupAddCommand extends GraphCommand {
|
|
|
87
87
|
},
|
|
88
88
|
data: fs.readFileSync(fullPath)
|
|
89
89
|
};
|
|
90
|
-
await this.setGroupLogo(requestOptionsPhoto,
|
|
90
|
+
await this.setGroupLogo(requestOptionsPhoto, AadM365GroupAddCommand.numRepeat, logger);
|
|
91
91
|
}
|
|
92
92
|
if (ownerIds.length !== 0) {
|
|
93
93
|
await Promise.all(ownerIds.map(ownerId => request.post({
|
|
@@ -159,7 +159,7 @@ class AadO365GroupAddCommand extends GraphCommand {
|
|
|
159
159
|
}
|
|
160
160
|
catch (err) {
|
|
161
161
|
if (--retryLeft > 0) {
|
|
162
|
-
await setTimeout(this.pollingInterval * (
|
|
162
|
+
await setTimeout(this.pollingInterval * (AadM365GroupAddCommand.numRepeat - retryLeft));
|
|
163
163
|
await this.setGroupLogo(requestOptions, retryLeft, logger);
|
|
164
164
|
}
|
|
165
165
|
else {
|
|
@@ -179,7 +179,7 @@ class AadO365GroupAddCommand extends GraphCommand {
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
|
|
182
|
+
_AadM365GroupAddCommand_instances = new WeakSet(), _AadM365GroupAddCommand_initTelemetry = function _AadM365GroupAddCommand_initTelemetry() {
|
|
183
183
|
this.telemetry.push((args) => {
|
|
184
184
|
Object.assign(this.telemetryProperties, {
|
|
185
185
|
owners: typeof args.options.owners !== 'undefined',
|
|
@@ -192,7 +192,7 @@ _AadO365GroupAddCommand_instances = new WeakSet(), _AadO365GroupAddCommand_initT
|
|
|
192
192
|
welcomeEmailDisabled: args.options.welcomeEmailDisabled
|
|
193
193
|
});
|
|
194
194
|
});
|
|
195
|
-
},
|
|
195
|
+
}, _AadM365GroupAddCommand_initOptions = function _AadM365GroupAddCommand_initOptions() {
|
|
196
196
|
this.options.unshift({
|
|
197
197
|
option: '-n, --displayName <displayName>'
|
|
198
198
|
}, {
|
|
@@ -220,9 +220,9 @@ _AadO365GroupAddCommand_instances = new WeakSet(), _AadO365GroupAddCommand_initT
|
|
|
220
220
|
}, {
|
|
221
221
|
option: '-l, --logoPath [logoPath]'
|
|
222
222
|
});
|
|
223
|
-
},
|
|
223
|
+
}, _AadM365GroupAddCommand_initTypes = function _AadM365GroupAddCommand_initTypes() {
|
|
224
224
|
this.types.boolean.push('allowMembersToPost', 'hideGroupInOutlook', 'subscribeNewGroupMembers', 'welcomeEmailDisabled');
|
|
225
|
-
},
|
|
225
|
+
}, _AadM365GroupAddCommand_initValidators = function _AadM365GroupAddCommand_initValidators() {
|
|
226
226
|
this.validators.push(async (args) => {
|
|
227
227
|
if (args.options.owners) {
|
|
228
228
|
const owners = args.options.owners.split(',').map(o => o.trim());
|
|
@@ -252,6 +252,6 @@ _AadO365GroupAddCommand_instances = new WeakSet(), _AadO365GroupAddCommand_initT
|
|
|
252
252
|
return true;
|
|
253
253
|
});
|
|
254
254
|
};
|
|
255
|
-
|
|
256
|
-
export default new
|
|
257
|
-
//# sourceMappingURL=
|
|
255
|
+
AadM365GroupAddCommand.numRepeat = 15;
|
|
256
|
+
export default new AadM365GroupAddCommand();
|
|
257
|
+
//# sourceMappingURL=m365group-add.js.map
|
|
@@ -3,14 +3,14 @@ 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 _AadM365GroupConversationListCommand_instances, _AadM365GroupConversationListCommand_initOptions, _AadM365GroupConversationListCommand_initValidators;
|
|
7
7
|
import { odata } from '../../../../utils/odata.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 AadM365GroupConversationListCommand extends GraphCommand {
|
|
12
12
|
get name() {
|
|
13
|
-
return commands.
|
|
13
|
+
return commands.M365GROUP_CONVERSATION_LIST;
|
|
14
14
|
}
|
|
15
15
|
get description() {
|
|
16
16
|
return 'Lists conversations for the specified Microsoft 365 group';
|
|
@@ -20,9 +20,9 @@ class AadO365GroupConversationListCommand extends GraphCommand {
|
|
|
20
20
|
}
|
|
21
21
|
constructor() {
|
|
22
22
|
super();
|
|
23
|
-
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
23
|
+
_AadM365GroupConversationListCommand_instances.add(this);
|
|
24
|
+
__classPrivateFieldGet(this, _AadM365GroupConversationListCommand_instances, "m", _AadM365GroupConversationListCommand_initOptions).call(this);
|
|
25
|
+
__classPrivateFieldGet(this, _AadM365GroupConversationListCommand_instances, "m", _AadM365GroupConversationListCommand_initValidators).call(this);
|
|
26
26
|
}
|
|
27
27
|
async commandAction(logger, args) {
|
|
28
28
|
try {
|
|
@@ -34,11 +34,11 @@ class AadO365GroupConversationListCommand extends GraphCommand {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
_AadM365GroupConversationListCommand_instances = new WeakSet(), _AadM365GroupConversationListCommand_initOptions = function _AadM365GroupConversationListCommand_initOptions() {
|
|
38
38
|
this.options.unshift({
|
|
39
39
|
option: '-i, --groupId <groupId>'
|
|
40
40
|
});
|
|
41
|
-
},
|
|
41
|
+
}, _AadM365GroupConversationListCommand_initValidators = function _AadM365GroupConversationListCommand_initValidators() {
|
|
42
42
|
this.validators.push(async (args) => {
|
|
43
43
|
if (!validation.isValidGuid(args.options.groupId)) {
|
|
44
44
|
return `${args.options.groupId} is not a valid GUID`;
|
|
@@ -46,5 +46,5 @@ _AadO365GroupConversationListCommand_instances = new WeakSet(), _AadO365GroupCon
|
|
|
46
46
|
return true;
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
|
-
export default new
|
|
50
|
-
//# sourceMappingURL=
|
|
49
|
+
export default new AadM365GroupConversationListCommand();
|
|
50
|
+
//# sourceMappingURL=m365group-conversation-list.js.map
|
|
@@ -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 _AadM365GroupConversationPostListCommand_instances, _AadM365GroupConversationPostListCommand_initTelemetry, _AadM365GroupConversationPostListCommand_initOptions, _AadM365GroupConversationPostListCommand_initValidators, _AadM365GroupConversationPostListCommand_initOptionSets;
|
|
7
7
|
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
9
|
import { odata } from '../../../../utils/odata.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 AadM365GroupConversationPostListCommand extends GraphCommand {
|
|
14
14
|
get name() {
|
|
15
|
-
return commands.
|
|
15
|
+
return commands.M365GROUP_CONVERSATION_POST_LIST;
|
|
16
16
|
}
|
|
17
17
|
get description() {
|
|
18
18
|
return 'Lists conversation posts of a Microsoft 365 group';
|
|
19
19
|
}
|
|
20
20
|
constructor() {
|
|
21
21
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
22
|
+
_AadM365GroupConversationPostListCommand_instances.add(this);
|
|
23
|
+
__classPrivateFieldGet(this, _AadM365GroupConversationPostListCommand_instances, "m", _AadM365GroupConversationPostListCommand_initTelemetry).call(this);
|
|
24
|
+
__classPrivateFieldGet(this, _AadM365GroupConversationPostListCommand_instances, "m", _AadM365GroupConversationPostListCommand_initOptions).call(this);
|
|
25
|
+
__classPrivateFieldGet(this, _AadM365GroupConversationPostListCommand_instances, "m", _AadM365GroupConversationPostListCommand_initValidators).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _AadM365GroupConversationPostListCommand_instances, "m", _AadM365GroupConversationPostListCommand_initOptionSets).call(this);
|
|
27
27
|
}
|
|
28
28
|
defaultProperties() {
|
|
29
29
|
return ['receivedDateTime', 'id'];
|
|
@@ -46,14 +46,14 @@ class AadO365GroupConversationPostListCommand extends GraphCommand {
|
|
|
46
46
|
return group.id;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
_AadM365GroupConversationPostListCommand_instances = new WeakSet(), _AadM365GroupConversationPostListCommand_initTelemetry = function _AadM365GroupConversationPostListCommand_initTelemetry() {
|
|
50
50
|
this.telemetry.push((args) => {
|
|
51
51
|
Object.assign(this.telemetryProperties, {
|
|
52
52
|
groupId: typeof args.options.groupId !== 'undefined',
|
|
53
53
|
groupDisplayName: typeof args.options.groupDisplayName !== 'undefined'
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
|
-
},
|
|
56
|
+
}, _AadM365GroupConversationPostListCommand_initOptions = function _AadM365GroupConversationPostListCommand_initOptions() {
|
|
57
57
|
this.options.unshift({
|
|
58
58
|
option: '-i, --groupId [groupId]'
|
|
59
59
|
}, {
|
|
@@ -61,15 +61,15 @@ _AadO365GroupConversationPostListCommand_instances = new WeakSet(), _AadO365Grou
|
|
|
61
61
|
}, {
|
|
62
62
|
option: '-t, --threadId <threadId>'
|
|
63
63
|
});
|
|
64
|
-
},
|
|
64
|
+
}, _AadM365GroupConversationPostListCommand_initValidators = function _AadM365GroupConversationPostListCommand_initValidators() {
|
|
65
65
|
this.validators.push(async (args) => {
|
|
66
66
|
if (args.options.groupId && !validation.isValidGuid(args.options.groupId)) {
|
|
67
67
|
return `${args.options.groupId} is not a valid GUID`;
|
|
68
68
|
}
|
|
69
69
|
return true;
|
|
70
70
|
});
|
|
71
|
-
},
|
|
71
|
+
}, _AadM365GroupConversationPostListCommand_initOptionSets = function _AadM365GroupConversationPostListCommand_initOptionSets() {
|
|
72
72
|
this.optionSets.push({ options: ['groupId', 'groupDisplayName'] });
|
|
73
73
|
};
|
|
74
|
-
export default new
|
|
75
|
-
//# sourceMappingURL=
|
|
74
|
+
export default new AadM365GroupConversationPostListCommand();
|
|
75
|
+
//# sourceMappingURL=m365group-conversation-post-list.js.map
|
|
@@ -3,29 +3,32 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var
|
|
6
|
+
var _AadM365GroupGetCommand_instances, _AadM365GroupGetCommand_initOptions, _AadM365GroupGetCommand_initValidators;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { aadGroup } from '../../../../utils/aadGroup.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 AadM365GroupGetCommand extends GraphCommand {
|
|
13
13
|
get name() {
|
|
14
|
-
return commands.
|
|
14
|
+
return commands.M365GROUP_GET;
|
|
15
15
|
}
|
|
16
16
|
get description() {
|
|
17
17
|
return 'Gets information about the specified Microsoft 365 Group or Microsoft Teams team';
|
|
18
18
|
}
|
|
19
19
|
constructor() {
|
|
20
20
|
super();
|
|
21
|
-
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
21
|
+
_AadM365GroupGetCommand_instances.add(this);
|
|
22
|
+
__classPrivateFieldGet(this, _AadM365GroupGetCommand_instances, "m", _AadM365GroupGetCommand_initOptions).call(this);
|
|
23
|
+
__classPrivateFieldGet(this, _AadM365GroupGetCommand_instances, "m", _AadM365GroupGetCommand_initValidators).call(this);
|
|
24
24
|
}
|
|
25
25
|
async commandAction(logger, args) {
|
|
26
26
|
let group;
|
|
27
27
|
try {
|
|
28
28
|
group = await aadGroup.getGroupById(args.options.id);
|
|
29
|
+
if (!group.groupTypes.some(type => type === 'Unified')) {
|
|
30
|
+
throw `Specified group with id '${args.options.id}' is not a Microsoft 365 group.`;
|
|
31
|
+
}
|
|
29
32
|
if (args.options.includeSiteUrl) {
|
|
30
33
|
const requestOptions = {
|
|
31
34
|
url: `${this.resource}/v1.0/groups/${group.id}/drive?$select=webUrl`,
|
|
@@ -44,13 +47,13 @@ class AadO365GroupGetCommand extends GraphCommand {
|
|
|
44
47
|
}
|
|
45
48
|
}
|
|
46
49
|
}
|
|
47
|
-
|
|
50
|
+
_AadM365GroupGetCommand_instances = new WeakSet(), _AadM365GroupGetCommand_initOptions = function _AadM365GroupGetCommand_initOptions() {
|
|
48
51
|
this.options.unshift({
|
|
49
52
|
option: '-i, --id <id>'
|
|
50
53
|
}, {
|
|
51
54
|
option: '--includeSiteUrl'
|
|
52
55
|
});
|
|
53
|
-
},
|
|
56
|
+
}, _AadM365GroupGetCommand_initValidators = function _AadM365GroupGetCommand_initValidators() {
|
|
54
57
|
this.validators.push(async (args) => {
|
|
55
58
|
if (!validation.isValidGuid(args.options.id)) {
|
|
56
59
|
return `${args.options.id} is not a valid GUID`;
|
|
@@ -58,5 +61,5 @@ _AadO365GroupGetCommand_instances = new WeakSet(), _AadO365GroupGetCommand_initO
|
|
|
58
61
|
return true;
|
|
59
62
|
});
|
|
60
63
|
};
|
|
61
|
-
export default new
|
|
62
|
-
//# sourceMappingURL=
|
|
64
|
+
export default new AadM365GroupGetCommand();
|
|
65
|
+
//# sourceMappingURL=m365group-get.js.map
|
|
@@ -3,28 +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 _AadM365GroupListCommand_instances, _AadM365GroupListCommand_initTelemetry, _AadM365GroupListCommand_initOptions;
|
|
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
|
-
class
|
|
12
|
+
class AadM365GroupListCommand extends GraphCommand {
|
|
13
13
|
get name() {
|
|
14
|
-
return commands.
|
|
14
|
+
return commands.M365GROUP_LIST;
|
|
15
15
|
}
|
|
16
16
|
get description() {
|
|
17
17
|
return 'Lists Microsoft 365 Groups in the current tenant';
|
|
18
18
|
}
|
|
19
19
|
constructor() {
|
|
20
20
|
super();
|
|
21
|
-
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this, _AadO365GroupListCommand_instances, "m", _AadO365GroupListCommand_initValidators).call(this);
|
|
21
|
+
_AadM365GroupListCommand_instances.add(this);
|
|
22
|
+
__classPrivateFieldGet(this, _AadM365GroupListCommand_instances, "m", _AadM365GroupListCommand_initTelemetry).call(this);
|
|
23
|
+
__classPrivateFieldGet(this, _AadM365GroupListCommand_instances, "m", _AadM365GroupListCommand_initOptions).call(this);
|
|
25
24
|
}
|
|
26
25
|
defaultProperties() {
|
|
27
|
-
return ['id', 'displayName', 'mailNickname', '
|
|
26
|
+
return ['id', 'displayName', 'mailNickname', 'siteUrl'];
|
|
28
27
|
}
|
|
29
28
|
async commandAction(logger, args) {
|
|
30
29
|
const groupFilter = `?$filter=groupTypes/any(c:c+eq+'Unified')`;
|
|
@@ -32,13 +31,9 @@ class AadO365GroupListCommand extends GraphCommand {
|
|
|
32
31
|
const mailNicknameFilter = args.options.mailNickname ? ` and startswith(MailNickname,'${formatting.encodeQueryParameter(args.options.mailNickname)}')` : '';
|
|
33
32
|
const expandOwners = args.options.orphaned ? '&$expand=owners' : '';
|
|
34
33
|
const topCount = '&$top=100';
|
|
35
|
-
let endpoint = `${this.resource}/v1.0/groups${groupFilter}${displayNameFilter}${mailNicknameFilter}${expandOwners}${topCount}`;
|
|
36
|
-
if (args.options.deleted) {
|
|
37
|
-
endpoint = `${this.resource}/v1.0/directory/deletedItems/Microsoft.Graph.Group${groupFilter}${displayNameFilter}${mailNicknameFilter}${topCount}`;
|
|
38
|
-
}
|
|
39
34
|
try {
|
|
40
35
|
let groups = [];
|
|
41
|
-
groups = await odata.getAllItems(
|
|
36
|
+
groups = await odata.getAllItems(`${this.resource}/v1.0/groups${groupFilter}${displayNameFilter}${mailNicknameFilter}${expandOwners}${topCount}`);
|
|
42
37
|
if (args.options.orphaned) {
|
|
43
38
|
const orphanedGroups = [];
|
|
44
39
|
groups.forEach((group) => {
|
|
@@ -81,35 +76,25 @@ class AadO365GroupListCommand extends GraphCommand {
|
|
|
81
76
|
};
|
|
82
77
|
}
|
|
83
78
|
}
|
|
84
|
-
|
|
79
|
+
_AadM365GroupListCommand_instances = new WeakSet(), _AadM365GroupListCommand_initTelemetry = function _AadM365GroupListCommand_initTelemetry() {
|
|
85
80
|
this.telemetry.push((args) => {
|
|
86
81
|
Object.assign(this.telemetryProperties, {
|
|
87
82
|
displayName: typeof args.options.displayName !== 'undefined',
|
|
88
83
|
mailNickname: typeof args.options.mailNickname !== 'undefined',
|
|
89
84
|
includeSiteUrl: args.options.includeSiteUrl,
|
|
90
|
-
|
|
91
|
-
orphaned: args.options.orphaned
|
|
85
|
+
orphaned: !!args.options.orphaned
|
|
92
86
|
});
|
|
93
87
|
});
|
|
94
|
-
},
|
|
88
|
+
}, _AadM365GroupListCommand_initOptions = function _AadM365GroupListCommand_initOptions() {
|
|
95
89
|
this.options.unshift({
|
|
96
90
|
option: '-d, --displayName [displayName]'
|
|
97
91
|
}, {
|
|
98
92
|
option: '-m, --mailNickname [displayName]'
|
|
99
93
|
}, {
|
|
100
94
|
option: '--includeSiteUrl'
|
|
101
|
-
}, {
|
|
102
|
-
option: '--deleted'
|
|
103
95
|
}, {
|
|
104
96
|
option: '--orphaned'
|
|
105
97
|
});
|
|
106
|
-
}, _AadO365GroupListCommand_initValidators = function _AadO365GroupListCommand_initValidators() {
|
|
107
|
-
this.validators.push(async (args) => {
|
|
108
|
-
if (args.options.deleted && args.options.includeSiteUrl) {
|
|
109
|
-
return 'You can\'t retrieve site URLs of deleted Microsoft 365 Groups';
|
|
110
|
-
}
|
|
111
|
-
return true;
|
|
112
|
-
});
|
|
113
98
|
};
|
|
114
|
-
export default new
|
|
115
|
-
//# sourceMappingURL=
|
|
99
|
+
export default new AadM365GroupListCommand();
|
|
100
|
+
//# sourceMappingURL=m365group-list.js.map
|
|
@@ -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 _AadM365GroupRecycleBinItemClearCommand_instances, _AadM365GroupRecycleBinItemClearCommand_initTelemetry, _AadM365GroupRecycleBinItemClearCommand_initOptions;
|
|
7
7
|
import { Cli } from '../../../../cli/Cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { odata } from '../../../../utils/odata.js';
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
12
|
-
class
|
|
12
|
+
class AadM365GroupRecycleBinItemClearCommand extends GraphCommand {
|
|
13
13
|
get name() {
|
|
14
|
-
return commands.
|
|
14
|
+
return commands.M365GROUP_RECYCLEBINITEM_CLEAR;
|
|
15
15
|
}
|
|
16
16
|
get description() {
|
|
17
|
-
return 'Clears all
|
|
17
|
+
return 'Clears all M365 Groups from recycle bin.';
|
|
18
18
|
}
|
|
19
19
|
constructor() {
|
|
20
20
|
super();
|
|
21
|
-
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
21
|
+
_AadM365GroupRecycleBinItemClearCommand_instances.add(this);
|
|
22
|
+
__classPrivateFieldGet(this, _AadM365GroupRecycleBinItemClearCommand_instances, "m", _AadM365GroupRecycleBinItemClearCommand_initTelemetry).call(this);
|
|
23
|
+
__classPrivateFieldGet(this, _AadM365GroupRecycleBinItemClearCommand_instances, "m", _AadM365GroupRecycleBinItemClearCommand_initOptions).call(this);
|
|
24
24
|
}
|
|
25
25
|
async commandAction(logger, args) {
|
|
26
|
-
const
|
|
26
|
+
const clearM365GroupRecycleBinItems = async () => {
|
|
27
27
|
try {
|
|
28
28
|
await this.processRecycleBinItemsClear();
|
|
29
29
|
}
|
|
@@ -32,17 +32,17 @@ class AadO365GroupRecycleBinItemClearCommand extends GraphCommand {
|
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
if (args.options.force) {
|
|
35
|
-
await
|
|
35
|
+
await clearM365GroupRecycleBinItems();
|
|
36
36
|
}
|
|
37
37
|
else {
|
|
38
38
|
const response = await Cli.prompt({
|
|
39
39
|
type: 'confirm',
|
|
40
40
|
name: 'continue',
|
|
41
41
|
default: false,
|
|
42
|
-
message: `Are you sure you want to clear all
|
|
42
|
+
message: `Are you sure you want to clear all M365 Groups from recycle bin ?`
|
|
43
43
|
});
|
|
44
44
|
if (response.continue) {
|
|
45
|
-
await
|
|
45
|
+
await clearM365GroupRecycleBinItems();
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -67,16 +67,16 @@ class AadO365GroupRecycleBinItemClearCommand extends GraphCommand {
|
|
|
67
67
|
await Promise.all(deletePromises);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
_AadM365GroupRecycleBinItemClearCommand_instances = new WeakSet(), _AadM365GroupRecycleBinItemClearCommand_initTelemetry = function _AadM365GroupRecycleBinItemClearCommand_initTelemetry() {
|
|
71
71
|
this.telemetry.push((args) => {
|
|
72
72
|
Object.assign(this.telemetryProperties, {
|
|
73
73
|
force: typeof args.options.force !== 'undefined'
|
|
74
74
|
});
|
|
75
75
|
});
|
|
76
|
-
},
|
|
76
|
+
}, _AadM365GroupRecycleBinItemClearCommand_initOptions = function _AadM365GroupRecycleBinItemClearCommand_initOptions() {
|
|
77
77
|
this.options.unshift({
|
|
78
78
|
option: '-f, --force'
|
|
79
79
|
});
|
|
80
80
|
};
|
|
81
|
-
export default new
|
|
82
|
-
//# sourceMappingURL=
|
|
81
|
+
export default new AadM365GroupRecycleBinItemClearCommand();
|
|
82
|
+
//# sourceMappingURL=m365group-recyclebinitem-clear.js.map
|
|
@@ -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 _AadM365GroupRecycleBinItemListCommand_instances, _AadM365GroupRecycleBinItemListCommand_initTelemetry, _AadM365GroupRecycleBinItemListCommand_initOptions;
|
|
7
7
|
import { formatting } from '../../../../utils/formatting.js';
|
|
8
8
|
import { odata } from '../../../../utils/odata.js';
|
|
9
9
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
10
10
|
import commands from '../../commands.js';
|
|
11
|
-
class
|
|
11
|
+
class AadM365GroupRecycleBinItemListCommand extends GraphCommand {
|
|
12
12
|
get name() {
|
|
13
|
-
return commands.
|
|
13
|
+
return commands.M365GROUP_RECYCLEBINITEM_LIST;
|
|
14
14
|
}
|
|
15
15
|
get description() {
|
|
16
16
|
return 'Lists Microsoft 365 Groups deleted in the current tenant';
|
|
17
17
|
}
|
|
18
18
|
constructor() {
|
|
19
19
|
super();
|
|
20
|
-
|
|
21
|
-
__classPrivateFieldGet(this,
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
20
|
+
_AadM365GroupRecycleBinItemListCommand_instances.add(this);
|
|
21
|
+
__classPrivateFieldGet(this, _AadM365GroupRecycleBinItemListCommand_instances, "m", _AadM365GroupRecycleBinItemListCommand_initTelemetry).call(this);
|
|
22
|
+
__classPrivateFieldGet(this, _AadM365GroupRecycleBinItemListCommand_instances, "m", _AadM365GroupRecycleBinItemListCommand_initOptions).call(this);
|
|
23
23
|
}
|
|
24
24
|
defaultProperties() {
|
|
25
25
|
return ['id', 'displayName', 'mailNickname'];
|
|
@@ -39,19 +39,19 @@ class AadO365GroupRecycleBinItemListCommand extends GraphCommand {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
_AadM365GroupRecycleBinItemListCommand_instances = new WeakSet(), _AadM365GroupRecycleBinItemListCommand_initTelemetry = function _AadM365GroupRecycleBinItemListCommand_initTelemetry() {
|
|
43
43
|
this.telemetry.push((args) => {
|
|
44
44
|
Object.assign(this.telemetryProperties, {
|
|
45
45
|
groupDisplayName: typeof args.options.groupDisplayName !== 'undefined',
|
|
46
46
|
groupMailNickname: typeof args.options.groupMailNickname !== 'undefined'
|
|
47
47
|
});
|
|
48
48
|
});
|
|
49
|
-
},
|
|
49
|
+
}, _AadM365GroupRecycleBinItemListCommand_initOptions = function _AadM365GroupRecycleBinItemListCommand_initOptions() {
|
|
50
50
|
this.options.unshift({
|
|
51
51
|
option: '-d, --groupDisplayName [groupDisplayName]'
|
|
52
52
|
}, {
|
|
53
53
|
option: '-m, --groupMailNickname [groupMailNickname]'
|
|
54
54
|
});
|
|
55
55
|
};
|
|
56
|
-
export default new
|
|
57
|
-
//# sourceMappingURL=
|
|
56
|
+
export default new AadM365GroupRecycleBinItemListCommand();
|
|
57
|
+
//# sourceMappingURL=m365group-recyclebinitem-list.js.map
|