@pnp/cli-microsoft365 7.0.0-beta.9229cf8 → 7.0.0-beta.99e75a7

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.
Files changed (135) hide show
  1. package/.eslintrc.cjs +1 -1
  2. package/dist/Auth.js +2 -1
  3. package/dist/Command.js +1 -1
  4. package/dist/m365/aad/commands/{o365group/o365group-add.js → m365group/m365group-add.js} +17 -17
  5. package/dist/m365/aad/commands/{o365group/o365group-conversation-list.js → m365group/m365group-conversation-list.js} +10 -10
  6. package/dist/m365/aad/commands/{o365group/o365group-conversation-post-list.js → m365group/m365group-conversation-post-list.js} +14 -14
  7. package/dist/m365/aad/commands/{o365group/o365group-get.js → m365group/m365group-get.js} +13 -10
  8. package/dist/m365/aad/commands/{o365group/o365group-list.js → m365group/m365group-list.js} +13 -28
  9. package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-clear.js → m365group/m365group-recyclebinitem-clear.js} +15 -15
  10. package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-list.js → m365group/m365group-recyclebinitem-list.js} +10 -10
  11. package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-remove.js → m365group/m365group-recyclebinitem-remove.js} +14 -14
  12. package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-restore.js → m365group/m365group-recyclebinitem-restore.js} +14 -14
  13. package/dist/m365/aad/commands/{o365group/o365group-remove.js → m365group/m365group-remove.js} +12 -12
  14. package/dist/m365/aad/commands/{o365group/o365group-renew.js → m365group/m365group-renew.js} +10 -10
  15. package/dist/m365/aad/commands/{o365group/o365group-report-activitycounts.js → m365group/m365group-report-activitycounts.js} +4 -4
  16. package/dist/m365/aad/commands/{o365group/o365group-report-activitydetail.js → m365group/m365group-report-activitydetail.js} +4 -4
  17. package/dist/m365/aad/commands/{o365group/o365group-report-activityfilecounts.js → m365group/m365group-report-activityfilecounts.js} +4 -4
  18. package/dist/m365/aad/commands/{o365group/o365group-report-activitygroupcounts.js → m365group/m365group-report-activitygroupcounts.js} +4 -4
  19. package/dist/m365/aad/commands/{o365group/o365group-report-activitystorage.js → m365group/m365group-report-activitystorage.js} +4 -4
  20. package/dist/m365/aad/commands/{o365group/o365group-set.js → m365group/m365group-set.js} +17 -17
  21. package/dist/m365/aad/commands/{o365group/o365group-teamify.js → m365group/m365group-teamify.js} +14 -14
  22. package/dist/m365/aad/commands/{o365group/o365group-user-add.js → m365group/m365group-user-add.js} +14 -14
  23. package/dist/m365/aad/commands/{o365group/o365group-user-list.js → m365group/m365group-user-list.js} +12 -12
  24. package/dist/m365/aad/commands/{o365group/o365group-user-remove.js → m365group/m365group-user-remove.js} +14 -14
  25. package/dist/m365/aad/commands/{o365group/o365group-user-set.js → m365group/m365group-user-set.js} +15 -15
  26. package/dist/m365/aad/commands.js +22 -22
  27. package/dist/m365/pa/commands/app/app-permission-ensure.js +162 -0
  28. package/dist/m365/pa/commands/app/app-permission-list.js +2 -2
  29. package/dist/m365/pa/commands/app/app-permission-remove.js +153 -0
  30. package/dist/m365/pa/commands.js +2 -0
  31. package/dist/m365/spfx/commands/project/project-externalize/rules/PnPJsRule.js +2 -2
  32. package/dist/m365/spfx/commands/spfx-doctor.js +73 -103
  33. package/dist/m365/spo/commands/file/file-add.js +13 -13
  34. package/dist/m365/spo/commands/file/file-checkin.js +1 -1
  35. package/dist/m365/spo/commands/file/file-checkout.js +1 -1
  36. package/dist/m365/spo/commands/file/file-copy.js +36 -4
  37. package/dist/m365/spo/commands/file/file-list.js +4 -4
  38. package/dist/m365/spo/commands/file/file-move.js +2 -2
  39. package/dist/m365/spo/commands/file/file-remove.js +6 -6
  40. package/dist/m365/spo/commands/file/file-rename.js +2 -2
  41. package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +1 -1
  42. package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +1 -1
  43. package/dist/m365/spo/commands/file/file-roleassignment-add.js +1 -1
  44. package/dist/m365/spo/commands/file/file-roleassignment-remove.js +1 -1
  45. package/dist/m365/spo/commands/file/file-roleinheritance-break.js +1 -1
  46. package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +1 -1
  47. package/dist/m365/spo/commands/file/file-version-clear.js +1 -1
  48. package/dist/m365/spo/commands/file/file-version-get.js +1 -1
  49. package/dist/m365/spo/commands/file/file-version-list.js +1 -1
  50. package/dist/m365/spo/commands/file/file-version-remove.js +1 -1
  51. package/dist/m365/spo/commands/file/file-version-restore.js +1 -1
  52. package/dist/m365/spo/commands/folder/folder-add.js +2 -4
  53. package/dist/m365/spo/commands/folder/folder-get.js +1 -1
  54. package/dist/m365/spo/commands/folder/folder-list.js +2 -2
  55. package/dist/m365/spo/commands/folder/folder-remove.js +7 -4
  56. package/dist/m365/spo/commands/folder/folder-rename.js +13 -17
  57. package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +1 -1
  58. package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +1 -1
  59. package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +1 -1
  60. package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +1 -1
  61. package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +1 -1
  62. package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +1 -1
  63. package/dist/m365/spo/commands/group/group-list.js +0 -1
  64. package/dist/m365/spo/commands/site/site-set.js +2 -2
  65. package/dist/m365/spo/commands/theme/theme-list.js +1 -9
  66. package/dist/utils/spo.js +1 -1
  67. package/docs/docs/cmd/aad/{o365group/o365group-add.mdx → m365group/m365group-add.mdx} +13 -13
  68. package/docs/docs/cmd/aad/{o365group/o365group-conversation-list.mdx → m365group/m365group-conversation-list.mdx} +4 -4
  69. package/docs/docs/cmd/aad/{o365group/o365group-conversation-post-list.mdx → m365group/m365group-conversation-post-list.mdx} +8 -8
  70. package/docs/docs/cmd/aad/{o365group/o365group-get.mdx → m365group/m365group-get.mdx} +6 -6
  71. package/docs/docs/cmd/aad/{o365group/o365group-list.mdx → m365group/m365group-list.mdx} +12 -29
  72. package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-clear.mdx → m365group/m365group-recyclebinitem-clear.mdx} +5 -5
  73. package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-list.mdx → m365group/m365group-recyclebinitem-list.mdx} +8 -8
  74. package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-remove.mdx → m365group/m365group-recyclebinitem-remove.mdx} +6 -6
  75. package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-restore.mdx → m365group/m365group-recyclebinitem-restore.mdx} +6 -6
  76. package/docs/docs/cmd/aad/{o365group/o365group-remove.mdx → m365group/m365group-remove.mdx} +6 -6
  77. package/docs/docs/cmd/aad/{o365group/o365group-renew.mdx → m365group/m365group-renew.mdx} +4 -4
  78. package/docs/docs/cmd/aad/{o365group/o365group-report-activitycounts.mdx → m365group/m365group-report-activitycounts.mdx} +6 -6
  79. package/docs/docs/cmd/aad/{o365group/o365group-report-activitydetail.mdx → m365group/m365group-report-activitydetail.mdx} +7 -7
  80. package/docs/docs/cmd/aad/{o365group/o365group-report-activityfilecounts.mdx → m365group/m365group-report-activityfilecounts.mdx} +6 -6
  81. package/docs/docs/cmd/aad/{o365group/o365group-report-activitygroupcounts.mdx → m365group/m365group-report-activitygroupcounts.mdx} +6 -6
  82. package/docs/docs/cmd/aad/{o365group/o365group-report-activitystorage.mdx → m365group/m365group-report-activitystorage.mdx} +6 -6
  83. package/docs/docs/cmd/aad/{o365group/o365group-set.mdx → m365group/m365group-set.mdx} +8 -8
  84. package/docs/docs/cmd/aad/{o365group/o365group-teamify.mdx → m365group/m365group-teamify.mdx} +5 -5
  85. package/docs/docs/cmd/aad/{o365group/o365group-user-add.mdx → m365group/m365group-user-add.mdx} +5 -5
  86. package/docs/docs/cmd/aad/{o365group/o365group-user-list.mdx → m365group/m365group-user-list.mdx} +7 -7
  87. package/docs/docs/cmd/aad/{o365group/o365group-user-remove.mdx → m365group/m365group-user-remove.mdx} +5 -5
  88. package/docs/docs/cmd/aad/{o365group/o365group-user-set.mdx → m365group/m365group-user-set.mdx} +5 -5
  89. package/docs/docs/cmd/pa/app/app-permission-ensure.mdx +85 -0
  90. package/docs/docs/cmd/pa/app/app-permission-remove.mdx +74 -0
  91. package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
  92. package/docs/docs/cmd/spo/file/file-add.mdx +1 -1
  93. package/docs/docs/cmd/spo/file/file-checkin.mdx +1 -1
  94. package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +1 -9
  95. package/docs/docs/cmd/spo/file/file-checkout.mdx +1 -1
  96. package/docs/docs/cmd/spo/file/file-copy.mdx +20 -16
  97. package/docs/docs/cmd/spo/file/file-get.mdx +1 -1
  98. package/docs/docs/cmd/spo/file/file-list.mdx +2 -2
  99. package/docs/docs/cmd/spo/file/file-move.mdx +2 -2
  100. package/docs/docs/cmd/spo/file/file-remove.mdx +8 -8
  101. package/docs/docs/cmd/spo/file/file-rename.mdx +3 -3
  102. package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +2 -2
  103. package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +3 -3
  104. package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +1 -1
  105. package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
  106. package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +1 -1
  107. package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +1 -1
  108. package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +1 -1
  109. package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +1 -1
  110. package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +1 -1
  111. package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +1 -1
  112. package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +1 -1
  113. package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +1 -1
  114. package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +1 -1
  115. package/docs/docs/cmd/spo/file/file-version-clear.mdx +1 -1
  116. package/docs/docs/cmd/spo/file/file-version-get.mdx +1 -1
  117. package/docs/docs/cmd/spo/file/file-version-list.mdx +1 -1
  118. package/docs/docs/cmd/spo/file/file-version-remove.mdx +1 -1
  119. package/docs/docs/cmd/spo/file/file-version-restore.mdx +1 -1
  120. package/docs/docs/cmd/spo/folder/folder-add.mdx +76 -1
  121. package/docs/docs/cmd/spo/folder/folder-get.mdx +1 -1
  122. package/docs/docs/cmd/spo/folder/folder-list.mdx +1 -1
  123. package/docs/docs/cmd/spo/folder/folder-remove.mdx +1 -1
  124. package/docs/docs/cmd/spo/folder/folder-rename.mdx +5 -1
  125. package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +1 -1
  126. package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +1 -1
  127. package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +2 -2
  128. package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +1 -1
  129. package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.mdx +1 -1
  130. package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.mdx +1 -1
  131. package/docs/docs/cmd/spo/site/site-add.mdx +1 -1
  132. package/docs/docs/cmd/teams/team/team-add.mdx +1 -1
  133. package/npm-shrinkwrap.json +142 -88
  134. package/package.json +13 -13
  135. /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',
package/dist/Auth.js CHANGED
@@ -558,7 +558,8 @@ export class Auth {
558
558
  resource = resource.substr(0, pos);
559
559
  }
560
560
  if (resource === 'https://api.bap.microsoft.com' ||
561
- resource === 'https://api.powerapps.com') {
561
+ resource === 'https://api.powerapps.com' ||
562
+ resource.endsWith('.api.bap.microsoft.com')) {
562
563
  resource = 'https://service.powerapps.com/';
563
564
  }
564
565
  if (resource === 'https://api.powerbi.com') {
package/dist/Command.js CHANGED
@@ -146,7 +146,7 @@ class Command {
146
146
  const resultOptionValue = await inquirer.default
147
147
  .prompt({
148
148
  name: 'missingRequiredOptionValue',
149
- message: `Value for '${missingRequiredOptionName}':`
149
+ message: `${missingRequiredOptionName}:`
150
150
  });
151
151
  args.options[missingRequiredOptionName] = resultOptionValue.missingRequiredOptionValue;
152
152
  Cli.log();
@@ -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 _AadO365GroupAddCommand_instances, _AadO365GroupAddCommand_initTelemetry, _AadO365GroupAddCommand_initOptions, _AadO365GroupAddCommand_initTypes, _AadO365GroupAddCommand_initValidators;
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 AadO365GroupAddCommand extends GraphCommand {
14
+ class AadM365GroupAddCommand extends GraphCommand {
15
15
  get name() {
16
- return commands.O365GROUP_ADD;
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
- _AadO365GroupAddCommand_instances.add(this);
23
+ _AadM365GroupAddCommand_instances.add(this);
24
24
  this.pollingInterval = 500;
25
- __classPrivateFieldGet(this, _AadO365GroupAddCommand_instances, "m", _AadO365GroupAddCommand_initTelemetry).call(this);
26
- __classPrivateFieldGet(this, _AadO365GroupAddCommand_instances, "m", _AadO365GroupAddCommand_initOptions).call(this);
27
- __classPrivateFieldGet(this, _AadO365GroupAddCommand_instances, "m", _AadO365GroupAddCommand_initTypes).call(this);
28
- __classPrivateFieldGet(this, _AadO365GroupAddCommand_instances, "m", _AadO365GroupAddCommand_initValidators).call(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, AadO365GroupAddCommand.numRepeat, logger);
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 * (AadO365GroupAddCommand.numRepeat - retryLeft));
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
- _AadO365GroupAddCommand_instances = new WeakSet(), _AadO365GroupAddCommand_initTelemetry = function _AadO365GroupAddCommand_initTelemetry() {
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
- }, _AadO365GroupAddCommand_initOptions = function _AadO365GroupAddCommand_initOptions() {
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
- }, _AadO365GroupAddCommand_initTypes = function _AadO365GroupAddCommand_initTypes() {
223
+ }, _AadM365GroupAddCommand_initTypes = function _AadM365GroupAddCommand_initTypes() {
224
224
  this.types.boolean.push('allowMembersToPost', 'hideGroupInOutlook', 'subscribeNewGroupMembers', 'welcomeEmailDisabled');
225
- }, _AadO365GroupAddCommand_initValidators = function _AadO365GroupAddCommand_initValidators() {
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
- AadO365GroupAddCommand.numRepeat = 15;
256
- export default new AadO365GroupAddCommand();
257
- //# sourceMappingURL=o365group-add.js.map
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 _AadO365GroupConversationListCommand_instances, _AadO365GroupConversationListCommand_initOptions, _AadO365GroupConversationListCommand_initValidators;
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 AadO365GroupConversationListCommand extends GraphCommand {
11
+ class AadM365GroupConversationListCommand extends GraphCommand {
12
12
  get name() {
13
- return commands.O365GROUP_CONVERSATION_LIST;
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
- _AadO365GroupConversationListCommand_instances.add(this);
24
- __classPrivateFieldGet(this, _AadO365GroupConversationListCommand_instances, "m", _AadO365GroupConversationListCommand_initOptions).call(this);
25
- __classPrivateFieldGet(this, _AadO365GroupConversationListCommand_instances, "m", _AadO365GroupConversationListCommand_initValidators).call(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
- _AadO365GroupConversationListCommand_instances = new WeakSet(), _AadO365GroupConversationListCommand_initOptions = function _AadO365GroupConversationListCommand_initOptions() {
37
+ _AadM365GroupConversationListCommand_instances = new WeakSet(), _AadM365GroupConversationListCommand_initOptions = function _AadM365GroupConversationListCommand_initOptions() {
38
38
  this.options.unshift({
39
39
  option: '-i, --groupId <groupId>'
40
40
  });
41
- }, _AadO365GroupConversationListCommand_initValidators = function _AadO365GroupConversationListCommand_initValidators() {
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 AadO365GroupConversationListCommand();
50
- //# sourceMappingURL=o365group-conversation-list.js.map
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 _AadO365GroupConversationPostListCommand_instances, _AadO365GroupConversationPostListCommand_initTelemetry, _AadO365GroupConversationPostListCommand_initOptions, _AadO365GroupConversationPostListCommand_initValidators, _AadO365GroupConversationPostListCommand_initOptionSets;
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 AadO365GroupConversationPostListCommand extends GraphCommand {
13
+ class AadM365GroupConversationPostListCommand extends GraphCommand {
14
14
  get name() {
15
- return commands.O365GROUP_CONVERSATION_POST_LIST;
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
- _AadO365GroupConversationPostListCommand_instances.add(this);
23
- __classPrivateFieldGet(this, _AadO365GroupConversationPostListCommand_instances, "m", _AadO365GroupConversationPostListCommand_initTelemetry).call(this);
24
- __classPrivateFieldGet(this, _AadO365GroupConversationPostListCommand_instances, "m", _AadO365GroupConversationPostListCommand_initOptions).call(this);
25
- __classPrivateFieldGet(this, _AadO365GroupConversationPostListCommand_instances, "m", _AadO365GroupConversationPostListCommand_initValidators).call(this);
26
- __classPrivateFieldGet(this, _AadO365GroupConversationPostListCommand_instances, "m", _AadO365GroupConversationPostListCommand_initOptionSets).call(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
- _AadO365GroupConversationPostListCommand_instances = new WeakSet(), _AadO365GroupConversationPostListCommand_initTelemetry = function _AadO365GroupConversationPostListCommand_initTelemetry() {
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
- }, _AadO365GroupConversationPostListCommand_initOptions = function _AadO365GroupConversationPostListCommand_initOptions() {
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
- }, _AadO365GroupConversationPostListCommand_initValidators = function _AadO365GroupConversationPostListCommand_initValidators() {
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
- }, _AadO365GroupConversationPostListCommand_initOptionSets = function _AadO365GroupConversationPostListCommand_initOptionSets() {
71
+ }, _AadM365GroupConversationPostListCommand_initOptionSets = function _AadM365GroupConversationPostListCommand_initOptionSets() {
72
72
  this.optionSets.push({ options: ['groupId', 'groupDisplayName'] });
73
73
  };
74
- export default new AadO365GroupConversationPostListCommand();
75
- //# sourceMappingURL=o365group-conversation-post-list.js.map
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 _AadO365GroupGetCommand_instances, _AadO365GroupGetCommand_initOptions, _AadO365GroupGetCommand_initValidators;
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 AadO365GroupGetCommand extends GraphCommand {
12
+ class AadM365GroupGetCommand extends GraphCommand {
13
13
  get name() {
14
- return commands.O365GROUP_GET;
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
- _AadO365GroupGetCommand_instances.add(this);
22
- __classPrivateFieldGet(this, _AadO365GroupGetCommand_instances, "m", _AadO365GroupGetCommand_initOptions).call(this);
23
- __classPrivateFieldGet(this, _AadO365GroupGetCommand_instances, "m", _AadO365GroupGetCommand_initValidators).call(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
- _AadO365GroupGetCommand_instances = new WeakSet(), _AadO365GroupGetCommand_initOptions = function _AadO365GroupGetCommand_initOptions() {
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
- }, _AadO365GroupGetCommand_initValidators = function _AadO365GroupGetCommand_initValidators() {
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 AadO365GroupGetCommand();
62
- //# sourceMappingURL=o365group-get.js.map
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 _AadO365GroupListCommand_instances, _AadO365GroupListCommand_initTelemetry, _AadO365GroupListCommand_initOptions, _AadO365GroupListCommand_initValidators;
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 AadO365GroupListCommand extends GraphCommand {
12
+ class AadM365GroupListCommand extends GraphCommand {
13
13
  get name() {
14
- return commands.O365GROUP_LIST;
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
- _AadO365GroupListCommand_instances.add(this);
22
- __classPrivateFieldGet(this, _AadO365GroupListCommand_instances, "m", _AadO365GroupListCommand_initTelemetry).call(this);
23
- __classPrivateFieldGet(this, _AadO365GroupListCommand_instances, "m", _AadO365GroupListCommand_initOptions).call(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', 'deletedDateTime', 'siteUrl'];
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(endpoint);
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
- _AadO365GroupListCommand_instances = new WeakSet(), _AadO365GroupListCommand_initTelemetry = function _AadO365GroupListCommand_initTelemetry() {
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
- deleted: args.options.deleted,
91
- orphaned: args.options.orphaned
85
+ orphaned: !!args.options.orphaned
92
86
  });
93
87
  });
94
- }, _AadO365GroupListCommand_initOptions = function _AadO365GroupListCommand_initOptions() {
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 AadO365GroupListCommand();
115
- //# sourceMappingURL=o365group-list.js.map
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 _AadO365GroupRecycleBinItemClearCommand_instances, _AadO365GroupRecycleBinItemClearCommand_initTelemetry, _AadO365GroupRecycleBinItemClearCommand_initOptions;
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 AadO365GroupRecycleBinItemClearCommand extends GraphCommand {
12
+ class AadM365GroupRecycleBinItemClearCommand extends GraphCommand {
13
13
  get name() {
14
- return commands.O365GROUP_RECYCLEBINITEM_CLEAR;
14
+ return commands.M365GROUP_RECYCLEBINITEM_CLEAR;
15
15
  }
16
16
  get description() {
17
- return 'Clears all O365 Groups from recycle bin.';
17
+ return 'Clears all M365 Groups from recycle bin.';
18
18
  }
19
19
  constructor() {
20
20
  super();
21
- _AadO365GroupRecycleBinItemClearCommand_instances.add(this);
22
- __classPrivateFieldGet(this, _AadO365GroupRecycleBinItemClearCommand_instances, "m", _AadO365GroupRecycleBinItemClearCommand_initTelemetry).call(this);
23
- __classPrivateFieldGet(this, _AadO365GroupRecycleBinItemClearCommand_instances, "m", _AadO365GroupRecycleBinItemClearCommand_initOptions).call(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 clearO365GroupRecycleBinItems = async () => {
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 clearO365GroupRecycleBinItems();
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 O365 Groups from recycle bin ?`
42
+ message: `Are you sure you want to clear all M365 Groups from recycle bin ?`
43
43
  });
44
44
  if (response.continue) {
45
- await clearO365GroupRecycleBinItems();
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
- _AadO365GroupRecycleBinItemClearCommand_instances = new WeakSet(), _AadO365GroupRecycleBinItemClearCommand_initTelemetry = function _AadO365GroupRecycleBinItemClearCommand_initTelemetry() {
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
- }, _AadO365GroupRecycleBinItemClearCommand_initOptions = function _AadO365GroupRecycleBinItemClearCommand_initOptions() {
76
+ }, _AadM365GroupRecycleBinItemClearCommand_initOptions = function _AadM365GroupRecycleBinItemClearCommand_initOptions() {
77
77
  this.options.unshift({
78
78
  option: '-f, --force'
79
79
  });
80
80
  };
81
- export default new AadO365GroupRecycleBinItemClearCommand();
82
- //# sourceMappingURL=o365group-recyclebinitem-clear.js.map
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 _AadO365GroupRecycleBinItemListCommand_instances, _AadO365GroupRecycleBinItemListCommand_initTelemetry, _AadO365GroupRecycleBinItemListCommand_initOptions;
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 AadO365GroupRecycleBinItemListCommand extends GraphCommand {
11
+ class AadM365GroupRecycleBinItemListCommand extends GraphCommand {
12
12
  get name() {
13
- return commands.O365GROUP_RECYCLEBINITEM_LIST;
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
- _AadO365GroupRecycleBinItemListCommand_instances.add(this);
21
- __classPrivateFieldGet(this, _AadO365GroupRecycleBinItemListCommand_instances, "m", _AadO365GroupRecycleBinItemListCommand_initTelemetry).call(this);
22
- __classPrivateFieldGet(this, _AadO365GroupRecycleBinItemListCommand_instances, "m", _AadO365GroupRecycleBinItemListCommand_initOptions).call(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
- _AadO365GroupRecycleBinItemListCommand_instances = new WeakSet(), _AadO365GroupRecycleBinItemListCommand_initTelemetry = function _AadO365GroupRecycleBinItemListCommand_initTelemetry() {
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
- }, _AadO365GroupRecycleBinItemListCommand_initOptions = function _AadO365GroupRecycleBinItemListCommand_initOptions() {
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 AadO365GroupRecycleBinItemListCommand();
57
- //# sourceMappingURL=o365group-recyclebinitem-list.js.map
56
+ export default new AadM365GroupRecycleBinItemListCommand();
57
+ //# sourceMappingURL=m365group-recyclebinitem-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 _AadO365GroupRecycleBinItemRemoveCommand_instances, _AadO365GroupRecycleBinItemRemoveCommand_initTelemetry, _AadO365GroupRecycleBinItemRemoveCommand_initOptions, _AadO365GroupRecycleBinItemRemoveCommand_initValidators, _AadO365GroupRecycleBinItemRemoveCommand_initOptionSets;
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 AadO365GroupRecycleBinItemRemoveCommand extends GraphCommand {
13
+ class AadM365GroupRecycleBinItemRemoveCommand extends GraphCommand {
14
14
  get name() {
15
- return commands.O365GROUP_RECYCLEBINITEM_REMOVE;
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
- _AadO365GroupRecycleBinItemRemoveCommand_instances.add(this);
23
- __classPrivateFieldGet(this, _AadO365GroupRecycleBinItemRemoveCommand_instances, "m", _AadO365GroupRecycleBinItemRemoveCommand_initTelemetry).call(this);
24
- __classPrivateFieldGet(this, _AadO365GroupRecycleBinItemRemoveCommand_instances, "m", _AadO365GroupRecycleBinItemRemoveCommand_initOptions).call(this);
25
- __classPrivateFieldGet(this, _AadO365GroupRecycleBinItemRemoveCommand_instances, "m", _AadO365GroupRecycleBinItemRemoveCommand_initValidators).call(this);
26
- __classPrivateFieldGet(this, _AadO365GroupRecycleBinItemRemoveCommand_instances, "m", _AadO365GroupRecycleBinItemRemoveCommand_initOptionSets).call(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
- _AadO365GroupRecycleBinItemRemoveCommand_instances = new WeakSet(), _AadO365GroupRecycleBinItemRemoveCommand_initTelemetry = function _AadO365GroupRecycleBinItemRemoveCommand_initTelemetry() {
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
- }, _AadO365GroupRecycleBinItemRemoveCommand_initOptions = function _AadO365GroupRecycleBinItemRemoveCommand_initOptions() {
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
- }, _AadO365GroupRecycleBinItemRemoveCommand_initValidators = function _AadO365GroupRecycleBinItemRemoveCommand_initValidators() {
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
- }, _AadO365GroupRecycleBinItemRemoveCommand_initOptionSets = function _AadO365GroupRecycleBinItemRemoveCommand_initOptionSets() {
116
+ }, _AadM365GroupRecycleBinItemRemoveCommand_initOptionSets = function _AadM365GroupRecycleBinItemRemoveCommand_initOptionSets() {
117
117
  this.optionSets.push({ options: ['id', 'displayName', 'mailNickname'] });
118
118
  };
119
- export default new AadO365GroupRecycleBinItemRemoveCommand();
120
- //# sourceMappingURL=o365group-recyclebinitem-remove.js.map
119
+ export default new AadM365GroupRecycleBinItemRemoveCommand();
120
+ //# sourceMappingURL=m365group-recyclebinitem-remove.js.map