@pnp/cli-microsoft365 9.1.0-beta.9a7d76f → 10.0.0-beta.04ac437

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 (134) hide show
  1. package/allCommands.json +1 -1
  2. package/allCommandsFull.json +1 -1
  3. package/dist/Auth.js +3 -1
  4. package/dist/cli/cli.js +1 -1
  5. package/dist/m365/app/commands/permission/permission-add.js +9 -9
  6. package/dist/m365/cli/commands/cli-consent.js +3 -7
  7. package/dist/m365/cli/commands/config/config-set.js +0 -1
  8. package/dist/m365/commands/setupPresets.js +2 -4
  9. package/dist/m365/commands/status.js +2 -2
  10. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-add.js +13 -13
  11. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-get.js +18 -18
  12. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-list.js +1 -1
  13. package/dist/m365/entra/commands/group/group-user-list.js +4 -4
  14. package/dist/m365/entra/commands/m365group/m365group-conversation-post-list.js +4 -4
  15. package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-list.js +3 -3
  16. package/dist/m365/entra/commands/m365group/m365group-user-list.js +6 -9
  17. package/dist/m365/file/commands/file-move.js +135 -0
  18. package/dist/m365/file/commands.js +2 -1
  19. package/dist/m365/outlook/commands/message/message-get.js +11 -11
  20. package/dist/m365/spfx/commands/project/DeployWorkflow.js +1 -1
  21. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.20.0-rc.1.js +25 -0
  22. package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
  23. package/dist/m365/spfx/commands/project/project-github-workflow-add.js +1 -10
  24. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.20.0-rc.1.js +57 -0
  25. package/dist/m365/spfx/commands/project/project-upgrade.js +16 -13
  26. package/dist/m365/spfx/commands/spfx-doctor.js +15 -0
  27. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.js +0 -1
  28. package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +8 -8
  29. package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +2 -2
  30. package/dist/m365/spo/commands/file/file-copy.js +59 -34
  31. package/dist/m365/spo/commands/file/file-move.js +55 -33
  32. package/dist/m365/spo/commands/folder/folder-set.js +0 -4
  33. package/dist/m365/spo/commands/list/list-list.js +1 -4
  34. package/dist/m365/spo/commands/site/site-admin-remove.js +193 -0
  35. package/dist/m365/spo/commands/site/site-appcatalog-remove.js +48 -24
  36. package/dist/m365/spo/commands/site/site-remove.js +1 -7
  37. package/dist/m365/spo/commands/sitescript/sitescript-get.js +3 -2
  38. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +2 -22
  39. package/dist/m365/spo/commands.js +1 -1
  40. package/dist/m365/teams/MeetingTranscript.js +2 -0
  41. package/dist/m365/teams/commands/meeting/meeting-transcript-get.js +152 -0
  42. package/dist/m365/teams/commands.js +1 -0
  43. package/dist/m365/viva/commands/engage/engage-group-list.js +0 -5
  44. package/dist/m365/viva/commands/engage/engage-group-user-add.js +0 -5
  45. package/dist/m365/viva/commands/engage/engage-group-user-remove.js +0 -5
  46. package/dist/m365/viva/commands/engage/engage-message-add.js +0 -5
  47. package/dist/m365/viva/commands/engage/engage-message-get.js +0 -5
  48. package/dist/m365/viva/commands/engage/engage-message-like-set.js +0 -5
  49. package/dist/m365/viva/commands/engage/engage-message-list.js +0 -5
  50. package/dist/m365/viva/commands/engage/engage-message-remove.js +0 -5
  51. package/dist/m365/viva/commands/engage/engage-network-list.js +0 -5
  52. package/dist/m365/viva/commands/engage/engage-report-activitycounts.js +0 -8
  53. package/dist/m365/viva/commands/engage/engage-report-activityusercounts.js +0 -8
  54. package/dist/m365/viva/commands/engage/engage-report-activityuserdetail.js +0 -8
  55. package/dist/m365/viva/commands/engage/engage-report-deviceusagedistributionusercounts.js +0 -8
  56. package/dist/m365/viva/commands/engage/engage-report-deviceusageusercounts.js +0 -8
  57. package/dist/m365/viva/commands/engage/engage-report-deviceusageuserdetail.js +0 -8
  58. package/dist/m365/viva/commands/engage/engage-report-groupsactivitycounts.js +0 -8
  59. package/dist/m365/viva/commands/engage/engage-report-groupsactivitydetail.js +0 -8
  60. package/dist/m365/viva/commands/engage/engage-report-groupsactivitygroupcounts.js +0 -8
  61. package/dist/m365/viva/commands/engage/engage-search.js +0 -5
  62. package/dist/m365/viva/commands/engage/engage-user-get.js +0 -5
  63. package/dist/m365/viva/commands/engage/engage-user-list.js +0 -5
  64. package/dist/settingsNames.js +0 -1
  65. package/dist/utils/driveUtil.js +51 -0
  66. package/dist/utils/spo.js +76 -0
  67. package/docs/docs/_clisettings.mdx +0 -1
  68. package/docs/docs/cmd/app/permission/permission-add.mdx +5 -5
  69. package/docs/docs/cmd/cli/cli-consent.mdx +1 -1
  70. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-add.mdx +12 -12
  71. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-get.mdx +14 -14
  72. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-list.mdx +5 -5
  73. package/docs/docs/cmd/entra/group/group-user-list.mdx +7 -7
  74. package/docs/docs/cmd/entra/m365group/m365group-conversation-post-list.mdx +5 -5
  75. package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-list.mdx +3 -3
  76. package/docs/docs/cmd/entra/m365group/m365group-report-activitystorage.mdx +2 -2
  77. package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +1 -1
  78. package/docs/docs/cmd/file/file-move.mdx +79 -0
  79. package/docs/docs/cmd/outlook/message/message-get.mdx +5 -5
  80. package/docs/docs/cmd/setup.mdx +1 -3
  81. package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +11 -12
  82. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx +6 -5
  83. package/docs/docs/cmd/spo/cdn/cdn-get.mdx +1 -1
  84. package/docs/docs/cmd/spo/cdn/cdn-origin-add.mdx +1 -1
  85. package/docs/docs/cmd/spo/cdn/cdn-origin-list.mdx +1 -1
  86. package/docs/docs/cmd/spo/cdn/cdn-origin-remove.mdx +1 -1
  87. package/docs/docs/cmd/spo/cdn/cdn-policy-list.mdx +1 -1
  88. package/docs/docs/cmd/spo/cdn/cdn-policy-set.mdx +1 -1
  89. package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.mdx +7 -7
  90. package/docs/docs/cmd/spo/contenttype/contenttype-field-set.mdx +2 -2
  91. package/docs/docs/cmd/spo/externaluser/externaluser-list.mdx +1 -1
  92. package/docs/docs/cmd/spo/file/file-copy.mdx +119 -12
  93. package/docs/docs/cmd/spo/file/file-move.mdx +116 -9
  94. package/docs/docs/cmd/spo/folder/folder-set.mdx +0 -6
  95. package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-get.mdx +1 -1
  96. package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-set.mdx +1 -1
  97. package/docs/docs/cmd/spo/homesite/homesite-remove.mdx +1 -1
  98. package/docs/docs/cmd/spo/knowledgehub/knowledgehub-get.mdx +1 -1
  99. package/docs/docs/cmd/spo/knowledgehub/knowledgehub-remove.mdx +1 -1
  100. package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.mdx +1 -1
  101. package/docs/docs/cmd/spo/list/list-list.mdx +5 -7
  102. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.mdx +1 -1
  103. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.mdx +1 -1
  104. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-remove.mdx +1 -1
  105. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.mdx +1 -1
  106. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-remove.mdx +1 -1
  107. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-set.mdx +1 -1
  108. package/docs/docs/cmd/spo/site/site-admin-add.mdx +2 -2
  109. package/docs/docs/cmd/spo/site/site-admin-remove.mdx +67 -0
  110. package/docs/docs/cmd/spo/site/site-appcatalog-add.mdx +1 -1
  111. package/docs/docs/cmd/spo/site/site-appcatalog-remove.mdx +12 -3
  112. package/docs/docs/cmd/spo/site/site-commsite-enable.mdx +1 -1
  113. package/docs/docs/cmd/spo/site/site-list.mdx +6 -4
  114. package/docs/docs/cmd/spo/site/site-remove.mdx +0 -3
  115. package/docs/docs/cmd/spo/site/site-set.mdx +1 -1
  116. package/docs/docs/cmd/spo/sitescript/sitescript-get.mdx +14 -1
  117. package/docs/docs/cmd/spo/storageentity/storageentity-remove.mdx +1 -1
  118. package/docs/docs/cmd/spo/storageentity/storageentity-set.mdx +1 -1
  119. package/docs/docs/cmd/spo/tenant/tenant-appcatalog-add.mdx +1 -1
  120. package/docs/docs/cmd/spo/tenant/tenant-appcatalogurl-get.mdx +1 -1
  121. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-list.mdx +1 -1
  122. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.mdx +1 -1
  123. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.mdx +2 -49
  124. package/docs/docs/cmd/spo/tenant/tenant-settings-list.mdx +1 -1
  125. package/docs/docs/cmd/spo/theme/theme-apply.mdx +1 -1
  126. package/docs/docs/cmd/spo/theme/theme-get.mdx +1 -1
  127. package/docs/docs/cmd/spo/theme/theme-list.mdx +1 -1
  128. package/docs/docs/cmd/spo/theme/theme-remove.mdx +1 -1
  129. package/docs/docs/cmd/spo/theme/theme-set.mdx +1 -1
  130. package/docs/docs/cmd/spp/contentcenter/contentcenter-list.mdx +3 -5
  131. package/docs/docs/cmd/teams/meeting/meeting-transcript-get.mdx +132 -0
  132. package/npm-shrinkwrap.json +2 -2
  133. package/package.json +1 -1
  134. package/dist/m365/viva/commands/engage/yammerCommands.js +0 -25
@@ -16,7 +16,7 @@ class SpoListListCommand extends SpoCommand {
16
16
  return 'Lists all available list in the specified site';
17
17
  }
18
18
  defaultProperties() {
19
- return ['Title', 'Url', 'Id'];
19
+ return ['Title', 'Id'];
20
20
  }
21
21
  constructor() {
22
22
  super();
@@ -36,9 +36,6 @@ class SpoListListCommand extends SpoCommand {
36
36
  queryParams.push(`$filter=${args.options.filter}`);
37
37
  }
38
38
  const listInstances = await odata.getAllItems(`${args.options.webUrl}/_api/web/lists?${queryParams.join('&')}`);
39
- listInstances.forEach(l => {
40
- l.Url = l.RootFolder.ServerRelativeUrl;
41
- });
42
39
  await logger.log(listInstances);
43
40
  }
44
41
  catch (err) {
@@ -0,0 +1,193 @@
1
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
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
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
+ };
6
+ var _SpoSiteAdminRemoveCommand_instances, _SpoSiteAdminRemoveCommand_initTelemetry, _SpoSiteAdminRemoveCommand_initOptions, _SpoSiteAdminRemoveCommand_initValidators, _SpoSiteAdminRemoveCommand_initOptionSets, _SpoSiteAdminRemoveCommand_initTypes;
7
+ import { cli } from '../../../../cli/cli.js';
8
+ import request from '../../../../request.js';
9
+ import { entraGroup } from '../../../../utils/entraGroup.js';
10
+ import { entraUser } from '../../../../utils/entraUser.js';
11
+ import { formatting } from '../../../../utils/formatting.js';
12
+ import { spo } from '../../../../utils/spo.js';
13
+ import { validation } from '../../../../utils/validation.js';
14
+ import SpoCommand from '../../../base/SpoCommand.js';
15
+ import commands from '../../commands.js';
16
+ class SpoSiteAdminRemoveCommand extends SpoCommand {
17
+ get name() {
18
+ return commands.SITE_ADMIN_REMOVE;
19
+ }
20
+ get description() {
21
+ return 'Removes a user or group as site collection administrator';
22
+ }
23
+ constructor() {
24
+ super();
25
+ _SpoSiteAdminRemoveCommand_instances.add(this);
26
+ __classPrivateFieldGet(this, _SpoSiteAdminRemoveCommand_instances, "m", _SpoSiteAdminRemoveCommand_initTelemetry).call(this);
27
+ __classPrivateFieldGet(this, _SpoSiteAdminRemoveCommand_instances, "m", _SpoSiteAdminRemoveCommand_initOptions).call(this);
28
+ __classPrivateFieldGet(this, _SpoSiteAdminRemoveCommand_instances, "m", _SpoSiteAdminRemoveCommand_initValidators).call(this);
29
+ __classPrivateFieldGet(this, _SpoSiteAdminRemoveCommand_instances, "m", _SpoSiteAdminRemoveCommand_initOptionSets).call(this);
30
+ __classPrivateFieldGet(this, _SpoSiteAdminRemoveCommand_instances, "m", _SpoSiteAdminRemoveCommand_initTypes).call(this);
31
+ }
32
+ async commandAction(logger, args) {
33
+ try {
34
+ if (!args.options.force) {
35
+ const principalToDelete = args.options.groupId || args.options.groupName ? 'group' : 'user';
36
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove specified ${principalToDelete} from the site administrators list ${args.options.siteUrl}?` });
37
+ if (!result) {
38
+ return;
39
+ }
40
+ }
41
+ const loginNameToRemove = await this.getCorrectLoginName(args.options);
42
+ if (args.options.asAdmin) {
43
+ await this.callActionAsAdmin(logger, args, loginNameToRemove);
44
+ return;
45
+ }
46
+ await this.callAction(logger, args, loginNameToRemove);
47
+ }
48
+ catch (err) {
49
+ this.handleRejectedODataJsonPromise(err);
50
+ }
51
+ }
52
+ async callActionAsAdmin(logger, args, loginNameToRemove) {
53
+ if (this.verbose) {
54
+ await logger.logToStderr('Removing site administrator as an administrator...');
55
+ }
56
+ const adminUrl = await spo.getSpoAdminUrl(logger, this.debug);
57
+ const siteId = await this.getSiteId(args.options.siteUrl, logger);
58
+ const primaryAdminLoginName = await spo.getPrimaryAdminLoginNameAsAdmin(adminUrl, siteId, logger, this.verbose);
59
+ if (loginNameToRemove === primaryAdminLoginName) {
60
+ throw 'You cannot remove the primary site collection administrator.';
61
+ }
62
+ const existingAdmins = await this.getSiteAdmins(adminUrl, siteId);
63
+ const adminsToSet = existingAdmins.filter(u => u.loginName.toLowerCase() !== loginNameToRemove.toLowerCase());
64
+ await this.setSiteAdminsAsAdmin(adminUrl, siteId, adminsToSet);
65
+ }
66
+ async getSiteId(siteUrl, logger) {
67
+ const siteGraphId = await spo.getSiteId(siteUrl, logger, this.verbose);
68
+ const match = siteGraphId.match(/,([a-f0-9\-]{36}),/i);
69
+ if (!match) {
70
+ throw `Site with URL ${siteUrl} not found`;
71
+ }
72
+ return match[1];
73
+ }
74
+ async getSiteAdmins(adminUrl, siteId) {
75
+ const requestOptions = {
76
+ url: `${adminUrl}/_api/SPO.Tenant/GetSiteAdministrators?siteId='${siteId}'`,
77
+ headers: {
78
+ accept: 'application/json;odata=nometadata',
79
+ 'content-type': 'application/json;charset=utf-8'
80
+ }
81
+ };
82
+ const response = await request.post(requestOptions);
83
+ const responseContent = JSON.parse(response);
84
+ return responseContent.value;
85
+ }
86
+ async getCorrectLoginName(options) {
87
+ if (options.userId || options.userName) {
88
+ const userPrincipalName = options.userName ? options.userName : await entraUser.getUpnByUserId(options.userId);
89
+ if (userPrincipalName) {
90
+ return `i:0#.f|membership|${userPrincipalName}`;
91
+ }
92
+ throw 'User not found.';
93
+ }
94
+ else {
95
+ const group = options.groupId ? await entraGroup.getGroupById(options.groupId) : await entraGroup.getGroupByDisplayName(options.groupName);
96
+ //for entra groups, M365 groups have an associated email and security groups don't
97
+ if (group?.mail) {
98
+ //M365 group is prefixed with c:0o.c|federateddirectoryclaimprovider
99
+ return `c:0o.c|federateddirectoryclaimprovider|${group.id}`;
100
+ }
101
+ else {
102
+ //security group is prefixed with c:0t.c|tenant
103
+ return `c:0t.c|tenant|${group?.id}`;
104
+ }
105
+ }
106
+ }
107
+ async setSiteAdminsAsAdmin(adminUrl, siteId, admins) {
108
+ const requestOptions = {
109
+ url: `${adminUrl}/_api/SPOInternalUseOnly.Tenant/SetSiteSecondaryAdministrators`,
110
+ headers: {
111
+ accept: 'application/json;odata=nometadata',
112
+ 'content-type': 'application/json;charset=utf-8'
113
+ },
114
+ data: {
115
+ secondaryAdministratorsFieldsData: {
116
+ siteId: siteId,
117
+ secondaryAdministratorLoginNames: admins.map(u => u.loginName)
118
+ }
119
+ }
120
+ };
121
+ await request.post(requestOptions);
122
+ }
123
+ async callAction(logger, args, loginNameToRemove) {
124
+ if (this.verbose) {
125
+ await logger.logToStderr('Removing site administrator...');
126
+ }
127
+ const primaryOwnerLogin = await spo.getPrimaryOwnerLoginFromSite(args.options.siteUrl, logger, this.verbose);
128
+ if (loginNameToRemove === primaryOwnerLogin) {
129
+ throw 'You cannot remove the primary site collection administrator.';
130
+ }
131
+ const requestOptions = {
132
+ url: `${args.options.siteUrl}/_api/web/siteusers('${formatting.encodeQueryParameter(loginNameToRemove)}')`,
133
+ headers: {
134
+ 'accept': 'application/json',
135
+ 'X-Http-Method': 'MERGE',
136
+ 'If-Match': '*'
137
+ },
138
+ data: { IsSiteAdmin: false },
139
+ responseType: 'json'
140
+ };
141
+ await request.post(requestOptions);
142
+ }
143
+ }
144
+ _SpoSiteAdminRemoveCommand_instances = new WeakSet(), _SpoSiteAdminRemoveCommand_initTelemetry = function _SpoSiteAdminRemoveCommand_initTelemetry() {
145
+ this.telemetry.push((args) => {
146
+ Object.assign(this.telemetryProperties, {
147
+ userId: typeof args.options.userId !== 'undefined',
148
+ userName: typeof args.options.userName !== 'undefined',
149
+ groupId: typeof args.options.groupId !== 'undefined',
150
+ groupName: typeof args.options.groupName !== 'undefined',
151
+ force: !!args.options.force,
152
+ asAdmin: !!args.options.asAdmin
153
+ });
154
+ });
155
+ }, _SpoSiteAdminRemoveCommand_initOptions = function _SpoSiteAdminRemoveCommand_initOptions() {
156
+ this.options.unshift({
157
+ option: '-u, --siteUrl <siteUrl>'
158
+ }, {
159
+ option: '--userId [userId]'
160
+ }, {
161
+ option: '--userName [userName]'
162
+ }, {
163
+ option: '--groupId [groupId]'
164
+ }, {
165
+ option: '--groupName [groupName]'
166
+ }, {
167
+ option: '--asAdmin'
168
+ }, {
169
+ option: '-f, --force'
170
+ });
171
+ }, _SpoSiteAdminRemoveCommand_initValidators = function _SpoSiteAdminRemoveCommand_initValidators() {
172
+ this.validators.push(async (args) => {
173
+ if (args.options.userId &&
174
+ !validation.isValidGuid(args.options.userId)) {
175
+ return `${args.options.userId} is not a valid GUID`;
176
+ }
177
+ if (args.options.userName && !validation.isValidUserPrincipalName(args.options.userName)) {
178
+ return `${args.options.userName} is not a valid userName`;
179
+ }
180
+ if (args.options.groupId &&
181
+ !validation.isValidGuid(args.options.groupId)) {
182
+ return `${args.options.groupId} is not a valid GUID`;
183
+ }
184
+ return validation.isValidSharePointUrl(args.options.siteUrl);
185
+ });
186
+ }, _SpoSiteAdminRemoveCommand_initOptionSets = function _SpoSiteAdminRemoveCommand_initOptionSets() {
187
+ this.optionSets.push({ options: ['userId', 'userName', 'groupId', 'groupName'] });
188
+ }, _SpoSiteAdminRemoveCommand_initTypes = function _SpoSiteAdminRemoveCommand_initTypes() {
189
+ this.types.string.push('siteUrl', 'userId', 'userName', 'groupId', 'groupName');
190
+ this.types.boolean.push('force', 'asAdmin');
191
+ };
192
+ export default new SpoSiteAdminRemoveCommand();
193
+ //# sourceMappingURL=site-admin-remove.js.map
@@ -3,7 +3,8 @@ 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 _SpoSiteAppCatalogRemoveCommand_instances, _SpoSiteAppCatalogRemoveCommand_initOptions, _SpoSiteAppCatalogRemoveCommand_initValidators;
6
+ var _SpoSiteAppCatalogRemoveCommand_instances, _SpoSiteAppCatalogRemoveCommand_initTelemetry, _SpoSiteAppCatalogRemoveCommand_initOptions, _SpoSiteAppCatalogRemoveCommand_initValidators, _SpoSiteAppCatalogRemoveCommand_initTypes;
7
+ import { cli } from '../../../../cli/cli.js';
7
8
  import config from '../../../../config.js';
8
9
  import request from '../../../../request.js';
9
10
  import { formatting } from '../../../../utils/formatting.js';
@@ -21,47 +22,70 @@ class SpoSiteAppCatalogRemoveCommand extends SpoCommand {
21
22
  constructor() {
22
23
  super();
23
24
  _SpoSiteAppCatalogRemoveCommand_instances.add(this);
25
+ __classPrivateFieldGet(this, _SpoSiteAppCatalogRemoveCommand_instances, "m", _SpoSiteAppCatalogRemoveCommand_initTelemetry).call(this);
24
26
  __classPrivateFieldGet(this, _SpoSiteAppCatalogRemoveCommand_instances, "m", _SpoSiteAppCatalogRemoveCommand_initOptions).call(this);
25
27
  __classPrivateFieldGet(this, _SpoSiteAppCatalogRemoveCommand_instances, "m", _SpoSiteAppCatalogRemoveCommand_initValidators).call(this);
28
+ __classPrivateFieldGet(this, _SpoSiteAppCatalogRemoveCommand_instances, "m", _SpoSiteAppCatalogRemoveCommand_initTypes).call(this);
26
29
  }
27
30
  async commandAction(logger, args) {
28
- const url = args.options.siteUrl;
29
- try {
30
- const spoAdminUrl = await spo.getSpoAdminUrl(logger, this.debug);
31
- const requestDigest = await spo.getRequestDigest(spoAdminUrl);
31
+ const removeSiteAppcatalog = async () => {
32
+ const url = args.options.siteUrl;
32
33
  if (this.verbose) {
33
34
  await logger.logToStderr(`Disabling site collection app catalog...`);
34
35
  }
35
- const requestOptions = {
36
- url: `${spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
37
- headers: {
38
- 'X-RequestDigest': requestDigest.FormDigestValue
39
- },
40
- 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="50" ObjectPathId="49" /><ObjectPath Id="52" ObjectPathId="51" /><ObjectPath Id="54" ObjectPathId="53" /><ObjectPath Id="56" ObjectPathId="55" /><ObjectPath Id="58" ObjectPathId="57" /><Method Name="Remove" Id="59" ObjectPathId="57"><Parameters><Parameter Type="String">${formatting.escapeXml(url)}</Parameter></Parameters></Method></Actions><ObjectPaths><Constructor Id="49" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /><Method Id="51" ParentId="49" Name="GetSiteByUrl"><Parameters><Parameter Type="String">${formatting.escapeXml(url)}</Parameter></Parameters></Method><Property Id="53" ParentId="51" Name="RootWeb" /><Property Id="55" ParentId="53" Name="TenantAppCatalog" /><Property Id="57" ParentId="55" Name="SiteCollectionAppCatalogsSites" /></ObjectPaths></Request>`
41
- };
42
- const res = await request.post(requestOptions);
43
- const json = JSON.parse(res);
44
- const response = json[0];
45
- if (response.ErrorInfo) {
46
- throw response.ErrorInfo.ErrorMessage;
47
- }
48
- else {
49
- if (this.verbose) {
50
- await logger.logToStderr('Site collection app catalog disabled');
36
+ try {
37
+ const spoAdminUrl = await spo.getSpoAdminUrl(logger, this.debug);
38
+ const requestDigest = await spo.getRequestDigest(spoAdminUrl);
39
+ const requestOptions = {
40
+ url: `${spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
41
+ headers: {
42
+ 'X-RequestDigest': requestDigest.FormDigestValue
43
+ },
44
+ 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="50" ObjectPathId="49" /><ObjectPath Id="52" ObjectPathId="51" /><ObjectPath Id="54" ObjectPathId="53" /><ObjectPath Id="56" ObjectPathId="55" /><ObjectPath Id="58" ObjectPathId="57" /><Method Name="Remove" Id="59" ObjectPathId="57"><Parameters><Parameter Type="String">${formatting.escapeXml(url)}</Parameter></Parameters></Method></Actions><ObjectPaths><Constructor Id="49" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /><Method Id="51" ParentId="49" Name="GetSiteByUrl"><Parameters><Parameter Type="String">${formatting.escapeXml(url)}</Parameter></Parameters></Method><Property Id="53" ParentId="51" Name="RootWeb" /><Property Id="55" ParentId="53" Name="TenantAppCatalog" /><Property Id="57" ParentId="55" Name="SiteCollectionAppCatalogsSites" /></ObjectPaths></Request>`
45
+ };
46
+ const res = await request.post(requestOptions);
47
+ const json = JSON.parse(res);
48
+ const response = json[0];
49
+ if (response.ErrorInfo) {
50
+ throw response.ErrorInfo.ErrorMessage;
51
+ }
52
+ else {
53
+ if (this.verbose) {
54
+ await logger.logToStderr('Site collection app catalog disabled');
55
+ }
51
56
  }
52
57
  }
58
+ catch (err) {
59
+ this.handleRejectedPromise(err);
60
+ }
61
+ };
62
+ if (args.options.force) {
63
+ await removeSiteAppcatalog();
53
64
  }
54
- catch (err) {
55
- this.handleRejectedPromise(err);
65
+ else {
66
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove the app catalog from ${args.options.siteUrl}?` });
67
+ if (result) {
68
+ await removeSiteAppcatalog();
69
+ }
56
70
  }
57
71
  }
58
72
  }
59
- _SpoSiteAppCatalogRemoveCommand_instances = new WeakSet(), _SpoSiteAppCatalogRemoveCommand_initOptions = function _SpoSiteAppCatalogRemoveCommand_initOptions() {
73
+ _SpoSiteAppCatalogRemoveCommand_instances = new WeakSet(), _SpoSiteAppCatalogRemoveCommand_initTelemetry = function _SpoSiteAppCatalogRemoveCommand_initTelemetry() {
74
+ this.telemetry.push((args) => {
75
+ Object.assign(this.telemetryProperties, {
76
+ force: !!args.options.force
77
+ });
78
+ });
79
+ }, _SpoSiteAppCatalogRemoveCommand_initOptions = function _SpoSiteAppCatalogRemoveCommand_initOptions() {
60
80
  this.options.unshift({
61
81
  option: '-u, --siteUrl <siteUrl>'
82
+ }, {
83
+ option: '-f, --force'
62
84
  });
63
85
  }, _SpoSiteAppCatalogRemoveCommand_initValidators = function _SpoSiteAppCatalogRemoveCommand_initValidators() {
64
86
  this.validators.push(async (args) => validation.isValidSharePointUrl(args.options.siteUrl));
87
+ }, _SpoSiteAppCatalogRemoveCommand_initTypes = function _SpoSiteAppCatalogRemoveCommand_initTypes() {
88
+ this.types.string.push('siteUrl');
65
89
  };
66
90
  export default new SpoSiteAppCatalogRemoveCommand();
67
91
  //# sourceMappingURL=site-appcatalog-remove.js.map
@@ -31,9 +31,6 @@ class SpoSiteRemoveCommand extends SpoCommand {
31
31
  __classPrivateFieldGet(this, _SpoSiteRemoveCommand_instances, "m", _SpoSiteRemoveCommand_initTypes).call(this);
32
32
  }
33
33
  async commandAction(logger, args) {
34
- if (args.options.wait) {
35
- await this.warn(logger, `Option 'wait' is deprecated and will be removed in the next major release.`);
36
- }
37
34
  if (args.options.force) {
38
35
  await this.removeSite(logger, args.options);
39
36
  }
@@ -196,7 +193,6 @@ _SpoSiteRemoveCommand_instances = new WeakSet(), _SpoSiteRemoveCommand_initTelem
196
193
  Object.assign(this.telemetryProperties, {
197
194
  skipRecycleBin: !!args.options.skipRecycleBin,
198
195
  fromRecycleBin: !!args.options.fromRecycleBin,
199
- wait: !!args.options.wait,
200
196
  force: !!args.options.force
201
197
  });
202
198
  });
@@ -207,8 +203,6 @@ _SpoSiteRemoveCommand_instances = new WeakSet(), _SpoSiteRemoveCommand_initTelem
207
203
  option: '--skipRecycleBin'
208
204
  }, {
209
205
  option: '--fromRecycleBin'
210
- }, {
211
- option: '--wait'
212
206
  }, {
213
207
  option: '-f, --force'
214
208
  });
@@ -230,7 +224,7 @@ _SpoSiteRemoveCommand_instances = new WeakSet(), _SpoSiteRemoveCommand_initTelem
230
224
  });
231
225
  }, _SpoSiteRemoveCommand_initTypes = function _SpoSiteRemoveCommand_initTypes() {
232
226
  this.types.string.push('url');
233
- this.types.boolean.push('skipRecycleBin', 'fromRecycleBin', 'wait', 'force');
227
+ this.types.boolean.push('skipRecycleBin', 'fromRecycleBin', 'force');
234
228
  };
235
229
  export default new SpoSiteRemoveCommand();
236
230
  //# sourceMappingURL=site-remove.js.map
@@ -37,8 +37,9 @@ class SpoSiteScriptGetCommand extends SpoCommand {
37
37
  responseType: 'json'
38
38
  };
39
39
  const response = await request.post(requestOptions);
40
- if (args.options.content === true) {
41
- await logger.log(JSON.parse(response.Content));
40
+ response.Content = JSON.parse(response.Content);
41
+ if (args.options.content) {
42
+ await logger.log(response.Content);
42
43
  return;
43
44
  }
44
45
  await logger.log(response);
@@ -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 _SpoTenantRecycleBinItemRestoreCommand_instances, _SpoTenantRecycleBinItemRestoreCommand_initTelemetry, _SpoTenantRecycleBinItemRestoreCommand_initOptions, _SpoTenantRecycleBinItemRestoreCommand_initValidators, _SpoTenantRecycleBinItemRestoreCommand_initTypes;
6
+ var _SpoTenantRecycleBinItemRestoreCommand_instances, _SpoTenantRecycleBinItemRestoreCommand_initOptions, _SpoTenantRecycleBinItemRestoreCommand_initValidators, _SpoTenantRecycleBinItemRestoreCommand_initTypes;
7
7
  import request from '../../../../request.js';
8
8
  import { formatting } from '../../../../utils/formatting.js';
9
9
  import { odata } from '../../../../utils/odata.js';
@@ -22,15 +22,11 @@ class SpoTenantRecycleBinItemRestoreCommand extends SpoCommand {
22
22
  constructor() {
23
23
  super();
24
24
  _SpoTenantRecycleBinItemRestoreCommand_instances.add(this);
25
- __classPrivateFieldGet(this, _SpoTenantRecycleBinItemRestoreCommand_instances, "m", _SpoTenantRecycleBinItemRestoreCommand_initTelemetry).call(this);
26
25
  __classPrivateFieldGet(this, _SpoTenantRecycleBinItemRestoreCommand_instances, "m", _SpoTenantRecycleBinItemRestoreCommand_initOptions).call(this);
27
26
  __classPrivateFieldGet(this, _SpoTenantRecycleBinItemRestoreCommand_instances, "m", _SpoTenantRecycleBinItemRestoreCommand_initValidators).call(this);
28
27
  __classPrivateFieldGet(this, _SpoTenantRecycleBinItemRestoreCommand_instances, "m", _SpoTenantRecycleBinItemRestoreCommand_initTypes).call(this);
29
28
  }
30
29
  async commandAction(logger, args) {
31
- if (args.options.wait) {
32
- await this.warn(logger, `Option 'wait' is deprecated and will be removed in the next major release.`);
33
- }
34
30
  try {
35
31
  if (this.verbose) {
36
32
  await logger.logToStderr(`Restoring site collection '${args.options.siteUrl}' from recycle bin.`);
@@ -62,13 +58,6 @@ class SpoTenantRecycleBinItemRestoreCommand extends SpoCommand {
62
58
  };
63
59
  await request.post(restoreOptions);
64
60
  }
65
- // Here, we return a fixed response because this new API endpoint doesn't return a response while the previous API did.
66
- // This has to be removed in the next major release.
67
- await logger.log({
68
- HasTimedout: false,
69
- IsComplete: !!args.options.wait,
70
- PollingInterval: 15000
71
- });
72
61
  }
73
62
  catch (err) {
74
63
  this.handleRejectedODataJsonPromise(err);
@@ -79,23 +68,14 @@ class SpoTenantRecycleBinItemRestoreCommand extends SpoCommand {
79
68
  return sites[0].GroupId;
80
69
  }
81
70
  }
82
- _SpoTenantRecycleBinItemRestoreCommand_instances = new WeakSet(), _SpoTenantRecycleBinItemRestoreCommand_initTelemetry = function _SpoTenantRecycleBinItemRestoreCommand_initTelemetry() {
83
- this.telemetry.push((args) => {
84
- Object.assign(this.telemetryProperties, {
85
- wait: !!args.options.wait
86
- });
87
- });
88
- }, _SpoTenantRecycleBinItemRestoreCommand_initOptions = function _SpoTenantRecycleBinItemRestoreCommand_initOptions() {
71
+ _SpoTenantRecycleBinItemRestoreCommand_instances = new WeakSet(), _SpoTenantRecycleBinItemRestoreCommand_initOptions = function _SpoTenantRecycleBinItemRestoreCommand_initOptions() {
89
72
  this.options.unshift({
90
73
  option: '-u, --siteUrl <siteUrl>'
91
- }, {
92
- option: '--wait'
93
74
  });
94
75
  }, _SpoTenantRecycleBinItemRestoreCommand_initValidators = function _SpoTenantRecycleBinItemRestoreCommand_initValidators() {
95
76
  this.validators.push(async (args) => validation.isValidSharePointUrl(args.options.siteUrl));
96
77
  }, _SpoTenantRecycleBinItemRestoreCommand_initTypes = function _SpoTenantRecycleBinItemRestoreCommand_initTypes() {
97
78
  this.types.string.push('siteUrl');
98
- this.types.boolean.push('wait');
99
79
  };
100
80
  export default new SpoTenantRecycleBinItemRestoreCommand();
101
81
  //# sourceMappingURL=tenant-recyclebinitem-restore.js.map
@@ -92,7 +92,6 @@ export default {
92
92
  FOLDER_LIST: `${prefix} folder list`,
93
93
  FOLDER_MOVE: `${prefix} folder move`,
94
94
  FOLDER_REMOVE: `${prefix} folder remove`,
95
- FOLDER_RENAME: `${prefix} folder rename`,
96
95
  FOLDER_SET: `${prefix} folder set`,
97
96
  FOLDER_RETENTIONLABEL_ENSURE: `${prefix} folder retentionlabel ensure`,
98
97
  FOLDER_RETENTIONLABEL_REMOVE: `${prefix} folder retentionlabel remove`,
@@ -247,6 +246,7 @@ export default {
247
246
  SITE_ADD: `${prefix} site add`,
248
247
  SITE_ADMIN_ADD: `${prefix} site admin add`,
249
248
  SITE_ADMIN_LIST: `${prefix} site admin list`,
249
+ SITE_ADMIN_REMOVE: `${prefix} site admin remove`,
250
250
  SITE_APPCATALOG_ADD: `${prefix} site appcatalog add`,
251
251
  SITE_APPCATALOG_LIST: `${prefix} site appcatalog list`,
252
252
  SITE_APPCATALOG_REMOVE: `${prefix} site appcatalog remove`,
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MeetingTranscript.js.map
@@ -0,0 +1,152 @@
1
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
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
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
+ };
6
+ var _TeamsMeetingTranscriptGetCommand_instances, _TeamsMeetingTranscriptGetCommand_initTelemetry, _TeamsMeetingTranscriptGetCommand_initOptions, _TeamsMeetingTranscriptGetCommand_initValidators, _TeamsMeetingTranscriptGetCommand_initOptionSets;
7
+ import auth from '../../../../Auth.js';
8
+ import request from '../../../../request.js';
9
+ import { entraUser } from '../../../../utils/entraUser.js';
10
+ import { accessToken } from '../../../../utils/accessToken.js';
11
+ import { validation } from '../../../../utils/validation.js';
12
+ import GraphCommand from '../../../base/GraphCommand.js';
13
+ import commands from '../../commands.js';
14
+ import fs from 'fs';
15
+ import path from 'path';
16
+ class TeamsMeetingTranscriptGetCommand extends GraphCommand {
17
+ get name() {
18
+ return commands.MEETING_TRANSCRIPT_GET;
19
+ }
20
+ get description() {
21
+ return 'Downloads a transcript for a given meeting';
22
+ }
23
+ constructor() {
24
+ super();
25
+ _TeamsMeetingTranscriptGetCommand_instances.add(this);
26
+ __classPrivateFieldGet(this, _TeamsMeetingTranscriptGetCommand_instances, "m", _TeamsMeetingTranscriptGetCommand_initTelemetry).call(this);
27
+ __classPrivateFieldGet(this, _TeamsMeetingTranscriptGetCommand_instances, "m", _TeamsMeetingTranscriptGetCommand_initOptions).call(this);
28
+ __classPrivateFieldGet(this, _TeamsMeetingTranscriptGetCommand_instances, "m", _TeamsMeetingTranscriptGetCommand_initValidators).call(this);
29
+ __classPrivateFieldGet(this, _TeamsMeetingTranscriptGetCommand_instances, "m", _TeamsMeetingTranscriptGetCommand_initOptionSets).call(this);
30
+ }
31
+ async commandAction(logger, args) {
32
+ try {
33
+ const isAppOnlyAccessToken = accessToken.isAppOnlyAccessToken(auth.connection.accessTokens[this.resource].accessToken);
34
+ if (this.verbose) {
35
+ await logger.logToStderr(`Retrieving transcript for the given meeting...`);
36
+ }
37
+ let requestUrl = `${this.resource}/beta/`;
38
+ if (isAppOnlyAccessToken) {
39
+ if (!args.options.userId && !args.options.userName && !args.options.email) {
40
+ throw `The option 'userId', 'userName' or 'email' is required when retrieving meeting transcript using app only permissions`;
41
+ }
42
+ requestUrl += 'users/';
43
+ if (args.options.userId) {
44
+ requestUrl += args.options.userId;
45
+ }
46
+ else if (args.options.userName) {
47
+ requestUrl += args.options.userName;
48
+ }
49
+ else if (args.options.email) {
50
+ if (this.verbose) {
51
+ await logger.logToStderr(`Getting user ID for user with email '${args.options.email}'.`);
52
+ }
53
+ const userId = await entraUser.getUserIdByEmail(args.options.email);
54
+ requestUrl += userId;
55
+ }
56
+ }
57
+ else {
58
+ if (args.options.userId || args.options.userName || args.options.email) {
59
+ throw `The options 'userId', 'userName', and 'email' cannot be used while retrieving meeting transcript using delegated permissions`;
60
+ }
61
+ requestUrl += `me`;
62
+ }
63
+ requestUrl += `/onlineMeetings/${args.options.meetingId}/transcripts/${args.options.id}`;
64
+ if (args.options.outputFile) {
65
+ requestUrl += '/content?$format=text/vtt';
66
+ }
67
+ const requestOptions = {
68
+ url: requestUrl,
69
+ headers: {
70
+ accept: 'application/json;odata.metadata=none'
71
+ },
72
+ responseType: args.options.outputFile ? 'stream' : 'json'
73
+ };
74
+ const meetingTranscript = await request.get(requestOptions);
75
+ if (meetingTranscript) {
76
+ if (args.options.outputFile) {
77
+ // Not possible to use async/await for this promise
78
+ await new Promise((resolve, reject) => {
79
+ const writer = fs.createWriteStream(args.options.outputFile);
80
+ meetingTranscript.data.pipe(writer);
81
+ writer.on('error', err => {
82
+ reject(err);
83
+ });
84
+ writer.on('close', async () => {
85
+ const filePath = args.options.outputFile;
86
+ if (this.verbose) {
87
+ await logger.logToStderr(`File saved to path ${filePath}`);
88
+ }
89
+ return resolve();
90
+ });
91
+ });
92
+ }
93
+ else {
94
+ await logger.log(meetingTranscript);
95
+ }
96
+ }
97
+ else {
98
+ throw `The specified meeting transcript was not found`;
99
+ }
100
+ }
101
+ catch (err) {
102
+ this.handleRejectedODataJsonPromise(err);
103
+ }
104
+ }
105
+ }
106
+ _TeamsMeetingTranscriptGetCommand_instances = new WeakSet(), _TeamsMeetingTranscriptGetCommand_initTelemetry = function _TeamsMeetingTranscriptGetCommand_initTelemetry() {
107
+ this.telemetry.push((args) => {
108
+ Object.assign(this.telemetryProperties, {
109
+ userId: typeof args.options.userId !== 'undefined',
110
+ userName: typeof args.options.userName !== 'undefined',
111
+ email: typeof args.options.email !== 'undefined',
112
+ outputFile: typeof args.options.outputFile !== 'undefined'
113
+ });
114
+ });
115
+ }, _TeamsMeetingTranscriptGetCommand_initOptions = function _TeamsMeetingTranscriptGetCommand_initOptions() {
116
+ this.options.unshift({
117
+ option: '-u, --userId [userId]'
118
+ }, {
119
+ option: '-n, --userName [userName]'
120
+ }, {
121
+ option: '--email [email]'
122
+ }, {
123
+ option: '-m, --meetingId <meetingId>'
124
+ }, {
125
+ option: '-i, --id <id>'
126
+ }, {
127
+ option: '-f, --outputFile [outputFile]'
128
+ });
129
+ }, _TeamsMeetingTranscriptGetCommand_initValidators = function _TeamsMeetingTranscriptGetCommand_initValidators() {
130
+ this.validators.push(async (args) => {
131
+ if (args.options.userId && !validation.isValidGuid(args.options.userId)) {
132
+ return `${args.options.userId} is not a valid Guid`;
133
+ }
134
+ if (args.options.userName && !validation.isValidUserPrincipalName(args.options.userName)) {
135
+ return `${args.options.userName} is not a valid user principal name (UPN)`;
136
+ }
137
+ if (args.options.email && !validation.isValidUserPrincipalName(args.options.email)) {
138
+ return `${args.options.email} is not a valid email`;
139
+ }
140
+ if (args.options.outputFile && !fs.existsSync(path.dirname(args.options.outputFile))) {
141
+ return 'Specified path where to save the file does not exits';
142
+ }
143
+ return true;
144
+ });
145
+ }, _TeamsMeetingTranscriptGetCommand_initOptionSets = function _TeamsMeetingTranscriptGetCommand_initOptionSets() {
146
+ this.optionSets.push({
147
+ options: ['userId', 'userName', 'email'],
148
+ runsWhen: (args) => args.options.userId || args.options.userName || args.options.email
149
+ });
150
+ };
151
+ export default new TeamsMeetingTranscriptGetCommand();
152
+ //# sourceMappingURL=meeting-transcript-get.js.map
@@ -32,6 +32,7 @@ export default {
32
32
  MEETING_LIST: `${prefix} meeting list`,
33
33
  MEETING_ATTENDANCEREPORT_GET: `${prefix} meeting attendancereport get`,
34
34
  MEETING_ATTENDANCEREPORT_LIST: `${prefix} meeting attendancereport list`,
35
+ MEETING_TRANSCRIPT_GET: `${prefix} meeting transcript get`,
35
36
  MEETING_TRANSCRIPT_LIST: `${prefix} meeting transcript list`,
36
37
  MEMBERSETTINGS_LIST: `${prefix} membersettings list`,
37
38
  MEMBERSETTINGS_SET: `${prefix} membersettings set`,
@@ -7,7 +7,6 @@ var _VivaEngageGroupListCommand_instances, _VivaEngageGroupListCommand_initTelem
7
7
  import request from '../../../../request.js';
8
8
  import VivaEngageCommand from '../../../base/VivaEngageCommand.js';
9
9
  import commands from '../../commands.js';
10
- import yammerCommands from './yammerCommands.js';
11
10
  class VivaEngageGroupListCommand extends VivaEngageCommand {
12
11
  get name() {
13
12
  return commands.ENGAGE_GROUP_LIST;
@@ -15,9 +14,6 @@ class VivaEngageGroupListCommand extends VivaEngageCommand {
15
14
  get description() {
16
15
  return 'Returns the list of groups in a Viva Engage network or the groups for a specific user';
17
16
  }
18
- alias() {
19
- return [yammerCommands.GROUP_LIST];
20
- }
21
17
  constructor() {
22
18
  super();
23
19
  _VivaEngageGroupListCommand_instances.add(this);
@@ -59,7 +55,6 @@ class VivaEngageGroupListCommand extends VivaEngageCommand {
59
55
  }
60
56
  }
61
57
  async commandAction(logger, args) {
62
- await this.showDeprecationWarning(logger, this.alias()[0], this.name);
63
58
  this.items = []; // this will reset the items array in interactive mode
64
59
  try {
65
60
  await this.getAllItems(logger, args, 1);