@pnp/cli-microsoft365 11.0.0-beta.3655c37 → 11.0.0-beta.4abfd23

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 (53) hide show
  1. package/allCommands.json +1 -1
  2. package/allCommandsFull.json +1 -1
  3. package/dist/m365/entra/commands/group/group-member-add.js +6 -27
  4. package/dist/m365/entra/commands/group/group-member-set.js +5 -26
  5. package/dist/m365/entra/commands/m365group/m365group-get.js +1 -7
  6. package/dist/m365/entra/commands/m365group/m365group-list.js +1 -7
  7. package/dist/m365/entra/commands/pim/pim-role-assignment-eligibility-list.js +1 -7
  8. package/dist/m365/entra/commands/pim/pim-role-assignment-list.js +1 -7
  9. package/dist/m365/entra/commands/pim/pim-role-request-list.js +1 -7
  10. package/dist/m365/flow/commands/flow-list.js +7 -14
  11. package/dist/m365/flow/commands/run/run-get.js +1 -7
  12. package/dist/m365/graph/commands/subscription/subscription-add.js +3 -10
  13. package/dist/m365/pp/commands/solution/solution-publisher-list.js +1 -8
  14. package/dist/m365/purview/commands/threatassessment/threatassessment-get.js +1 -7
  15. package/dist/m365/spo/commands/file/file-move.js +2 -8
  16. package/dist/m365/spo/commands/hubsite/hubsite-get.js +4 -13
  17. package/dist/m365/spo/commands/hubsite/hubsite-list.js +1 -8
  18. package/dist/m365/spo/commands/{tenant/tenant-site-archive.js → site/site-archive.js} +14 -14
  19. package/dist/m365/spo/commands/{tenant/tenant-site-list.js → site/site-list.js} +16 -27
  20. package/dist/m365/spo/commands/{tenant/tenant-site-membership-list.js → site/site-membership-list.js} +15 -15
  21. package/dist/m365/spo/commands/{tenant/tenant-site-rename.js → site/site-rename.js} +14 -14
  22. package/dist/m365/spo/commands/{tenant/tenant-site-unarchive.js → site/site-unarchive.js} +14 -14
  23. package/dist/m365/spo/commands/term/term-list.js +1 -7
  24. package/dist/m365/spo/commands.js +4 -5
  25. package/dist/m365/teams/commands/chat/chat-member-add.js +3 -9
  26. package/dist/m365/viva/commands/engage/engage-network-list.js +1 -7
  27. package/docs/docs/cmd/entra/group/group-member-add.mdx +7 -26
  28. package/docs/docs/cmd/entra/group/group-member-set.mdx +5 -23
  29. package/docs/docs/cmd/entra/m365group/m365group-get.mdx +0 -3
  30. package/docs/docs/cmd/entra/m365group/m365group-list.mdx +0 -3
  31. package/docs/docs/cmd/entra/pim/pim-role-assignment-eligibility-list.mdx +0 -3
  32. package/docs/docs/cmd/entra/pim/pim-role-assignment-list.mdx +0 -3
  33. package/docs/docs/cmd/entra/pim/pim-role-request-list.mdx +0 -3
  34. package/docs/docs/cmd/flow/flow-list.mdx +0 -3
  35. package/docs/docs/cmd/flow/run/run-get.mdx +0 -3
  36. package/docs/docs/cmd/graph/subscription/subscription-add.mdx +0 -3
  37. package/docs/docs/cmd/pp/solution/solution-publisher-list.mdx +0 -3
  38. package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +0 -3
  39. package/docs/docs/cmd/spo/file/file-move.mdx +0 -3
  40. package/docs/docs/cmd/spo/homesite/homesite-set.mdx +1 -1
  41. package/docs/docs/cmd/spo/hubsite/hubsite-get.mdx +0 -3
  42. package/docs/docs/cmd/spo/hubsite/hubsite-list.mdx +0 -3
  43. package/docs/docs/cmd/spo/{tenant/tenant-site-archive.mdx → site/site-archive.mdx} +4 -4
  44. package/docs/docs/cmd/spo/{tenant/tenant-site-list.mdx → site/site-list.mdx} +7 -16
  45. package/docs/docs/cmd/spo/{tenant/tenant-site-membership-list.mdx → site/site-membership-list.mdx} +5 -5
  46. package/docs/docs/cmd/spo/{tenant/tenant-site-rename.mdx → site/site-rename.mdx} +7 -7
  47. package/docs/docs/cmd/spo/{tenant/tenant-site-unarchive.mdx → site/site-unarchive.mdx} +4 -4
  48. package/docs/docs/cmd/spo/term/term-list.mdx +0 -3
  49. package/docs/docs/cmd/teams/chat/chat-member-add.mdx +2 -5
  50. package/docs/docs/cmd/viva/engage/engage-network-list.mdx +0 -3
  51. package/package.json +1 -1
  52. package/dist/m365/spo/commands/tenant/SPOTenantSitePropertiesEnumerable.js +0 -2
  53. package/dist/m365/spo/commands/tenant/TenantSiteProperties.js +0 -2
@@ -29,14 +29,8 @@ class EntraGroupMemberAddCommand extends GraphCommand {
29
29
  }
30
30
  async commandAction(logger, args) {
31
31
  try {
32
- if (args.options.groupDisplayName) {
33
- await this.warn(logger, `Option 'groupDisplayName' is deprecated and will be removed in the next major release.`);
34
- }
35
- if (args.options.ids) {
36
- await this.warn(logger, `Option 'ids' is deprecated and will be removed in the next major release. Please use 'userIds' instead.`);
37
- }
38
32
  if (this.verbose) {
39
- await logger.logToStderr(`Adding member(s) ${args.options.ids || args.options.userIds || args.options.userNames || args.options.subgroupIds || args.options.subgroupNames} to group ${args.options.groupId || args.options.groupDisplayName || args.options.groupName}...`);
33
+ await logger.logToStderr(`Adding member(s) ${args.options.userIds || args.options.userNames || args.options.subgroupIds || args.options.subgroupNames} to group ${args.options.groupId || args.options.groupName}...`);
40
34
  }
41
35
  const groupId = await this.getGroupId(logger, args.options);
42
36
  const objectIds = await this.getObjectIds(logger, args.options);
@@ -83,20 +77,17 @@ class EntraGroupMemberAddCommand extends GraphCommand {
83
77
  return options.groupId;
84
78
  }
85
79
  if (this.verbose) {
86
- await logger.logToStderr(`Retrieving ID of group ${options.groupDisplayName || options.groupName}...`);
80
+ await logger.logToStderr(`Retrieving ID of group ${options.groupName}...`);
87
81
  }
88
- return entraGroup.getGroupIdByDisplayName(options.groupDisplayName || options.groupName);
82
+ return entraGroup.getGroupIdByDisplayName(options.groupName);
89
83
  }
90
84
  async getObjectIds(logger, options) {
91
- if (options.ids || options.userIds || options.userNames) {
85
+ if (options.userIds || options.userNames) {
92
86
  return this.getUserIds(logger, options);
93
87
  }
94
88
  return this.getGroupIds(logger, options);
95
89
  }
96
90
  async getUserIds(logger, options) {
97
- if (options.ids) {
98
- return options.ids.split(',').map(i => i.trim());
99
- }
100
91
  if (options.userIds) {
101
92
  return options.userIds.split(',').map(i => i.trim());
102
93
  }
@@ -119,9 +110,7 @@ _EntraGroupMemberAddCommand_instances = new WeakSet(), _EntraGroupMemberAddComma
119
110
  this.telemetry.push((args) => {
120
111
  Object.assign(this.telemetryProperties, {
121
112
  groupId: typeof args.options.groupId !== 'undefined',
122
- groupDisplayName: typeof args.options.groupDisplayName !== 'undefined',
123
113
  groupName: typeof args.options.groupName !== 'undefined',
124
- ids: typeof args.options.ids !== 'undefined',
125
114
  userIds: typeof args.options.userIds !== 'undefined',
126
115
  userNames: typeof args.options.userNames !== 'undefined',
127
116
  subgroupIds: typeof args.options.subgroupIds !== 'undefined',
@@ -131,12 +120,8 @@ _EntraGroupMemberAddCommand_instances = new WeakSet(), _EntraGroupMemberAddComma
131
120
  }, _EntraGroupMemberAddCommand_initOptions = function _EntraGroupMemberAddCommand_initOptions() {
132
121
  this.options.unshift({
133
122
  option: '-i, --groupId [groupId]'
134
- }, {
135
- option: '--groupDisplayName [groupDisplayName]'
136
123
  }, {
137
124
  option: '-n, --groupName [groupName]'
138
- }, {
139
- option: '--ids [ids]'
140
125
  }, {
141
126
  option: '--userIds [userIds]'
142
127
  }, {
@@ -154,12 +139,6 @@ _EntraGroupMemberAddCommand_instances = new WeakSet(), _EntraGroupMemberAddComma
154
139
  if (args.options.groupId && !validation.isValidGuid(args.options.groupId)) {
155
140
  return `${args.options.groupId} is not a valid GUID for option groupId.`;
156
141
  }
157
- if (args.options.ids) {
158
- const isValidGUIDArrayResult = validation.isValidGuidArray(args.options.ids);
159
- if (isValidGUIDArrayResult !== true) {
160
- return `The following GUIDs are invalid for the option 'ids': ${isValidGUIDArrayResult}.`;
161
- }
162
- }
163
142
  if (args.options.userIds) {
164
143
  const isValidGUIDArrayResult = validation.isValidGuidArray(args.options.userIds);
165
144
  if (isValidGUIDArrayResult !== true) {
@@ -187,9 +166,9 @@ _EntraGroupMemberAddCommand_instances = new WeakSet(), _EntraGroupMemberAddComma
187
166
  return true;
188
167
  });
189
168
  }, _EntraGroupMemberAddCommand_initOptionSets = function _EntraGroupMemberAddCommand_initOptionSets() {
190
- this.optionSets.push({ options: ['groupId', 'groupDisplayName', 'groupName'] }, { options: ['ids', 'userIds', 'userNames', 'subgroupIds', 'subgroupNames'] });
169
+ this.optionSets.push({ options: ['groupId', 'groupName'] }, { options: ['userIds', 'userNames', 'subgroupIds', 'subgroupNames'] });
191
170
  }, _EntraGroupMemberAddCommand_initTypes = function _EntraGroupMemberAddCommand_initTypes() {
192
- this.types.string.push('groupId', 'groupDisplayName', 'groupName', 'ids', 'userIds', 'userNames', 'subgroupIds', 'subgroupNames', 'role');
171
+ this.types.string.push('groupId', 'groupName', 'ids', 'userIds', 'userNames', 'subgroupIds', 'subgroupNames', 'role');
193
172
  };
194
173
  export default new EntraGroupMemberAddCommand();
195
174
  //# sourceMappingURL=group-member-add.js.map
@@ -29,14 +29,8 @@ class EntraGroupMemberSetCommand extends GraphCommand {
29
29
  }
30
30
  async commandAction(logger, args) {
31
31
  try {
32
- if (args.options.groupDisplayName) {
33
- await this.warn(logger, `Option 'groupDisplayName' is deprecated and will be removed in the next major release.`);
34
- }
35
- if (args.options.ids) {
36
- await this.warn(logger, `Option 'ids' is deprecated and will be removed in the next major release. Please use 'userIds' instead.`);
37
- }
38
32
  if (this.verbose) {
39
- await logger.logToStderr(`Adding member(s) ${args.options.ids || args.options.userIds || args.options.userNames} to role ${args.options.role} of group ${args.options.groupId || args.options.groupDisplayName || args.options.groupName}...`);
33
+ await logger.logToStderr(`Adding member(s) ${args.options.userIds || args.options.userNames} to role ${args.options.role} of group ${args.options.groupId || args.options.groupName}...`);
40
34
  }
41
35
  const groupId = await this.getGroupId(logger, args.options);
42
36
  const userIds = await this.getUserIds(logger, args.options);
@@ -55,14 +49,11 @@ class EntraGroupMemberSetCommand extends GraphCommand {
55
49
  return options.groupId;
56
50
  }
57
51
  if (this.verbose) {
58
- await logger.logToStderr(`Retrieving ID of group ${options.groupDisplayName || options.groupName}...`);
52
+ await logger.logToStderr(`Retrieving ID of group ${options.groupName}...`);
59
53
  }
60
- return entraGroup.getGroupIdByDisplayName(options.groupDisplayName || options.groupName);
54
+ return entraGroup.getGroupIdByDisplayName(options.groupName);
61
55
  }
62
56
  async getUserIds(logger, options) {
63
- if (options.ids) {
64
- return options.ids.split(',').map(i => i.trim());
65
- }
66
57
  if (options.userIds) {
67
58
  return options.userIds.split(',').map(i => i.trim());
68
59
  }
@@ -166,9 +157,7 @@ _EntraGroupMemberSetCommand_instances = new WeakSet(), _EntraGroupMemberSetComma
166
157
  this.telemetry.push((args) => {
167
158
  Object.assign(this.telemetryProperties, {
168
159
  groupId: typeof args.options.groupId !== 'undefined',
169
- groupDisplayName: typeof args.options.groupDisplayName !== 'undefined',
170
160
  groupName: typeof args.options.groupName !== 'undefined',
171
- ids: typeof args.options.ids !== 'undefined',
172
161
  userIds: typeof args.options.userIds !== 'undefined',
173
162
  userNames: typeof args.options.userNames !== 'undefined'
174
163
  });
@@ -176,12 +165,8 @@ _EntraGroupMemberSetCommand_instances = new WeakSet(), _EntraGroupMemberSetComma
176
165
  }, _EntraGroupMemberSetCommand_initOptions = function _EntraGroupMemberSetCommand_initOptions() {
177
166
  this.options.unshift({
178
167
  option: '-i, --groupId [groupId]'
179
- }, {
180
- option: '--groupDisplayName [groupDisplayName]'
181
168
  }, {
182
169
  option: '-n, --groupName [groupName]'
183
- }, {
184
- option: '--ids [ids]'
185
170
  }, {
186
171
  option: '--userIds [userIds]'
187
172
  }, {
@@ -195,12 +180,6 @@ _EntraGroupMemberSetCommand_instances = new WeakSet(), _EntraGroupMemberSetComma
195
180
  if (args.options.groupId && !validation.isValidGuid(args.options.groupId)) {
196
181
  return `${args.options.groupId} is not a valid GUID for option groupId.`;
197
182
  }
198
- if (args.options.ids) {
199
- const isValidGUIDArrayResult = validation.isValidGuidArray(args.options.ids);
200
- if (isValidGUIDArrayResult !== true) {
201
- return `'${isValidGUIDArrayResult}' is not a valid GUID for option 'ids'.`;
202
- }
203
- }
204
183
  if (args.options.userIds) {
205
184
  const isValidGUIDArrayResult = validation.isValidGuidArray(args.options.userIds);
206
185
  if (isValidGUIDArrayResult !== true) {
@@ -219,9 +198,9 @@ _EntraGroupMemberSetCommand_instances = new WeakSet(), _EntraGroupMemberSetComma
219
198
  return true;
220
199
  });
221
200
  }, _EntraGroupMemberSetCommand_initOptionSets = function _EntraGroupMemberSetCommand_initOptionSets() {
222
- this.optionSets.push({ options: ['groupId', 'groupDisplayName', 'groupName'] }, { options: ['ids', 'userIds', 'userNames'] });
201
+ this.optionSets.push({ options: ['groupId', 'groupName'] }, { options: ['userIds', 'userNames'] });
223
202
  }, _EntraGroupMemberSetCommand_initTypes = function _EntraGroupMemberSetCommand_initTypes() {
224
- this.types.string.push('groupId', 'groupDisplayName', 'groupName', 'ids', 'userIds', 'userNames', 'role');
203
+ this.types.string.push('groupId', 'groupName', 'userIds', 'userNames', 'role');
225
204
  };
226
205
  export default new EntraGroupMemberSetCommand();
227
206
  //# sourceMappingURL=group-member-set.js.map
@@ -26,9 +26,6 @@ class EntraM365GroupGetCommand extends GraphCommand {
26
26
  __classPrivateFieldGet(this, _EntraM365GroupGetCommand_instances, "m", _EntraM365GroupGetCommand_initTypes).call(this);
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
  let group;
33
30
  try {
34
31
  if (args.options.id) {
@@ -50,7 +47,7 @@ class EntraM365GroupGetCommand extends GraphCommand {
50
47
  };
51
48
  const groupExtended = await request.get(requestExtendedOptions);
52
49
  group = { ...group, ...groupExtended };
53
- if (args.options.includeSiteUrl || args.options.withSiteUrl) {
50
+ if (args.options.withSiteUrl) {
54
51
  const requestOptions = {
55
52
  url: `${this.resource}/v1.0/groups/${group.id}/drive?$select=webUrl`,
56
53
  headers: {
@@ -71,7 +68,6 @@ class EntraM365GroupGetCommand extends GraphCommand {
71
68
  _EntraM365GroupGetCommand_instances = new WeakSet(), _EntraM365GroupGetCommand_initTelemetry = function _EntraM365GroupGetCommand_initTelemetry() {
72
69
  this.telemetry.push((args) => {
73
70
  Object.assign(this.telemetryProperties, {
74
- includeSiteUrl: !!args.options.includeSiteUrl,
75
71
  withSiteUrl: !!args.options.withSiteUrl
76
72
  });
77
73
  });
@@ -80,8 +76,6 @@ _EntraM365GroupGetCommand_instances = new WeakSet(), _EntraM365GroupGetCommand_i
80
76
  option: '-i, --id [id]'
81
77
  }, {
82
78
  option: '-n, --displayName [displayName]'
83
- }, {
84
- option: '--includeSiteUrl'
85
79
  }, {
86
80
  option: '--withSiteUrl'
87
81
  });
@@ -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.withSiteUrl) {
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++) {
@@ -84,7 +81,6 @@ _EntraM365GroupListCommand_instances = new WeakSet(), _EntraM365GroupListCommand
84
81
  Object.assign(this.telemetryProperties, {
85
82
  displayName: typeof args.options.displayName !== 'undefined',
86
83
  mailNickname: typeof args.options.mailNickname !== 'undefined',
87
- includeSiteUrl: args.options.includeSiteUrl,
88
84
  withSiteUrl: !!args.options.withSiteUrl,
89
85
  orphaned: !!args.options.orphaned
90
86
  });
@@ -94,8 +90,6 @@ _EntraM365GroupListCommand_instances = new WeakSet(), _EntraM365GroupListCommand
94
90
  option: '-d, --displayName [displayName]'
95
91
  }, {
96
92
  option: '-m, --mailNickname [displayName]'
97
- }, {
98
- option: '--includeSiteUrl'
99
93
  }, {
100
94
  option: '--withSiteUrl'
101
95
  }, {
@@ -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.withPrincipalDetails) {
47
44
  expands.push('principal');
48
45
  }
49
46
  queryParameters.push(`$expand=${expands.join(',')}`);
@@ -89,7 +86,6 @@ _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
89
  withPrincipalDetails: !!args.options.withPrincipalDetails
94
90
  });
95
91
  });
@@ -102,8 +98,6 @@ _EntraPimRoleAssignmentEligibilityListCommand_instances = new WeakSet(), _EntraP
102
98
  option: '--groupId [groupId]'
103
99
  }, {
104
100
  option: '--groupName [groupName]'
105
- }, {
106
- option: '--includePrincipalDetails'
107
101
  }, {
108
102
  option: '--withPrincipalDetails'
109
103
  });
@@ -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.withPrincipalDetails) {
48
45
  expands.push('principal');
49
46
  }
50
47
  queryParameters.push(`$expand=${expands.join(',')}`);
@@ -85,7 +82,6 @@ _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
85
  withPrincipalDetails: !!args.options.withPrincipalDetails
90
86
  });
91
87
  });
@@ -100,8 +96,6 @@ _EntraPimRoleAssignmentListCommand_instances = new WeakSet(), _EntraPimRoleAssig
100
96
  option: "--groupName [groupName]"
101
97
  }, {
102
98
  option: "-s, --startDateTime [startDateTime]"
103
- }, {
104
- option: "--includePrincipalDetails"
105
99
  }, {
106
100
  option: "--withPrincipalDetails"
107
101
  });
@@ -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.withPrincipalDetails) {
58
55
  expands.push('principal');
59
56
  }
60
57
  queryParameters.push(`$expand=${expands.join(',')}`);
@@ -103,7 +100,6 @@ _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
103
  withPrincipalDetails: !!args.options.withPrincipalDetails
108
104
  });
109
105
  });
@@ -121,8 +117,6 @@ _EntraPimRoleRequestListCommand_instances = new WeakSet(), _EntraPimRoleRequestL
121
117
  }, {
122
118
  option: '-s, --status [status]',
123
119
  autocomplete: this.allowedStatuses
124
- }, {
125
- option: '--includePrincipalDetails'
126
120
  }, {
127
121
  option: '--withPrincipalDetails'
128
122
  });
@@ -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, withSolutions } = 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, withSolutions, '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, withSolutions, '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, withSolutions, 'personal');
51
47
  items = await odata.getAllItems(url);
52
- url = this.getApiUrl(environmentName, asAdmin, shouldIncludeSolutions, 'team');
48
+ url = this.getApiUrl(environmentName, asAdmin, withSolutions, '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, withSolutions);
58
54
  items = await odata.getAllItems(url);
59
55
  }
60
56
  // Remove duplicates
@@ -84,7 +80,6 @@ _FlowListCommand_instances = new WeakSet(), _FlowListCommand_initTelemetry = fun
84
80
  this.telemetry.push((args) => {
85
81
  Object.assign(this.telemetryProperties, {
86
82
  sharingStatus: typeof args.options.sharingStatus !== 'undefined',
87
- includeSolutions: !!args.options.includeSolutions,
88
83
  withSolutions: !!args.options.withSolutions,
89
84
  asAdmin: !!args.options.asAdmin
90
85
  });
@@ -95,8 +90,6 @@ _FlowListCommand_instances = new WeakSet(), _FlowListCommand_initTelemetry = fun
95
90
  }, {
96
91
  option: '--sharingStatus [sharingStatus]',
97
92
  autocomplete: this.allowedSharingStatuses
98
- }, {
99
- option: '--includeSolutions'
100
93
  }, {
101
94
  option: '--withSolutions'
102
95
  }, {
@@ -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('withSolutions', 'asAdmin');
118
111
  };
119
112
  export default new FlowListCommand();
120
113
  //# sourceMappingURL=flow-list.js.map
@@ -27,9 +27,6 @@ class FlowRunGetCommand extends PowerAutomateCommand {
27
27
  if (this.verbose) {
28
28
  await logger.logToStderr(`Retrieving information about run ${args.options.name} of Microsoft Flow ${args.options.flowName}...`);
29
29
  }
30
- if (args.options.includeTriggerInformation) {
31
- await this.warn(logger, `Parameter 'includeTriggerInformation' is deprecated. Please use 'withTrigger' instead`);
32
- }
33
30
  const actionsParameter = args.options.withActions ? '$expand=properties%2Factions&' : '';
34
31
  const requestOptions = {
35
32
  url: `${PowerAutomateCommand.resource}/providers/Microsoft.ProcessSimple/environments/${formatting.encodeQueryParameter(args.options.environmentName)}/flows/${formatting.encodeQueryParameter(args.options.flowName)}/runs/${formatting.encodeQueryParameter(args.options.name)}?${actionsParameter}api-version=2016-11-01`,
@@ -44,7 +41,7 @@ class FlowRunGetCommand extends PowerAutomateCommand {
44
41
  res.endTime = res.properties.endTime || '';
45
42
  res.status = res.properties.status;
46
43
  res.triggerName = res.properties.trigger.name;
47
- if ((args.options.includeTriggerInformation || args.options.withTrigger) && res.properties.trigger.outputsLink) {
44
+ if (args.options.withTrigger && res.properties.trigger.outputsLink) {
48
45
  res.triggerInformation = await this.getTriggerInformation(res);
49
46
  }
50
47
  if (!!args.options.withActions) {
@@ -96,8 +93,6 @@ _FlowRunGetCommand_instances = new WeakSet(), _FlowRunGetCommand_initOptions = f
96
93
  option: '--flowName <flowName>'
97
94
  }, {
98
95
  option: '-e, --environmentName <environmentName>'
99
- }, {
100
- option: '--includeTriggerInformation'
101
96
  }, {
102
97
  option: '--withTrigger'
103
98
  }, {
@@ -116,7 +111,6 @@ _FlowRunGetCommand_instances = new WeakSet(), _FlowRunGetCommand_initOptions = f
116
111
  }, _FlowRunGetCommand_initTelemetry = function _FlowRunGetCommand_initTelemetry() {
117
112
  this.telemetry.push((args) => {
118
113
  Object.assign(this.telemetryProperties, {
119
- includeTriggerInformation: !!args.options.includeTriggerInformation,
120
114
  withTrigger: !!args.options.withTrigger,
121
115
  withActions: typeof args.options.withActions !== 'undefined'
122
116
  });
@@ -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.withResourceData,
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
  }
@@ -135,7 +132,6 @@ _GraphSubscriptionAddCommand_instances = new WeakSet(), _GraphSubscriptionAddCom
135
132
  lifecycleNotificationUrl: typeof args.options.lifecycleNotificationUrl !== 'undefined',
136
133
  notificationUrlAppId: typeof args.options.notificationUrlAppId !== 'undefined',
137
134
  latestTLSVersion: typeof args.options.latestTLSVersion !== 'undefined',
138
- includeResourceData: !!args.options.includeResourceData,
139
135
  withResourceData: !!args.options.withResourceData,
140
136
  encryptionCertificate: typeof args.options.encryptionCertificate !== 'undefined',
141
137
  encryptionCertificateId: typeof args.options.encryptionCertificateId !== 'undefined'
@@ -160,8 +156,6 @@ _GraphSubscriptionAddCommand_instances = new WeakSet(), _GraphSubscriptionAddCom
160
156
  }, {
161
157
  option: '--latestTLSVersion [latestTLSVersion]',
162
158
  autocomplete: this.allowedTlsVersions
163
- }, {
164
- option: '--includeResourceData [includeResourceData]'
165
159
  }, {
166
160
  option: '--withResourceData [withResourceData]'
167
161
  }, {
@@ -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.withResourceData && !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.withResourceData && !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.withMicrosoftPublishers ? `&$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
  },
@@ -52,7 +48,6 @@ class PpSolutionPublisherListCommand extends PowerPlatformCommand {
52
48
  _PpSolutionPublisherListCommand_instances = new WeakSet(), _PpSolutionPublisherListCommand_initTelemetry = function _PpSolutionPublisherListCommand_initTelemetry() {
53
49
  this.telemetry.push((args) => {
54
50
  Object.assign(this.telemetryProperties, {
55
- includeMicrosoftPublishers: typeof args.options.includeMicrosoftPublishers !== 'undefined',
56
51
  withMicrosoftPublishers: typeof args.options.withMicrosoftPublishers !== 'undefined',
57
52
  asAdmin: !!args.options.asAdmin
58
53
  });
@@ -60,8 +55,6 @@ _PpSolutionPublisherListCommand_instances = new WeakSet(), _PpSolutionPublisherL
60
55
  }, _PpSolutionPublisherListCommand_initOptions = function _PpSolutionPublisherListCommand_initOptions() {
61
56
  this.options.unshift({
62
57
  option: '-e, --environmentName <environmentName>'
63
- }, {
64
- option: '--includeMicrosoftPublishers'
65
58
  }, {
66
59
  option: '--withMicrosoftPublishers'
67
60
  }, {
@@ -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.withResults ? '?$expand=results' : ''}`,
36
32
  headers: {
37
33
  accept: 'application/json;odata.metadata=none'
38
34
  },
@@ -56,8 +52,6 @@ _PurviewThreatAssessmentGetCommand_instances = new WeakSet(), _PurviewThreatAsse
56
52
  }, _PurviewThreatAssessmentGetCommand_initOptions = function _PurviewThreatAssessmentGetCommand_initOptions() {
57
53
  this.options.unshift({
58
54
  option: '-i, --id <id>'
59
- }, {
60
- option: '--includeResults'
61
55
  }, {
62
56
  option: '--withResults'
63
57
  });
@@ -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.withItemPermissions,
53
50
  newName: newName,
54
51
  operation: 'move'
55
52
  });
@@ -121,7 +118,6 @@ _SpoFileMoveCommand_instances = new WeakSet(), _SpoFileMoveCommand_initTelemetry
121
118
  sourceId: typeof args.options.sourceId !== 'undefined',
122
119
  newName: typeof args.options.newName !== 'undefined',
123
120
  nameConflictBehavior: typeof args.options.nameConflictBehavior !== 'undefined',
124
- includeItemPermissions: !!args.options.includeItemPermissions,
125
121
  withItemPermissions: !!args.options.withItemPermissions,
126
122
  bypassSharedLock: !!args.options.bypassSharedLock,
127
123
  skipWait: !!args.options.skipWait
@@ -141,8 +137,6 @@ _SpoFileMoveCommand_instances = new WeakSet(), _SpoFileMoveCommand_initTelemetry
141
137
  }, {
142
138
  option: '--nameConflictBehavior [nameConflictBehavior]',
143
139
  autocomplete: this.nameConflictBehaviorOptions
144
- }, {
145
- option: '--includeItemPermissions'
146
140
  }, {
147
141
  option: '--withItemPermissions'
148
142
  }, {
@@ -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('withItemPermissions', 'bypassSharedLock', 'skipWait');
172
166
  };
173
167
  export default new SpoFileMoveCommand();
174
168
  //# sourceMappingURL=file-move.js.map