@pnp/cli-microsoft365 10.9.0-beta.3261443 → 10.9.0-beta.a6007fc

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 (43) hide show
  1. package/allCommands.json +1 -1
  2. package/allCommandsFull.json +1 -1
  3. package/dist/m365/entra/commands/m365group/m365group-get.js +3 -16
  4. package/dist/m365/entra/commands/m365group/m365group-list.js +1 -7
  5. package/dist/m365/entra/commands/pim/pim-role-assignment-eligibility-list.js +3 -9
  6. package/dist/m365/entra/commands/pim/pim-role-assignment-list.js +3 -9
  7. package/dist/m365/entra/commands/pim/pim-role-request-list.js +3 -9
  8. package/dist/m365/flow/commands/flow-list.js +7 -14
  9. package/dist/m365/flow/commands/run/run-get.js +1 -1
  10. package/dist/m365/graph/commands/subscription/subscription-add.js +3 -10
  11. package/dist/m365/pp/commands/solution/solution-publisher-list.js +1 -8
  12. package/dist/m365/purview/commands/threatassessment/threatassessment-get.js +2 -9
  13. package/dist/m365/spo/commands/file/file-move.js +2 -8
  14. package/dist/m365/spo/commands/hubsite/hubsite-get.js +5 -14
  15. package/dist/m365/spo/commands/hubsite/hubsite-list.js +2 -9
  16. package/dist/m365/spo/commands/page/clientsidepages.js +17 -49
  17. package/dist/m365/spo/commands/tenant/tenant-site-list.js +5 -16
  18. package/dist/m365/spo/commands/term/term-list.js +3 -10
  19. package/dist/m365/teams/commands/chat/chat-member-add.js +4 -10
  20. package/dist/m365/viva/commands/engage/engage-network-list.js +2 -8
  21. package/dist/m365/viva/commands.js +0 -1
  22. package/docs/docs/cmd/entra/m365group/m365group-get.mdx +5 -8
  23. package/docs/docs/cmd/entra/m365group/m365group-list.mdx +12 -14
  24. package/docs/docs/cmd/entra/pim/pim-role-assignment-eligibility-list.mdx +4 -7
  25. package/docs/docs/cmd/entra/pim/pim-role-assignment-list.mdx +6 -9
  26. package/docs/docs/cmd/entra/pim/pim-role-request-list.mdx +4 -7
  27. package/docs/docs/cmd/flow/flow-list.mdx +5 -8
  28. package/docs/docs/cmd/flow/run/run-get.mdx +1 -1
  29. package/docs/docs/cmd/graph/subscription/subscription-add.mdx +3 -6
  30. package/docs/docs/cmd/pp/solution/solution-publisher-list.mdx +4 -7
  31. package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +4 -7
  32. package/docs/docs/cmd/spo/file/file-move.mdx +1 -4
  33. package/docs/docs/cmd/spo/hubsite/hubsite-get.mdx +3 -6
  34. package/docs/docs/cmd/spo/hubsite/hubsite-list.mdx +4 -7
  35. package/docs/docs/cmd/spo/list/list-add.mdx +1 -1
  36. package/docs/docs/cmd/spo/list/list-set.mdx +2 -2
  37. package/docs/docs/cmd/spo/tenant/tenant-site-list.mdx +7 -10
  38. package/docs/docs/cmd/spo/term/term-list.mdx +4 -7
  39. package/docs/docs/cmd/teams/chat/chat-member-add.mdx +3 -6
  40. package/docs/docs/cmd/viva/engage/engage-network-list.mdx +4 -7
  41. package/package.json +1 -1
  42. package/dist/m365/viva/commands/engage/engage-community-remove.js +0 -99
  43. package/docs/docs/cmd/viva/engage/engage-community-remove.mdx +0 -61
@@ -309,12 +309,6 @@ export class ClientSidePage {
309
309
  control.fromHtml(markup);
310
310
  page.pageSettings = control;
311
311
  break;
312
- case 1:
313
- // empty canvas column
314
- control = new CanvasColumn(null, 0);
315
- control.fromHtml(markup);
316
- page.mergeColumnToTree(control);
317
- break;
318
312
  case 3:
319
313
  // client side webpart
320
314
  control = new ClientSideWebpart("");
@@ -386,9 +380,9 @@ export class ClientSidePage {
386
380
  }
387
381
  }
388
382
  }
389
- const sections = this.sections.filter(s => s.order === zoneIndex && s.layoutIndex === (control.controlData?.position.layoutIndex ?? 1));
383
+ const sections = this.sections.filter(s => s.order === zoneIndex);
390
384
  if (sections.length < 1) {
391
- section = new CanvasSection(this, zoneIndex, [], control?.controlData);
385
+ section = new CanvasSection(this, zoneIndex, [], control?.controlData?.position.zoneId, control.controlData?.zoneGroupMetadata);
392
386
  this.sections.push(section);
393
387
  }
394
388
  else {
@@ -412,11 +406,11 @@ export class ClientSidePage {
412
406
  * @param position The position data for the column
413
407
  */
414
408
  mergeColumnToTree(column) {
415
- const order = column?.controlData?.position.zoneIndex || 0;
409
+ const order = column.controlData && hOP(column.controlData, "position") && hOP(column.controlData.position, "zoneIndex") ? column.controlData.position.zoneIndex : 0;
416
410
  let section = null;
417
- const sections = this.sections.filter(s => s.order === order && s.layoutIndex === (column?.controlData?.position.layoutIndex ?? 1));
411
+ const sections = this.sections.filter(s => s.order === order);
418
412
  if (sections.length < 1) {
419
- section = new CanvasSection(this, order, [], column.controlData);
413
+ section = new CanvasSection(this, order, [], column.controlData?.position?.zoneId, column.controlData?.zoneGroupMetadata);
420
414
  this.sections.push(section);
421
415
  }
422
416
  else {
@@ -427,16 +421,12 @@ export class ClientSidePage {
427
421
  }
428
422
  }
429
423
  export class CanvasSection {
430
- constructor(page, order, columns = [], controlData) {
424
+ constructor(page, order, columns = [], zoneId, zoneGroupMetadata) {
431
425
  this.page = page;
432
426
  this.order = order;
433
427
  this.columns = columns;
434
- this.controlData = controlData;
435
- this.zoneId = this.controlData?.position.zoneId || getGUID();
436
- this.zoneGroupMetadata = this.controlData?.zoneGroupMetadata;
437
- this.emphasis = this.controlData?.emphasis;
438
- this.layoutIndex = this.controlData?.position.layoutIndex ?? 1;
439
- this.isLayoutReflowOnTop = this.controlData?.position.isLayoutReflowOnTop;
428
+ this.zoneId = zoneId;
429
+ this.zoneGroupMetadata = zoneGroupMetadata;
440
430
  }
441
431
  /**
442
432
  * Default column (this.columns[0]) for this section
@@ -464,7 +454,7 @@ export class CanvasSection {
464
454
  }
465
455
  }
466
456
  class CanvasControl {
467
- constructor(controlType, dataVersion, column, order = 1, id = getGUID(), controlData, dynamicDataPaths = null, dynamicDataValues = null) {
457
+ constructor(controlType, dataVersion, column = undefined, order = 1, id = getGUID(), controlData = null, dynamicDataPaths = null, dynamicDataValues = null) {
468
458
  this.controlType = controlType;
469
459
  this.dataVersion = dataVersion;
470
460
  this.column = column;
@@ -552,26 +542,16 @@ export class CanvasColumn extends CanvasControl {
552
542
  }
553
543
  }
554
544
  getControlData() {
555
- const controlData = {
545
+ return {
546
+ displayMode: 2,
556
547
  position: {
557
548
  sectionFactor: this.factor,
558
549
  sectionIndex: this.order,
559
- zoneIndex: this.section?.order || 0,
560
- zoneId: this.section?.zoneId,
561
- layoutIndex: this.section?.layoutIndex,
550
+ zoneIndex: this.section ? this.section.order : 0,
551
+ zoneId: this.section?.zoneId
562
552
  },
563
553
  zoneGroupMetadata: this.section?.zoneGroupMetadata,
564
- emphasis: this.section?.emphasis
565
554
  };
566
- if (this.column?.section?.isLayoutReflowOnTop !== undefined) {
567
- controlData.position.isLayoutReflowOnTop = this.column.section.isLayoutReflowOnTop;
568
- }
569
- const isEmptyColumn = this.controls.length === 0;
570
- if (isEmptyColumn) {
571
- controlData.id = "emptySection";
572
- controlData.controlType = 1;
573
- }
574
- return controlData;
575
555
  }
576
556
  /**
577
557
  * Removes this column and all contained controls from the collection
@@ -670,7 +650,7 @@ export class ClientSideText extends ClientSidePart {
670
650
  this._text = text;
671
651
  }
672
652
  getControlData() {
673
- const controlData = {
653
+ return {
674
654
  controlType: this.controlType,
675
655
  editorType: "CKEditor",
676
656
  id: this.id,
@@ -679,16 +659,10 @@ export class ClientSideText extends ClientSidePart {
679
659
  sectionFactor: this.column ? this.column.factor : 0,
680
660
  sectionIndex: this.column ? this.column.order : 0,
681
661
  zoneIndex: this.column && this.column.section ? this.column.section.order : 0,
682
- zoneId: this.column?.section?.zoneId,
683
- layoutIndex: this.column?.section?.layoutIndex
662
+ zoneId: this.column?.section?.zoneId
684
663
  },
685
664
  zoneGroupMetadata: this.column?.section?.zoneGroupMetadata,
686
- emphasis: this.column?.section?.emphasis,
687
665
  };
688
- if (this.column?.section?.isLayoutReflowOnTop !== undefined) {
689
- controlData.position.isLayoutReflowOnTop = this.column.section.isLayoutReflowOnTop;
690
- }
691
- return controlData;
692
666
  }
693
667
  toHtml(index) {
694
668
  // set our order to the value passed in
@@ -793,7 +767,7 @@ export class ClientSideWebpart extends ClientSidePart {
793
767
  this.htmlProperties = htmlProps.length > 0 ? htmlProps[0] : "";
794
768
  }
795
769
  getControlData() {
796
- const controlData = {
770
+ return {
797
771
  controlType: this.controlType,
798
772
  id: this.id,
799
773
  position: {
@@ -801,17 +775,11 @@ export class ClientSideWebpart extends ClientSidePart {
801
775
  sectionFactor: this.column ? this.column.factor : 0,
802
776
  sectionIndex: this.column ? this.column.order : 0,
803
777
  zoneIndex: this.column && this.column.section ? this.column.section.order : 0,
804
- zoneId: this.column?.section?.zoneId,
805
- layoutIndex: this.column?.section?.layoutIndex,
778
+ zoneId: this.column?.section?.zoneId
806
779
  },
807
780
  webPartId: this.webPartId,
808
781
  zoneGroupMetadata: this.column?.section?.zoneGroupMetadata,
809
- emphasis: this.column?.section?.emphasis,
810
782
  };
811
- if (this.column?.section?.isLayoutReflowOnTop !== undefined) {
812
- controlData.position.isLayoutReflowOnTop = this.column.section.isLayoutReflowOnTop;
813
- }
814
- return controlData;
815
783
  }
816
784
  renderHtmlProperties() {
817
785
  const html = [];
@@ -31,11 +31,8 @@ class SpoTenantSiteListCommand extends SpoCommand {
31
31
  return [commands.SITE_LIST];
32
32
  }
33
33
  async commandAction(logger, args) {
34
- if (args.options.includeOneDriveSites) {
35
- await this.warn(logger, `Parameter 'includeOneDriveSites' is deprecated. Please use 'withOneDriveSites' instead`);
36
- }
37
34
  const webTemplate = this.getWebTemplateId(args.options);
38
- const includeOneDriveSites = (args.options.includeOneDriveSites || args.options.withOneDriveSites) || false;
35
+ const includeOneDriveSites = args.options.includeOneDriveSites || false;
39
36
  const personalSite = includeOneDriveSites === false ? '0' : '1';
40
37
  try {
41
38
  const spoAdminUrl = await spo.getSpoAdminUrl(logger, this.debug);
@@ -79,7 +76,7 @@ class SpoTenantSiteListCommand extends SpoCommand {
79
76
  if (options.webTemplate) {
80
77
  return options.webTemplate;
81
78
  }
82
- if (options.includeOneDriveSites || options.withOneDriveSites) {
79
+ if (options.includeOneDriveSites) {
83
80
  return '';
84
81
  }
85
82
  switch (options.type) {
@@ -98,8 +95,7 @@ _SpoTenantSiteListCommand_instances = new WeakSet(), _SpoTenantSiteListCommand_i
98
95
  webTemplate: args.options.webTemplate,
99
96
  type: args.options.type,
100
97
  filter: (!(!args.options.filter)).toString(),
101
- includeOneDriveSites: typeof args.options.includeOneDriveSites !== 'undefined',
102
- withOneDriveSites: typeof args.options.withOneDriveSites !== 'undefined'
98
+ includeOneDriveSites: typeof args.options.includeOneDriveSites !== 'undefined'
103
99
  });
104
100
  });
105
101
  }, _SpoTenantSiteListCommand_initOptions = function _SpoTenantSiteListCommand_initOptions() {
@@ -112,8 +108,6 @@ _SpoTenantSiteListCommand_instances = new WeakSet(), _SpoTenantSiteListCommand_i
112
108
  option: '--filter [filter]'
113
109
  }, {
114
110
  option: '--includeOneDriveSites'
115
- }, {
116
- option: '--withOneDriveSites'
117
111
  });
118
112
  }, _SpoTenantSiteListCommand_initValidators = function _SpoTenantSiteListCommand_initValidators() {
119
113
  this.validators.push(async (args) => {
@@ -125,14 +119,9 @@ _SpoTenantSiteListCommand_instances = new WeakSet(), _SpoTenantSiteListCommand_i
125
119
  typeValues.indexOf(args.options.type) < 0) {
126
120
  return `${args.options.type} is not a valid value for the type option. Allowed values are ${typeValues.join('|')}`;
127
121
  }
128
- if (args.options.includeOneDriveSites || args.options.withOneDriveSites
122
+ if (args.options.includeOneDriveSites
129
123
  && (args.options.type || args.options.webTemplate)) {
130
- if (args.options.includeOneDriveSites) {
131
- return 'When using includeOneDriveSites, don\'t specify the type or webTemplate options';
132
- }
133
- else {
134
- return 'When using withOneDriveSites, don\'t specify the type or webTemplate options';
135
- }
124
+ return 'When using includeOneDriveSites, don\'t specify the type or webTemplate options';
136
125
  }
137
126
  return true;
138
127
  });
@@ -31,9 +31,6 @@ class SpoTermListCommand extends SpoCommand {
31
31
  __classPrivateFieldGet(this, _SpoTermListCommand_instances, "m", _SpoTermListCommand_initOptionSets).call(this);
32
32
  }
33
33
  async commandAction(logger, args) {
34
- if (args.options.includeChildTerms) {
35
- await this.warn(logger, `Parameter 'includeChildTerms' is deprecated. Please use 'withChildTerms' instead`);
36
- }
37
34
  try {
38
35
  const spoWebUrl = args.options.webUrl ? args.options.webUrl : await spo.getSpoAdminUrl(logger, this.debug);
39
36
  const res = await spo.getRequestDigest(spoWebUrl);
@@ -43,14 +40,13 @@ class SpoTermListCommand extends SpoCommand {
43
40
  const termGroupQuery = args.options.termGroupId ? `<Method Id="77" ParentId="75" Name="GetById"><Parameters><Parameter Type="Guid">{${args.options.termGroupId}}</Parameter></Parameters></Method>` : `<Method Id="77" ParentId="75" Name="GetByName"><Parameters><Parameter Type="String">${formatting.escapeXml(args.options.termGroupName)}</Parameter></Parameters></Method>`;
44
41
  const termSetQuery = args.options.termSetId ? `<Method Id="82" ParentId="80" Name="GetById"><Parameters><Parameter Type="Guid">{${args.options.termSetId}}</Parameter></Parameters></Method>` : `<Method Id="82" ParentId="80" Name="GetByName"><Parameters><Parameter Type="String">${formatting.escapeXml(args.options.termSetName)}</Parameter></Parameters></Method>`;
45
42
  const data = `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="70" ObjectPathId="69" /><ObjectIdentityQuery Id="71" ObjectPathId="69" /><ObjectPath Id="73" ObjectPathId="72" /><ObjectIdentityQuery Id="74" ObjectPathId="72" /><ObjectPath Id="76" ObjectPathId="75" /><ObjectPath Id="78" ObjectPathId="77" /><ObjectIdentityQuery Id="79" ObjectPathId="77" /><ObjectPath Id="81" ObjectPathId="80" /><ObjectPath Id="83" ObjectPathId="82" /><ObjectIdentityQuery Id="84" ObjectPathId="82" /><ObjectPath Id="86" ObjectPathId="85" /><Query Id="87" ObjectPathId="85"><Query SelectAllProperties="false"><Properties /></Query><ChildItemQuery SelectAllProperties="true"><Properties><Property Name="Name" ScalarProperty="true" /><Property Name="Id" ScalarProperty="true" /></Properties></ChildItemQuery></Query></Actions><ObjectPaths><StaticMethod Id="69" Name="GetTaxonomySession" TypeId="{981cbc68-9edc-4f8d-872f-71146fcbb84f}" /><Method Id="72" ParentId="69" Name="GetDefaultSiteCollectionTermStore" /><Property Id="75" ParentId="72" Name="Groups" />${termGroupQuery}<Property Id="80" ParentId="77" Name="TermSets" />${termSetQuery}<Property Id="85" ParentId="82" Name="Terms" /></ObjectPaths></Request>`;
46
- const shouldIncludeChildTerms = args.options.includeChildTerms || args.options.withChildTerms;
47
43
  const result = await this.executeCsomCall(data, spoWebUrl, res);
48
44
  const terms = [];
49
45
  if (result._Child_Items_ && result._Child_Items_.length > 0) {
50
46
  for (const term of result._Child_Items_) {
51
47
  this.setTermDetails(term);
52
48
  terms.push(term);
53
- if (shouldIncludeChildTerms && term.TermsCount > 0) {
49
+ if (args.options.includeChildTerms && term.TermsCount > 0) {
54
50
  await this.getChildTerms(spoWebUrl, res, term);
55
51
  }
56
52
  }
@@ -58,7 +54,7 @@ class SpoTermListCommand extends SpoCommand {
58
54
  if (!args.options.output || !cli.shouldTrimOutput(args.options.output)) {
59
55
  await logger.log(terms);
60
56
  }
61
- else if (!shouldIncludeChildTerms) {
57
+ else if (!args.options.includeChildTerms) {
62
58
  // Converted to text friendly output
63
59
  await logger.log(terms.map(i => {
64
60
  return {
@@ -146,8 +142,7 @@ _SpoTermListCommand_instances = new WeakSet(), _SpoTermListCommand_initTelemetry
146
142
  termGroupName: typeof args.options.termGroupName !== 'undefined',
147
143
  termSetId: typeof args.options.termSetId !== 'undefined',
148
144
  termSetName: typeof args.options.termSetName !== 'undefined',
149
- includeChildTerms: !!args.options.includeChildTerms,
150
- withChildTerms: !!args.options.withChildTerms
145
+ includeChildTerms: !!args.options.includeChildTerms
151
146
  });
152
147
  });
153
148
  }, _SpoTermListCommand_initOptions = function _SpoTermListCommand_initOptions() {
@@ -163,8 +158,6 @@ _SpoTermListCommand_instances = new WeakSet(), _SpoTermListCommand_initTelemetry
163
158
  option: '--termSetName [termSetName]'
164
159
  }, {
165
160
  option: '--includeChildTerms'
166
- }, {
167
- option: '--withChildTerms'
168
161
  });
169
162
  }, _SpoTermListCommand_initValidators = function _SpoTermListCommand_initValidators() {
170
163
  this.validators.push(async (args) => {
@@ -29,9 +29,6 @@ class TeamsChatMemberAddCommand extends GraphCommand {
29
29
  if (this.verbose) {
30
30
  await logger.logToStderr(`Adding member ${args.options.userId || args.options.userName} to chat with id ${args.options.chatId}...`);
31
31
  }
32
- if (args.options.includeAllHistory) {
33
- await this.warn(logger, `Parameter 'includeAllHistory' is deprecated. Please use 'withAllHistory' instead`);
34
- }
35
32
  const chatMemberAddOptions = {
36
33
  url: `${this.resource}/v1.0/chats/${args.options.chatId}/members`,
37
34
  headers: {
@@ -41,7 +38,7 @@ class TeamsChatMemberAddCommand extends GraphCommand {
41
38
  data: {
42
39
  '@odata.type': '#microsoft.graph.aadUserConversationMember',
43
40
  'user@odata.bind': `https://graph.microsoft.com/v1.0/users/${args.options.userId || formatting.encodeQueryParameter(args.options.userName)}`,
44
- visibleHistoryStartDateTime: (args.options.includeAllHistory || args.options.withAllHistory) ? '0001-01-01T00:00:00Z' : args.options.visibleHistoryStartDateTime,
41
+ visibleHistoryStartDateTime: args.options.includeAllHistory ? '0001-01-01T00:00:00Z' : args.options.visibleHistoryStartDateTime,
45
42
  roles: [args.options.role || 'owner']
46
43
  }
47
44
  };
@@ -59,8 +56,7 @@ _a = TeamsChatMemberAddCommand, _TeamsChatMemberAddCommand_instances = new WeakS
59
56
  userName: typeof args.options.userName !== 'undefined',
60
57
  role: typeof args.options.role !== 'undefined',
61
58
  visibleHistoryStartDateTime: typeof args.options.visibleHistoryStartDateTime !== 'undefined',
62
- includeAllHistory: !!args.options.includeAllHistory,
63
- withAllHistory: !!args.options.withAllHistory
59
+ includeAllHistory: !!args.options.includeAllHistory
64
60
  });
65
61
  });
66
62
  }, _TeamsChatMemberAddCommand_initOptions = function _TeamsChatMemberAddCommand_initOptions() {
@@ -77,8 +73,6 @@ _a = TeamsChatMemberAddCommand, _TeamsChatMemberAddCommand_instances = new WeakS
77
73
  option: '--visibleHistoryStartDateTime [visibleHistoryStartDateTime]'
78
74
  }, {
79
75
  option: '--includeAllHistory'
80
- }, {
81
- option: '--withAllHistory'
82
76
  });
83
77
  }, _TeamsChatMemberAddCommand_initValidators = function _TeamsChatMemberAddCommand_initValidators() {
84
78
  this.validators.push(async (args) => {
@@ -101,8 +95,8 @@ _a = TeamsChatMemberAddCommand, _TeamsChatMemberAddCommand_instances = new WeakS
101
95
  });
102
96
  }, _TeamsChatMemberAddCommand_initOptionSets = function _TeamsChatMemberAddCommand_initOptionSets() {
103
97
  this.optionSets.push({ options: ['userId', 'userName'] }, {
104
- options: ['visibleHistoryStartDateTime', 'includeAllHistory', 'withAllHistory'],
105
- runsWhen: (args) => args.options.visibleHistoryStartDateTime || args.options.includeAllHistory || args.options.withAllHistory
98
+ options: ['visibleHistoryStartDateTime', 'includeAllHistory'],
99
+ runsWhen: (args) => args.options.visibleHistoryStartDateTime || args.options.includeAllHistory
106
100
  });
107
101
  };
108
102
  TeamsChatMemberAddCommand.roles = ['owner', 'guest'];
@@ -24,9 +24,6 @@ class VivaEngageNetworkListCommand extends VivaEngageCommand {
24
24
  __classPrivateFieldGet(this, _VivaEngageNetworkListCommand_instances, "m", _VivaEngageNetworkListCommand_initOptions).call(this);
25
25
  }
26
26
  async commandAction(logger, args) {
27
- if (args.options.includeSuspended) {
28
- await this.warn(logger, `Parameter 'includeSuspended' is deprecated. Please use 'withSuspended' instead`);
29
- }
30
27
  const requestOptions = {
31
28
  url: `${this.resource}/v1/networks/current.json`,
32
29
  headers: {
@@ -35,7 +32,7 @@ class VivaEngageNetworkListCommand extends VivaEngageCommand {
35
32
  },
36
33
  responseType: 'json',
37
34
  data: {
38
- includeSuspended: (args.options.includeSuspended !== undefined && args.options.includeSuspended !== false) || (args.options.withSuspended !== undefined && args.options.withSuspended !== false)
35
+ includeSuspended: args.options.includeSuspended !== undefined && args.options.includeSuspended !== false
39
36
  }
40
37
  };
41
38
  try {
@@ -50,15 +47,12 @@ class VivaEngageNetworkListCommand extends VivaEngageCommand {
50
47
  _VivaEngageNetworkListCommand_instances = new WeakSet(), _VivaEngageNetworkListCommand_initTelemetry = function _VivaEngageNetworkListCommand_initTelemetry() {
51
48
  this.telemetry.push((args) => {
52
49
  Object.assign(this.telemetryProperties, {
53
- includeSuspended: args.options.includeSuspended,
54
- withSuspended: args.options.withSuspended
50
+ includeSuspended: args.options.includeSuspended
55
51
  });
56
52
  });
57
53
  }, _VivaEngageNetworkListCommand_initOptions = function _VivaEngageNetworkListCommand_initOptions() {
58
54
  this.options.unshift({
59
55
  option: '--includeSuspended'
60
- }, {
61
- option: '--withSuspended'
62
56
  });
63
57
  };
64
58
  export default new VivaEngageNetworkListCommand();
@@ -4,7 +4,6 @@ export default {
4
4
  ENGAGE_COMMUNITY_ADD: `${prefix} engage community add`,
5
5
  ENGAGE_COMMUNITY_GET: `${prefix} engage community get`,
6
6
  ENGAGE_COMMUNITY_LIST: `${prefix} engage community list`,
7
- ENGAGE_COMMUNITY_REMOVE: `${prefix} engage community remove`,
8
7
  ENGAGE_COMMUNITY_SET: `${prefix} engage community set`,
9
8
  ENGAGE_COMMUNITY_USER_ADD: `${prefix} engage community user add`,
10
9
  ENGAGE_COMMUNITY_USER_LIST: `${prefix} engage community user list`,
@@ -22,32 +22,29 @@ m365 entra m365group get [options]
22
22
  : Display name of the Microsoft 365 Group or Microsoft Teams team to retrieve information for. Specify either `id` or `displayName`, but not both.
23
23
 
24
24
  `--includeSiteUrl`
25
- : (deprecated. Use option `withSiteUrl` instead) Set to retrieve the site URL for the group.
26
-
27
- `--withSiteUrl`
28
- : Set to retrieve the site URL for the group.
25
+ : Set to retrieve the site URL for the group
29
26
  ```
30
27
 
31
28
  <Global />
32
29
 
33
30
  ## Examples
34
31
 
35
- Get information about the Microsoft 365 Group with id _1caf7dcd-7e83-4c3a-94f7-932a1299c844_.
32
+ Get information about the Microsoft 365 Group with id _1caf7dcd-7e83-4c3a-94f7-932a1299c844_
36
33
 
37
34
  ```sh
38
35
  m365 entra m365group get --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844
39
36
  ```
40
37
 
41
- Get information about the Microsoft 365 Group with displayName _Finance_.
38
+ Get information about the Microsoft 365 Group with displayName _Finance_
42
39
 
43
40
  ```sh
44
41
  m365 entra m365group get --displayName Finance
45
42
  ```
46
43
 
47
- Get information about the Microsoft 365 Group with id _1caf7dcd-7e83-4c3a-94f7-932a1299c844_ and also retrieve the URL of the corresponding SharePoint site.
44
+ Get information about the Microsoft 365 Group with id _1caf7dcd-7e83-4c3a-94f7-932a1299c844_ and also retrieve the URL of the corresponding SharePoint site
48
45
 
49
46
  ```sh
50
- m365 entra m365group get --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --withSiteUrl
47
+ m365 entra m365group get --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --includeSiteUrl
51
48
  ```
52
49
 
53
50
  ## Response
@@ -16,56 +16,54 @@ m365 entra m365group list [options]
16
16
 
17
17
  ```md definition-list
18
18
  `-d, --displayName [displayName]`
19
- : Retrieve only groups with displayName starting with the specified value.
19
+ : Retrieve only groups with displayName starting with the specified value
20
20
 
21
21
  `-m, --mailNickname [displayName]`
22
- : Retrieve only groups with mailNickname starting with the specified value.
22
+ : Retrieve only groups with mailNickname starting with the specified value
23
23
 
24
24
  `--includeSiteUrl`
25
- : (deprecated. Use option `withSiteUrl` instead) Set to retrieve the site URL for each group.
26
-
27
- `--withSiteUrl`
28
- : Set to retrieve the site URL for each group.
25
+ : Set to retrieve the site URL for each group
29
26
 
30
27
  `--orphaned`
31
- : Set to only retrieve groups without owners.
28
+ : Set to only retrieve groups without owners
32
29
  ```
33
30
 
34
31
  <Global />
35
32
 
36
33
  ## Remarks
37
34
 
38
- Using the `--withSiteUrl` option, you can retrieve the URL of the site associated with the particular Microsoft 365 Group. If you however retrieve too many groups and will try to get their site URLs, you will most likely get an error as the command will get throttled, issuing too many requests, too frequently. If you get an error, consider narrowing down the result set using the `--displayName` and `--mailNickname` filters.
35
+ Using the `--includeSiteUrl` option, you can retrieve the URL of the site associated with the particular Microsoft 365 Group. If you however retrieve too many groups and will try to get their site URLs, you will most likely get an error as the command will get throttled, issuing too many requests, too frequently. If you get an error, consider narrowing down the result set using the `--displayName` and `--mailNickname` filters.
39
36
 
40
37
  Using the `--orphaned` option, you can retrieve Microsoft 365 Groups without owners.
41
38
 
42
39
  ## Examples
43
40
 
44
- List all Microsoft 365 Groups in the tenant.
41
+ List all Microsoft 365 Groups in the tenant
45
42
 
46
43
  ```sh
47
44
  m365 entra m365group list
48
45
  ```
49
46
 
50
- List Microsoft 365 Groups with display name starting with _Project_.
47
+ List Microsoft 365 Groups with display name starting with _Project_
51
48
 
52
49
  ```sh
53
50
  m365 entra m365group list --displayName Project
54
51
  ```
55
52
 
56
- List Microsoft 365 Groups mail nick name starting with _team_.
53
+ List Microsoft 365 Groups mail nick name starting with _team_
57
54
 
58
55
  ```sh
59
56
  m365 entra m365group list --mailNickname team
60
57
  ```
61
58
 
62
- List Microsoft 365 Groups with display name starting with _Project_ including the URL of the corresponding SharePoint site.
59
+ List Microsoft 365 Groups with display name starting with _Project_ including
60
+ the URL of the corresponding SharePoint site
63
61
 
64
62
  ```sh
65
- m365 entra m365group list --displayName Project --withSiteUrl
63
+ m365 entra m365group list --displayName Project --includeSiteUrl
66
64
  ```
67
65
 
68
- List Microsoft 365 Groups without owners.
66
+ List Microsoft 365 Groups without owners
69
67
 
70
68
  ```sh
71
69
  m365 entra m365group list --orphaned
@@ -28,9 +28,6 @@ m365 entra pim role assignment eligibility list [options]
28
28
  : Display name of the group for which to list eligible roles. Specify either `userId`, `userName`, `groupId` or `groupName`. If not specified, all eligible roles will be listed.
29
29
 
30
30
  `--includePrincipalDetails`
31
- : (deprecated. Use option `withPrincipalDetails` instead) An optional flag to include details of the principals that were eligible for a role.
32
-
33
- `--withPrincipalDetails`
34
31
  : An optional flag to include details of the principals that were eligible for a role.
35
32
  ```
36
33
 
@@ -53,7 +50,7 @@ m365 entra pim role assignment eligibility list --userId '@meID'
53
50
  Get a list of eligible roles for any user with principal details.
54
51
 
55
52
  ```sh
56
- m365 entra pim role assignment eligibility list --withPrincipalDetails
53
+ m365 entra pim role assignment eligibility list --includePrincipalDetails
57
54
  ```
58
55
 
59
56
  ## Response
@@ -124,9 +121,9 @@ m365 entra pim role assignment eligibility list --withPrincipalDetails
124
121
  </TabItem>
125
122
  </Tabs>
126
123
 
127
- ### `withPrincipalDetails` response
124
+ ### `includePrincipalDetails` response
128
125
 
129
- When we make use of the option `withPrincipalDetails` the response will differ.
126
+ When we make use of the option `includePrincipalDetails` the response will differ.
130
127
 
131
128
  <Tabs>
132
129
  <TabItem value="JSON">
@@ -186,7 +183,7 @@ When we make use of the option `withPrincipalDetails` the response will differ.
186
183
  <TabItem value="Markdown">
187
184
 
188
185
  ```md
189
- # entra pim role assignment eligibility list --withPrincipalDetails "true"
186
+ # entra pim role assignment eligibility list --includePrincipalDetails "true"
190
187
 
191
188
  Date: 4/8/2024
192
189
 
@@ -31,10 +31,7 @@ m365 entra pim role assignment list [options]
31
31
  : An optional ISO 8601 formatted date filter to search from.
32
32
 
33
33
  `--includePrincipalDetails`
34
- : (deprecated. Use option `withPrincipalDetails` instead) An optional flag to include details of the principals that were assigned a role.
35
-
36
- `--withPrincipalDetails`
37
- : An optional flag to include details of the principals that were assigned a role.
34
+ : An optional flag to include details of the principals that were assigned a role
38
35
  ```
39
36
 
40
37
  <Global />
@@ -53,7 +50,7 @@ Get a list of Entra role assignments for the current user.
53
50
  m365 entra pim role assignment list --userId '@meID'
54
51
  ```
55
52
 
56
- Get a list of Entra role assignments since the first of January 2024.
53
+ Get a list of Entra role assignments since the first of January 2024
57
54
 
58
55
  ```sh
59
56
  m365 entra pim role assignment list --startDateTime 2024-01-01T00:00:00Z
@@ -62,7 +59,7 @@ m365 entra pim role assignment list --startDateTime 2024-01-01T00:00:00Z
62
59
  Get a list of Entra role assignments with principal details.
63
60
 
64
61
  ```sh
65
- m365 entra pim role assignment list --withPrincipalDetails
62
+ m365 entra pim role assignment list --includePrincipalDetails
66
63
  ```
67
64
 
68
65
  ## Response
@@ -138,9 +135,9 @@ m365 entra pim role assignment list --withPrincipalDetails
138
135
  </TabItem>
139
136
  </Tabs>
140
137
 
141
- ### `withPrincipalDetails` response
138
+ ### `includePrincipalDetails` response
142
139
 
143
- When we make use of the option `withPrincipalDetails` the response will differ.
140
+ When we make use of the option `includePrincipalDetails` the response will differ.
144
141
 
145
142
  <Tabs>
146
143
  <TabItem value="JSON">
@@ -204,7 +201,7 @@ When we make use of the option `withPrincipalDetails` the response will differ.
204
201
  <TabItem value="Markdown">
205
202
 
206
203
  ```md
207
- # entra pim role assignment list --withPrincipalDetails "true"
204
+ # entra pim role assignment list --includePrincipalDetails "true"
208
205
 
209
206
  Date: 3/31/2024
210
207
 
@@ -34,9 +34,6 @@ m365 entra pim role request list [options]
34
34
  : An optional value to filter the list of requests. Allowed values are: `Canceled`, `Denied`, `Failed`, `Granted`, `PendingAdminDecision`, `PendingApproval`, `PendingProvisioning`, `PendingScheduleCreation`, `Provisioned`, `Revoked`, and `ScheduleCreated`.
35
35
 
36
36
  `--includePrincipalDetails`
37
- : (deprecated. Use option `withPrincipalDetails` instead) An optional flag to include details of the principals that were assigned a role.
38
-
39
- `--withPrincipalDetails`
40
37
  : An optional flag to include details of the principals that were assigned a role.
41
38
  ```
42
39
 
@@ -65,7 +62,7 @@ m365 entra pim role request list --createdDateTime 2024-01-01T00:00:00Z
65
62
  Get a list of PIM requests with principal details.
66
63
 
67
64
  ```sh
68
- m365 entra pim role request list --withPrincipalDetails
65
+ m365 entra pim role request list --includePrincipalDetails
69
66
  ```
70
67
 
71
68
  Get a list of PIM requests with pending approvals.
@@ -161,9 +158,9 @@ m365 entra pim role request list --status PendingApproval
161
158
  </TabItem>
162
159
  </Tabs>
163
160
 
164
- ### `withPrincipalDetails` response
161
+ ### `includePrincipalDetails` response
165
162
 
166
- When we make use of the option `withPrincipalDetails` the response will differ.
163
+ When we make use of the option `includePrincipalDetails` the response will differ.
167
164
 
168
165
  <Tabs>
169
166
  <TabItem value="JSON">
@@ -241,7 +238,7 @@ When we make use of the option `withPrincipalDetails` the response will differ.
241
238
  <TabItem value="Markdown">
242
239
 
243
240
  ```md
244
- # entra pim role request list --withPrincipalDetails "true"
241
+ # entra pim role request list --includePrincipalDetails "true"
245
242
 
246
243
  Date: 5/30/2024
247
244
 
@@ -22,9 +22,6 @@ m365 flow list [options]
22
22
  : List a specific type of flows. Valid values: `ownedByMe`, `personal`, `sharedWithMe`, `all`. Defaults to `ownedByMe`. Don't specify this option when using asAdmin.
23
23
 
24
24
  `--includeSolutions`
25
- : (deprecated. Use option `withSolutions` instead) Include flows from solutions.
26
-
27
- `--withSolutions`
28
25
  : Include flows from solutions.
29
26
 
30
27
  `--asAdmin`
@@ -52,28 +49,28 @@ When you specify a value for `sharingStatus`, consider the following:
52
49
 
53
50
  ## Examples
54
51
 
55
- List all your flows in the given environment.
52
+ List all your flows in the given environment
56
53
 
57
54
  ```sh
58
55
  m365 flow list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5
59
56
  ```
60
57
 
61
- List all flows in the given environment.
58
+ List all flows in the given environment
62
59
 
63
60
  ```sh
64
61
  m365 flow list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --asAdmin
65
62
  ```
66
63
 
67
- List all flows that are shared with the current user.
64
+ List all flows that are shared with the current user
68
65
 
69
66
  ```sh
70
67
  m365 flow list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --sharingStatus sharedWithMe
71
68
  ```
72
69
 
73
- List all personal flows and include flows from solutions.
70
+ List all personal flows and include flows from solutions
74
71
 
75
72
  ```sh
76
- m365 flow list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --sharingStatus personal --withSolutions
73
+ m365 flow list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --sharingStatus personal --includeSolutions
77
74
  ```
78
75
 
79
76
  ## Response
@@ -22,7 +22,7 @@ m365 flow run get [options]
22
22
  : The name of the Power Automate flow for which to retrieve information.
23
23
 
24
24
  `-e, --environmentName <environmentName>`
25
- : The name of the environment where the flow is located.
25
+ : The name of the environment where the flow is located
26
26
 
27
27
  `--includeTriggerInformation`
28
28
  : (deprecated. Use option `withTrigger` instead) If specified, include information about the trigger details.