@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
@@ -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 _EntraM365GroupGetCommand_instances, _EntraM365GroupGetCommand_initTelemetry, _EntraM365GroupGetCommand_initOptions, _EntraM365GroupGetCommand_initValidators, _EntraM365GroupGetCommand_initOptionSets, _EntraM365GroupGetCommand_initTypes;
6
+ var _EntraM365GroupGetCommand_instances, _EntraM365GroupGetCommand_initOptions, _EntraM365GroupGetCommand_initValidators, _EntraM365GroupGetCommand_initOptionSets, _EntraM365GroupGetCommand_initTypes;
7
7
  import request from '../../../../request.js';
8
8
  import { entraGroup } from '../../../../utils/entraGroup.js';
9
9
  import { validation } from '../../../../utils/validation.js';
@@ -19,16 +19,12 @@ class EntraM365GroupGetCommand extends GraphCommand {
19
19
  constructor() {
20
20
  super();
21
21
  _EntraM365GroupGetCommand_instances.add(this);
22
- __classPrivateFieldGet(this, _EntraM365GroupGetCommand_instances, "m", _EntraM365GroupGetCommand_initTelemetry).call(this);
23
22
  __classPrivateFieldGet(this, _EntraM365GroupGetCommand_instances, "m", _EntraM365GroupGetCommand_initOptions).call(this);
24
23
  __classPrivateFieldGet(this, _EntraM365GroupGetCommand_instances, "m", _EntraM365GroupGetCommand_initValidators).call(this);
25
24
  __classPrivateFieldGet(this, _EntraM365GroupGetCommand_instances, "m", _EntraM365GroupGetCommand_initOptionSets).call(this);
26
25
  __classPrivateFieldGet(this, _EntraM365GroupGetCommand_instances, "m", _EntraM365GroupGetCommand_initTypes).call(this);
27
26
  }
28
27
  async commandAction(logger, args) {
29
- if (args.options.includeSiteUrl) {
30
- await this.warn(logger, `Parameter 'includeSiteUrl' is deprecated. Please use 'withSiteUrl' instead`);
31
- }
32
28
  let group;
33
29
  try {
34
30
  if (args.options.id) {
@@ -50,7 +46,7 @@ class EntraM365GroupGetCommand extends GraphCommand {
50
46
  };
51
47
  const groupExtended = await request.get(requestExtendedOptions);
52
48
  group = { ...group, ...groupExtended };
53
- if (args.options.includeSiteUrl || args.options.withSiteUrl) {
49
+ if (args.options.includeSiteUrl) {
54
50
  const requestOptions = {
55
51
  url: `${this.resource}/v1.0/groups/${group.id}/drive?$select=webUrl`,
56
52
  headers: {
@@ -68,22 +64,13 @@ class EntraM365GroupGetCommand extends GraphCommand {
68
64
  }
69
65
  }
70
66
  }
71
- _EntraM365GroupGetCommand_instances = new WeakSet(), _EntraM365GroupGetCommand_initTelemetry = function _EntraM365GroupGetCommand_initTelemetry() {
72
- this.telemetry.push((args) => {
73
- Object.assign(this.telemetryProperties, {
74
- includeSiteUrl: !!args.options.includeSiteUrl,
75
- withSiteUrl: !!args.options.withSiteUrl
76
- });
77
- });
78
- }, _EntraM365GroupGetCommand_initOptions = function _EntraM365GroupGetCommand_initOptions() {
67
+ _EntraM365GroupGetCommand_instances = new WeakSet(), _EntraM365GroupGetCommand_initOptions = function _EntraM365GroupGetCommand_initOptions() {
79
68
  this.options.unshift({
80
69
  option: '-i, --id [id]'
81
70
  }, {
82
71
  option: '-n, --displayName [displayName]'
83
72
  }, {
84
73
  option: '--includeSiteUrl'
85
- }, {
86
- option: '--withSiteUrl'
87
74
  });
88
75
  }, _EntraM365GroupGetCommand_initValidators = function _EntraM365GroupGetCommand_initValidators() {
89
76
  this.validators.push(async (args) => {
@@ -26,9 +26,6 @@ class EntraM365GroupListCommand extends GraphCommand {
26
26
  return ['id', 'displayName', 'mailNickname', 'siteUrl'];
27
27
  }
28
28
  async commandAction(logger, args) {
29
- if (args.options.includeSiteUrl) {
30
- await this.warn(logger, `Parameter 'includeSiteUrl' is deprecated. Please use 'withSiteUrl' instead`);
31
- }
32
29
  const groupFilter = `?$filter=groupTypes/any(c:c+eq+'Unified')`;
33
30
  const displayNameFilter = args.options.displayName ? ` and startswith(DisplayName,'${formatting.encodeQueryParameter(args.options.displayName)}')` : '';
34
31
  const mailNicknameFilter = args.options.mailNickname ? ` and startswith(MailNickname,'${formatting.encodeQueryParameter(args.options.mailNickname)}')` : '';
@@ -46,7 +43,7 @@ class EntraM365GroupListCommand extends GraphCommand {
46
43
  });
47
44
  groups = orphanedGroups;
48
45
  }
49
- if (args.options.includeSiteUrl || args.options.withSiteUrl) {
46
+ if (args.options.includeSiteUrl) {
50
47
  const res = await Promise.all(groups.map(g => this.getGroupSiteUrl(g.id)));
51
48
  res.forEach(r => {
52
49
  for (let i = 0; i < groups.length; i++) {
@@ -85,7 +82,6 @@ _EntraM365GroupListCommand_instances = new WeakSet(), _EntraM365GroupListCommand
85
82
  displayName: typeof args.options.displayName !== 'undefined',
86
83
  mailNickname: typeof args.options.mailNickname !== 'undefined',
87
84
  includeSiteUrl: args.options.includeSiteUrl,
88
- withSiteUrl: !!args.options.withSiteUrl,
89
85
  orphaned: !!args.options.orphaned
90
86
  });
91
87
  });
@@ -96,8 +92,6 @@ _EntraM365GroupListCommand_instances = new WeakSet(), _EntraM365GroupListCommand
96
92
  option: '-m, --mailNickname [displayName]'
97
93
  }, {
98
94
  option: '--includeSiteUrl'
99
- }, {
100
- option: '--withSiteUrl'
101
95
  }, {
102
96
  option: '--orphaned'
103
97
  });
@@ -29,9 +29,6 @@ class EntraPimRoleAssignmentEligibilityListCommand extends GraphCommand {
29
29
  __classPrivateFieldGet(this, _EntraPimRoleAssignmentEligibilityListCommand_instances, "m", _EntraPimRoleAssignmentEligibilityListCommand_initOptionSets).call(this);
30
30
  }
31
31
  async commandAction(logger, args) {
32
- if (args.options.includePrincipalDetails) {
33
- await this.warn(logger, `Parameter 'includePrincipalDetails' is deprecated. Please use 'withPrincipalDetails' instead`);
34
- }
35
32
  if (this.verbose) {
36
33
  await logger.logToStderr(`Retrieving list of eligible roles for ${args.options.userId || args.options.userName || args.options.groupId || args.options.groupName || 'all users'}...`);
37
34
  }
@@ -43,7 +40,7 @@ class EntraPimRoleAssignmentEligibilityListCommand extends GraphCommand {
43
40
  queryParameters.push(`$filter=principalId eq '${principalId}'`);
44
41
  }
45
42
  expands.push('roleDefinition($select=displayName)');
46
- if (args.options.includePrincipalDetails || args.options.withPrincipalDetails) {
43
+ if (args.options.includePrincipalDetails) {
47
44
  expands.push('principal');
48
45
  }
49
46
  queryParameters.push(`$expand=${expands.join(',')}`);
@@ -89,8 +86,7 @@ _EntraPimRoleAssignmentEligibilityListCommand_instances = new WeakSet(), _EntraP
89
86
  userName: typeof args.options.userName !== 'undefined',
90
87
  groupId: typeof args.options.groupId !== 'undefined',
91
88
  groupName: typeof args.options.groupName !== 'undefined',
92
- includePrincipalDetails: !!args.options.includePrincipalDetails,
93
- withPrincipalDetails: !!args.options.withPrincipalDetails
89
+ includePrincipalDetails: !!args.options.includePrincipalDetails
94
90
  });
95
91
  });
96
92
  }, _EntraPimRoleAssignmentEligibilityListCommand_initOptions = function _EntraPimRoleAssignmentEligibilityListCommand_initOptions() {
@@ -103,9 +99,7 @@ _EntraPimRoleAssignmentEligibilityListCommand_instances = new WeakSet(), _EntraP
103
99
  }, {
104
100
  option: '--groupName [groupName]'
105
101
  }, {
106
- option: '--includePrincipalDetails'
107
- }, {
108
- option: '--withPrincipalDetails'
102
+ option: '--includePrincipalDetails [includePrincipalDetails]'
109
103
  });
110
104
  }, _EntraPimRoleAssignmentEligibilityListCommand_initValidators = function _EntraPimRoleAssignmentEligibilityListCommand_initValidators() {
111
105
  this.validators.push(async (args) => {
@@ -30,9 +30,6 @@ class EntraPimRoleAssignmentListCommand extends GraphCommand {
30
30
  const filters = [];
31
31
  const expands = [];
32
32
  try {
33
- if (args.options.includePrincipalDetails) {
34
- await this.warn(logger, `Parameter 'includePrincipalDetails' is deprecated. Please use 'withPrincipalDetails' instead`);
35
- }
36
33
  const principalId = await this.getPrincipalId(logger, args.options);
37
34
  if (principalId) {
38
35
  filters.push(`principalId eq '${principalId}'`);
@@ -44,7 +41,7 @@ class EntraPimRoleAssignmentListCommand extends GraphCommand {
44
41
  queryParameters.push(`$filter=${filters.join(' and ')}`);
45
42
  }
46
43
  expands.push('roleDefinition($select=displayName)');
47
- if (args.options.includePrincipalDetails || args.options.withPrincipalDetails) {
44
+ if (args.options.includePrincipalDetails) {
48
45
  expands.push('principal');
49
46
  }
50
47
  queryParameters.push(`$expand=${expands.join(',')}`);
@@ -85,8 +82,7 @@ _EntraPimRoleAssignmentListCommand_instances = new WeakSet(), _EntraPimRoleAssig
85
82
  groupId: typeof args.options.groupId !== 'undefined',
86
83
  groupName: typeof args.options.groupName !== 'undefined',
87
84
  startDateTime: typeof args.options.startDateTime !== 'undefined',
88
- includePrincipalDetails: !!args.options.includePrincipalDetails,
89
- withPrincipalDetails: !!args.options.withPrincipalDetails
85
+ includePrincipalDetails: !!args.options.includePrincipalDetails
90
86
  });
91
87
  });
92
88
  }, _EntraPimRoleAssignmentListCommand_initOptions = function _EntraPimRoleAssignmentListCommand_initOptions() {
@@ -101,9 +97,7 @@ _EntraPimRoleAssignmentListCommand_instances = new WeakSet(), _EntraPimRoleAssig
101
97
  }, {
102
98
  option: "-s, --startDateTime [startDateTime]"
103
99
  }, {
104
- option: "--includePrincipalDetails"
105
- }, {
106
- option: "--withPrincipalDetails"
100
+ option: "--includePrincipalDetails [includePrincipalDetails]"
107
101
  });
108
102
  }, _EntraPimRoleAssignmentListCommand_initValidators = function _EntraPimRoleAssignmentListCommand_initValidators() {
109
103
  this.validators.push(async (args) => {
@@ -30,9 +30,6 @@ class EntraPimRoleRequestListCommand extends GraphCommand {
30
30
  __classPrivateFieldGet(this, _EntraPimRoleRequestListCommand_instances, "m", _EntraPimRoleRequestListCommand_initOptionSets).call(this);
31
31
  }
32
32
  async commandAction(logger, args) {
33
- if (args.options.includePrincipalDetails) {
34
- await this.warn(logger, `Parameter 'includePrincipalDetails' is deprecated. Please use 'withPrincipalDetails' instead`);
35
- }
36
33
  if (this.verbose) {
37
34
  await logger.logToStderr(`Retrieving list of PIM roles requests for ${args.options.userId || args.options.userName || args.options.groupId || args.options.groupName || 'all users'}...`);
38
35
  }
@@ -54,7 +51,7 @@ class EntraPimRoleRequestListCommand extends GraphCommand {
54
51
  queryParameters.push(`$filter=${filters.join(' and ')}`);
55
52
  }
56
53
  expands.push('roleDefinition($select=displayName)');
57
- if (args.options.includePrincipalDetails || args.options.withPrincipalDetails) {
54
+ if (args.options.includePrincipalDetails) {
58
55
  expands.push('principal');
59
56
  }
60
57
  queryParameters.push(`$expand=${expands.join(',')}`);
@@ -103,8 +100,7 @@ _EntraPimRoleRequestListCommand_instances = new WeakSet(), _EntraPimRoleRequestL
103
100
  groupName: typeof args.options.groupName !== 'undefined',
104
101
  createdDateTime: typeof args.options.createdDateTime !== 'undefined',
105
102
  status: typeof args.options.status !== 'undefined',
106
- includePrincipalDetails: !!args.options.includePrincipalDetails,
107
- withPrincipalDetails: !!args.options.withPrincipalDetails
103
+ includePrincipalDetails: !!args.options.includePrincipalDetails
108
104
  });
109
105
  });
110
106
  }, _EntraPimRoleRequestListCommand_initOptions = function _EntraPimRoleRequestListCommand_initOptions() {
@@ -122,9 +118,7 @@ _EntraPimRoleRequestListCommand_instances = new WeakSet(), _EntraPimRoleRequestL
122
118
  option: '-s, --status [status]',
123
119
  autocomplete: this.allowedStatuses
124
120
  }, {
125
- option: '--includePrincipalDetails'
126
- }, {
127
- option: '--withPrincipalDetails'
121
+ option: '--includePrincipalDetails [includePrincipalDetails]'
128
122
  });
129
123
  }, _EntraPimRoleRequestListCommand_initValidators = function _EntraPimRoleRequestListCommand_initValidators() {
130
124
  this.validators.push(async (args) => {
@@ -28,33 +28,29 @@ class FlowListCommand extends PowerAutomateCommand {
28
28
  __classPrivateFieldGet(this, _FlowListCommand_instances, "m", _FlowListCommand_initTypes).call(this);
29
29
  }
30
30
  async commandAction(logger, args) {
31
- if (args.options.includeSolutions) {
32
- await this.warn(logger, `Parameter 'includeSolutions' is deprecated. Please use 'withSolutions' instead`);
33
- }
34
31
  if (this.verbose) {
35
32
  await logger.logToStderr(`Getting Power Automate flows${args.options.asAdmin ? ' as admin' : ''} in environment '${args.options.environmentName}'...`);
36
33
  }
37
34
  try {
38
- const { environmentName, asAdmin, sharingStatus, includeSolutions, withSolutions } = args.options;
35
+ const { environmentName, asAdmin, sharingStatus, includeSolutions } = args.options;
39
36
  let items = [];
40
- const shouldIncludeSolutions = withSolutions || includeSolutions;
41
37
  if (sharingStatus === 'personal') {
42
- const url = this.getApiUrl(environmentName, asAdmin, shouldIncludeSolutions, 'personal');
38
+ const url = this.getApiUrl(environmentName, asAdmin, includeSolutions, 'personal');
43
39
  items = await odata.getAllItems(url);
44
40
  }
45
41
  else if (sharingStatus === 'sharedWithMe') {
46
- const url = this.getApiUrl(environmentName, asAdmin, shouldIncludeSolutions, 'team');
42
+ const url = this.getApiUrl(environmentName, asAdmin, includeSolutions, 'team');
47
43
  items = await odata.getAllItems(url);
48
44
  }
49
45
  else if (sharingStatus === 'all') {
50
- let url = this.getApiUrl(environmentName, asAdmin, shouldIncludeSolutions, 'personal');
46
+ let url = this.getApiUrl(environmentName, asAdmin, includeSolutions, 'personal');
51
47
  items = await odata.getAllItems(url);
52
- url = this.getApiUrl(environmentName, asAdmin, shouldIncludeSolutions, 'team');
48
+ url = this.getApiUrl(environmentName, asAdmin, includeSolutions, 'team');
53
49
  const teamFlows = await odata.getAllItems(url);
54
50
  items = items.concat(teamFlows);
55
51
  }
56
52
  else {
57
- const url = this.getApiUrl(environmentName, asAdmin, shouldIncludeSolutions);
53
+ const url = this.getApiUrl(environmentName, asAdmin, includeSolutions);
58
54
  items = await odata.getAllItems(url);
59
55
  }
60
56
  // Remove duplicates
@@ -85,7 +81,6 @@ _FlowListCommand_instances = new WeakSet(), _FlowListCommand_initTelemetry = fun
85
81
  Object.assign(this.telemetryProperties, {
86
82
  sharingStatus: typeof args.options.sharingStatus !== 'undefined',
87
83
  includeSolutions: !!args.options.includeSolutions,
88
- withSolutions: !!args.options.withSolutions,
89
84
  asAdmin: !!args.options.asAdmin
90
85
  });
91
86
  });
@@ -97,8 +92,6 @@ _FlowListCommand_instances = new WeakSet(), _FlowListCommand_initTelemetry = fun
97
92
  autocomplete: this.allowedSharingStatuses
98
93
  }, {
99
94
  option: '--includeSolutions'
100
- }, {
101
- option: '--withSolutions'
102
95
  }, {
103
96
  option: '--asAdmin'
104
97
  });
@@ -114,7 +107,7 @@ _FlowListCommand_instances = new WeakSet(), _FlowListCommand_initTelemetry = fun
114
107
  });
115
108
  }, _FlowListCommand_initTypes = function _FlowListCommand_initTypes() {
116
109
  this.types.string.push('environmentName', 'sharingStatus');
117
- this.types.boolean.push('includeSolutions', 'withSolutions', 'asAdmin');
110
+ this.types.boolean.push('includeSolutions', 'asAdmin');
118
111
  };
119
112
  export default new FlowListCommand();
120
113
  //# sourceMappingURL=flow-list.js.map
@@ -28,7 +28,7 @@ class FlowRunGetCommand extends PowerAutomateCommand {
28
28
  await logger.logToStderr(`Retrieving information about run ${args.options.name} of Microsoft Flow ${args.options.flowName}...`);
29
29
  }
30
30
  if (args.options.includeTriggerInformation) {
31
- await this.warn(logger, `Parameter 'includeTriggerInformation' is deprecated. Please use 'withTrigger' instead`);
31
+ await this.warn(logger, `Parameter 'includeTriggerInformation' is deprecated. Please use 'withTrigger instead`);
32
32
  }
33
33
  const actionsParameter = args.options.withActions ? '$expand=properties%2Factions&' : '';
34
34
  const requestOptions = {
@@ -49,7 +49,7 @@ class GraphSubscriptionAddCommand extends GraphCommand {
49
49
  notificationUrl: args.options.notificationUrl,
50
50
  expirationDateTime: await this.getExpirationDateTimeOrDefault(logger, args),
51
51
  clientState: args.options.clientState,
52
- includeResourceData: args.options.withResourceData || args.options.includeResourceData,
52
+ includeResourceData: args.options.includeResourceData,
53
53
  encryptionCertificate: args.options.encryptionCertificate,
54
54
  encryptionCertificateId: args.options.encryptionCertificateId,
55
55
  lifecycleNotificationUrl: args.options.lifecycleNotificationUrl,
@@ -66,9 +66,6 @@ class GraphSubscriptionAddCommand extends GraphCommand {
66
66
  responseType: 'json'
67
67
  };
68
68
  try {
69
- if (args.options.includeResourceData) {
70
- await this.warn(logger, `Parameter 'includeResourceData' is deprecated. Please use 'withResourceData' instead`);
71
- }
72
69
  const res = await request.post(requestOptions);
73
70
  await logger.log(res);
74
71
  }
@@ -136,7 +133,6 @@ _GraphSubscriptionAddCommand_instances = new WeakSet(), _GraphSubscriptionAddCom
136
133
  notificationUrlAppId: typeof args.options.notificationUrlAppId !== 'undefined',
137
134
  latestTLSVersion: typeof args.options.latestTLSVersion !== 'undefined',
138
135
  includeResourceData: !!args.options.includeResourceData,
139
- withResourceData: !!args.options.withResourceData,
140
136
  encryptionCertificate: typeof args.options.encryptionCertificate !== 'undefined',
141
137
  encryptionCertificateId: typeof args.options.encryptionCertificateId !== 'undefined'
142
138
  });
@@ -162,8 +158,6 @@ _GraphSubscriptionAddCommand_instances = new WeakSet(), _GraphSubscriptionAddCom
162
158
  autocomplete: this.allowedTlsVersions
163
159
  }, {
164
160
  option: '--includeResourceData [includeResourceData]'
165
- }, {
166
- option: '--withResourceData [withResourceData]'
167
161
  }, {
168
162
  option: '--encryptionCertificate [encryptionCertificate]'
169
163
  }, {
@@ -193,11 +187,10 @@ _GraphSubscriptionAddCommand_instances = new WeakSet(), _GraphSubscriptionAddCom
193
187
  if (args.options.latestTLSVersion && this.allowedTlsVersions.map(x => x.toLowerCase()).indexOf(args.options.latestTLSVersion.toLowerCase()) === -1) {
194
188
  return `${args.options.latestTLSVersion} is not a valid TLS version. Allowed values are ${this.allowedTlsVersions.join(', ')}`;
195
189
  }
196
- const shouldIncludeResourceData = args.options.includeResourceData || args.options.withResourceData;
197
- if (shouldIncludeResourceData && !args.options.encryptionCertificate) {
190
+ if (args.options.includeResourceData && !args.options.encryptionCertificate) {
198
191
  return `The 'encryptionCertificate' options is required to include the changed resource data`;
199
192
  }
200
- if (shouldIncludeResourceData && !args.options.encryptionCertificateId) {
193
+ if (args.options.includeResourceData && !args.options.encryptionCertificateId) {
201
194
  return `The 'encryptionCertificateId' options is required to include the changed resource data`;
202
195
  }
203
196
  if (args.options.notificationUrlAppId && !validation.isValidGuid(args.options.notificationUrlAppId)) {
@@ -25,17 +25,13 @@ class PpSolutionPublisherListCommand extends PowerPlatformCommand {
25
25
  __classPrivateFieldGet(this, _PpSolutionPublisherListCommand_instances, "m", _PpSolutionPublisherListCommand_initOptions).call(this);
26
26
  }
27
27
  async commandAction(logger, args) {
28
- if (args.options.includeMicrosoftPublishers) {
29
- await this.warn(logger, `Parameter 'includeMicrosoftPublishers' is deprecated. Please use 'withMicrosoftPublishers' instead`);
30
- }
31
28
  if (this.verbose) {
32
29
  await logger.logToStderr(`Retrieving list of publishers...`);
33
30
  }
34
31
  try {
35
32
  const dynamicsApiUrl = await powerPlatform.getDynamicsInstanceApiUrl(args.options.environmentName, args.options.asAdmin);
36
- const shouldIncludeMicrosoftPublishers = args.options.withMicrosoftPublishers || args.options.includeMicrosoftPublishers;
37
33
  const requestOptions = {
38
- url: `${dynamicsApiUrl}/api/data/v9.0/publishers?$select=publisherid,uniquename,friendlyname,versionnumber,isreadonly,description,customizationprefix,customizationoptionvalueprefix${!shouldIncludeMicrosoftPublishers ? `&$filter=publisherid ne 'd21aab70-79e7-11dd-8874-00188b01e34f'` : ''}&api-version=9.1`,
34
+ url: `${dynamicsApiUrl}/api/data/v9.0/publishers?$select=publisherid,uniquename,friendlyname,versionnumber,isreadonly,description,customizationprefix,customizationoptionvalueprefix${!args.options.includeMicrosoftPublishers ? `&$filter=publisherid ne 'd21aab70-79e7-11dd-8874-00188b01e34f'` : ''}&api-version=9.1`,
39
35
  headers: {
40
36
  accept: 'application/json;odata.metadata=none'
41
37
  },
@@ -53,7 +49,6 @@ _PpSolutionPublisherListCommand_instances = new WeakSet(), _PpSolutionPublisherL
53
49
  this.telemetry.push((args) => {
54
50
  Object.assign(this.telemetryProperties, {
55
51
  includeMicrosoftPublishers: typeof args.options.includeMicrosoftPublishers !== 'undefined',
56
- withMicrosoftPublishers: typeof args.options.withMicrosoftPublishers !== 'undefined',
57
52
  asAdmin: !!args.options.asAdmin
58
53
  });
59
54
  });
@@ -62,8 +57,6 @@ _PpSolutionPublisherListCommand_instances = new WeakSet(), _PpSolutionPublisherL
62
57
  option: '-e, --environmentName <environmentName>'
63
58
  }, {
64
59
  option: '--includeMicrosoftPublishers'
65
- }, {
66
- option: '--withMicrosoftPublishers'
67
60
  }, {
68
61
  option: '--asAdmin'
69
62
  });
@@ -24,15 +24,11 @@ class PurviewThreatAssessmentGetCommand extends GraphCommand {
24
24
  }
25
25
  async commandAction(logger, args) {
26
26
  try {
27
- if (args.options.includeResults) {
28
- await this.warn(logger, `Parameter 'includeResults' is deprecated. Please use 'withResults' instead`);
29
- }
30
27
  if (this.verbose) {
31
28
  await logger.logToStderr(`Retrieving threat assessment with id ${args.options.id}`);
32
29
  }
33
- const shouldIncludeResults = args.options.includeResults || args.options.withResults;
34
30
  const requestOptions = {
35
- url: `${this.resource}/v1.0/informationProtection/threatAssessmentRequests/${args.options.id}${shouldIncludeResults ? '?$expand=results' : ''}`,
31
+ url: `${this.resource}/v1.0/informationProtection/threatAssessmentRequests/${args.options.id}${args.options.includeResults ? '?$expand=results' : ''}`,
36
32
  headers: {
37
33
  accept: 'application/json;odata.metadata=none'
38
34
  },
@@ -49,8 +45,7 @@ class PurviewThreatAssessmentGetCommand extends GraphCommand {
49
45
  _PurviewThreatAssessmentGetCommand_instances = new WeakSet(), _PurviewThreatAssessmentGetCommand_initTelemetry = function _PurviewThreatAssessmentGetCommand_initTelemetry() {
50
46
  this.telemetry.push((args) => {
51
47
  Object.assign(this.telemetryProperties, {
52
- includeResults: !!args.options.includeResults,
53
- withResults: !!args.options.withResults
48
+ includeResults: !!args.options.includeResults
54
49
  });
55
50
  });
56
51
  }, _PurviewThreatAssessmentGetCommand_initOptions = function _PurviewThreatAssessmentGetCommand_initOptions() {
@@ -58,8 +53,6 @@ _PurviewThreatAssessmentGetCommand_instances = new WeakSet(), _PurviewThreatAsse
58
53
  option: '-i, --id <id>'
59
54
  }, {
60
55
  option: '--includeResults'
61
- }, {
62
- option: '--withResults'
63
56
  });
64
57
  }, _PurviewThreatAssessmentGetCommand_initValidators = function _PurviewThreatAssessmentGetCommand_initValidators() {
65
58
  this.validators.push(async (args) => {
@@ -35,9 +35,6 @@ class SpoFileMoveCommand extends SpoCommand {
35
35
  const sourceServerRelativePath = await this.getSourcePath(logger, args.options);
36
36
  const sourcePath = this.getAbsoluteUrl(args.options.webUrl, sourceServerRelativePath);
37
37
  const destinationPath = this.getAbsoluteUrl(args.options.webUrl, args.options.targetUrl);
38
- if (args.options.includeItemPermissions) {
39
- await this.warn(logger, `Parameter 'includeItemPermissions' is deprecated. Please use 'withItemPermissions' instead`);
40
- }
41
38
  if (this.verbose) {
42
39
  await logger.logToStderr(`Moving file '${sourceServerRelativePath}' to '${args.options.targetUrl}'...`);
43
40
  }
@@ -49,7 +46,7 @@ class SpoFileMoveCommand extends SpoCommand {
49
46
  const copyJobResponse = await spo.createFileCopyJob(args.options.webUrl, sourcePath, destinationPath, {
50
47
  nameConflictBehavior: this.getNameConflictBehaviorValue(args.options.nameConflictBehavior),
51
48
  bypassSharedLock: !!args.options.bypassSharedLock,
52
- includeItemPermissions: !!args.options.includeItemPermissions || !!args.options.withItemPermissions,
49
+ includeItemPermissions: !!args.options.includeItemPermissions,
53
50
  newName: newName,
54
51
  operation: 'move'
55
52
  });
@@ -122,7 +119,6 @@ _SpoFileMoveCommand_instances = new WeakSet(), _SpoFileMoveCommand_initTelemetry
122
119
  newName: typeof args.options.newName !== 'undefined',
123
120
  nameConflictBehavior: typeof args.options.nameConflictBehavior !== 'undefined',
124
121
  includeItemPermissions: !!args.options.includeItemPermissions,
125
- withItemPermissions: !!args.options.withItemPermissions,
126
122
  bypassSharedLock: !!args.options.bypassSharedLock,
127
123
  skipWait: !!args.options.skipWait
128
124
  });
@@ -143,8 +139,6 @@ _SpoFileMoveCommand_instances = new WeakSet(), _SpoFileMoveCommand_initTelemetry
143
139
  autocomplete: this.nameConflictBehaviorOptions
144
140
  }, {
145
141
  option: '--includeItemPermissions'
146
- }, {
147
- option: '--withItemPermissions'
148
142
  }, {
149
143
  option: '--bypassSharedLock'
150
144
  }, {
@@ -168,7 +162,7 @@ _SpoFileMoveCommand_instances = new WeakSet(), _SpoFileMoveCommand_initTelemetry
168
162
  this.optionSets.push({ options: ['sourceUrl', 'sourceId'] });
169
163
  }, _SpoFileMoveCommand_initTypes = function _SpoFileMoveCommand_initTypes() {
170
164
  this.types.string.push('webUrl', 'sourceUrl', 'sourceId', 'targetUrl', 'newName', 'nameConflictBehavior');
171
- this.types.boolean.push('includeItemPermissions', 'withItemPermissions', 'bypassSharedLock', 'skipWait');
165
+ this.types.boolean.push('includeItemPermissions', 'bypassSharedLock', 'skipWait');
172
166
  };
173
167
  export default new SpoFileMoveCommand();
174
168
  //# sourceMappingURL=file-move.js.map
@@ -29,20 +29,12 @@ class SpoHubSiteGetCommand extends SpoCommand {
29
29
  }
30
30
  async commandAction(logger, args) {
31
31
  try {
32
- if (args.options.includeAssociatedSites) {
33
- await this.warn(logger, `Parameter 'includeAssociatedSites' is deprecated. Please use 'withAssociatedSites' instead`);
34
- }
35
32
  const spoUrl = await spo.getSpoUrl(logger, this.debug);
36
33
  const hubSite = args.options.id ? await this.getHubSiteById(spoUrl, args.options) : await this.getHubSite(spoUrl, args.options);
37
- if ((args.options.includeAssociatedSites || args.options.withAssociatedSites) && (args.options.output && args.options.output !== 'json')) {
38
- if (args.options.includeAssociatedSites) {
39
- throw 'includeAssociatedSites option is only allowed with json output mode';
40
- }
41
- else {
42
- throw 'withAssociatedSites option is only allowed with json output mode';
43
- }
34
+ if (args.options.includeAssociatedSites && (args.options.output && args.options.output !== 'json')) {
35
+ throw 'includeAssociatedSites option is only allowed with json output mode';
44
36
  }
45
- if ((args.options.includeAssociatedSites === true || args.options.withAssociatedSites === true) && args.options.output && !cli.shouldTrimOutput(args.options.output)) {
37
+ if (args.options.includeAssociatedSites === true && args.options.output && !cli.shouldTrimOutput(args.options.output)) {
46
38
  const spoAdminUrl = await spo.getSpoAdminUrl(logger, this.debug);
47
39
  const associatedSitesCommandOutput = await this.getAssociatedSites(spoAdminUrl, hubSite.SiteId, logger, args);
48
40
  const associatedSites = JSON.parse(associatedSitesCommandOutput.stdout);
@@ -108,12 +100,11 @@ _SpoHubSiteGetCommand_instances = new WeakSet(), _SpoHubSiteGetCommand_initTelem
108
100
  id: typeof args.options.id !== 'undefined',
109
101
  title: typeof args.options.title !== 'undefined',
110
102
  url: typeof args.options.url !== 'undefined',
111
- includeAssociatedSites: args.options.includeAssociatedSites === true,
112
- withAssociatedSites: args.options.withAssociatedSites === true
103
+ includeAssociatedSites: args.options.includeAssociatedSites === true
113
104
  });
114
105
  });
115
106
  }, _SpoHubSiteGetCommand_initOptions = function _SpoHubSiteGetCommand_initOptions() {
116
- this.options.unshift({ option: '-i, --id [id]' }, { option: '-t, --title [title]' }, { option: '-u, --url [url]' }, { option: '--includeAssociatedSites' }, { option: '--withAssociatedSites' });
107
+ this.options.unshift({ option: '-i, --id [id]' }, { option: '-t, --title [title]' }, { option: '-u, --url [url]' }, { option: '--includeAssociatedSites' });
117
108
  }, _SpoHubSiteGetCommand_initValidators = function _SpoHubSiteGetCommand_initValidators() {
118
109
  this.validators.push(async (args) => {
119
110
  if (args.options.id && !validation.isValidGuid(args.options.id)) {
@@ -29,14 +29,10 @@ class SpoHubSiteListCommand extends SpoCommand {
29
29
  }
30
30
  async commandAction(logger, args) {
31
31
  try {
32
- if (args.options.includeAssociatedSites) {
33
- await this.warn(logger, `Parameter 'includeAssociatedSites' is deprecated. Please use 'withAssociatedSites' instead`);
34
- }
35
32
  const spoAdminUrl = await spo.getSpoAdminUrl(logger, this.debug);
36
33
  const hubSitesResult = await odata.getAllItems(`${spoAdminUrl}/_api/hubsites`);
37
34
  const hubSites = hubSitesResult;
38
- const shouldIncludeAssociatedSites = args.options.includeAssociatedSites || args.options.withAssociatedSites;
39
- if (!(shouldIncludeAssociatedSites !== true || args.options.output && args.options.output !== 'json')) {
35
+ if (!(args.options.includeAssociatedSites !== true || args.options.output && args.options.output !== 'json')) {
40
36
  if (this.debug) {
41
37
  await logger.logToStderr('Retrieving associated sites...');
42
38
  await logger.logToStderr('');
@@ -108,15 +104,12 @@ class SpoHubSiteListCommand extends SpoCommand {
108
104
  _SpoHubSiteListCommand_instances = new WeakSet(), _SpoHubSiteListCommand_initTelemetry = function _SpoHubSiteListCommand_initTelemetry() {
109
105
  this.telemetry.push((args) => {
110
106
  Object.assign(this.telemetryProperties, {
111
- includeAssociatedSites: args.options.includeAssociatedSites === true,
112
- withAssociatedSites: args.options.withAssociatedSites === true
107
+ includeAssociatedSites: args.options.includeAssociatedSites === true
113
108
  });
114
109
  });
115
110
  }, _SpoHubSiteListCommand_initOptions = function _SpoHubSiteListCommand_initOptions() {
116
111
  this.options.unshift({
117
112
  option: '-i, --includeAssociatedSites'
118
- }, {
119
- option: '--withAssociatedSites'
120
113
  });
121
114
  };
122
115
  export default new SpoHubSiteListCommand();