@pnp/cli-microsoft365 10.1.0-beta.f17d225 → 10.2.0-beta.1819fcc

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 (124) hide show
  1. package/.eslintrc.cjs +2 -0
  2. package/README.md +2 -2
  3. package/allCommands.json +1 -1
  4. package/allCommandsFull.json +1 -1
  5. package/dist/AuthServer.js +1 -1
  6. package/dist/Command.js +2 -2
  7. package/dist/cli/cli.js +2 -2
  8. package/dist/m365/base/AppCommand.js +5 -2
  9. package/dist/m365/commands/login.js +3 -2
  10. package/dist/m365/entra/commands/administrativeunit/administrativeunit-get.js +18 -4
  11. package/dist/m365/entra/commands/administrativeunit/administrativeunit-list.js +34 -2
  12. package/dist/m365/entra/commands/app/app-get.js +17 -5
  13. package/dist/m365/entra/commands/app/app-list.js +34 -2
  14. package/dist/m365/entra/commands/app/app-permission-remove.js +8 -1
  15. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-add.js +3 -0
  16. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-get.js +3 -0
  17. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-list.js +3 -0
  18. package/dist/m365/entra/commands/group/group-get.js +6 -3
  19. package/dist/m365/entra/commands/group/group-list.js +16 -1
  20. package/dist/m365/entra/commands/m365group/m365group-add.js +1 -1
  21. package/dist/m365/entra/commands/m365group/m365group-conversation-list.js +21 -6
  22. package/dist/m365/entra/commands/m365group/m365group-get.js +29 -7
  23. package/dist/m365/entra/commands/m365group/m365group-list.js +1 -1
  24. package/dist/m365/entra/commands/m365group/m365group-remove.js +21 -9
  25. package/dist/m365/entra/commands/m365group/m365group-renew.js +19 -7
  26. package/dist/m365/entra/commands/m365group/m365group-set.js +1 -1
  27. package/dist/m365/entra/commands/m365group/m365group-teamify.js +12 -21
  28. package/dist/m365/entra/commands/roledefinition/roledefinition-get.js +58 -0
  29. package/dist/m365/entra/commands/roledefinition/roledefinition-list.js +50 -0
  30. package/dist/m365/entra/commands/roledefinition/roledefinition-remove.js +74 -0
  31. package/dist/m365/entra/commands.js +3 -0
  32. package/dist/m365/file/commands/convert/convert-pdf.js +3 -4
  33. package/dist/m365/file/commands/file-add.js +5 -6
  34. package/dist/m365/graph/commands/subscription/subscription-add.js +46 -5
  35. package/dist/m365/pp/commands/{chatbot/chatbot-get.js → copilot/copilot-get.js} +24 -20
  36. package/dist/m365/pp/commands/{chatbot/chatbot-list.js → copilot/copilot-list.js} +16 -12
  37. package/dist/m365/pp/commands/{chatbot/chatbot-remove.js → copilot/copilot-remove.js} +28 -24
  38. package/dist/m365/pp/commands.js +3 -0
  39. package/dist/m365/spe/ContainerProperties.js +2 -0
  40. package/dist/m365/spe/commands/container/container-list.js +87 -0
  41. package/dist/m365/spe/commands/containertype/containertype-get.js +103 -0
  42. package/dist/m365/spe/commands/containertype/containertype-list.js +2 -22
  43. package/dist/m365/spe/commands.js +2 -0
  44. package/dist/m365/spfx/commands/package/package-generate.js +1 -1
  45. package/dist/m365/spfx/commands/project/JsonRule.js +2 -2
  46. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN016004_TS_property_pane_property_import.js +2 -2
  47. package/dist/m365/spfx/commands/spfx-doctor.js +1 -1
  48. package/dist/m365/spo/commands/contenttype/contenttype-get.js +2 -2
  49. package/dist/m365/spo/commands/contenttype/contenttype-list.js +6 -3
  50. package/dist/m365/spo/commands/file/file-add.js +1 -1
  51. package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +1 -2
  52. package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +1 -2
  53. package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +1 -2
  54. package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +1 -2
  55. package/dist/m365/spo/commands/list/list-contenttype-list.js +5 -2
  56. package/dist/m365/spo/commands/listitem/listitem-batch-remove.js +10 -8
  57. package/dist/m365/spo/commands/listitem/listitem-batch-set.js +1 -1
  58. package/dist/m365/spo/commands/listitem/listitem-retentionlabel-ensure.js +1 -2
  59. package/dist/m365/spo/commands/listitem/listitem-retentionlabel-remove.js +1 -2
  60. package/dist/m365/spo/commands/page/page-add.js +1 -1
  61. package/dist/m365/spo/commands/site/site-admin-add.js +4 -12
  62. package/dist/m365/spo/commands/site/site-admin-list.js +3 -11
  63. package/dist/m365/spo/commands/site/site-admin-remove.js +4 -12
  64. package/dist/m365/spo/commands/site/site-set.js +1 -1
  65. package/dist/m365/spp/commands/model/model-remove.js +105 -0
  66. package/dist/m365/spp/commands.js +2 -1
  67. package/dist/m365/teams/commands/cache/cache-remove.js +3 -3
  68. package/dist/m365/teams/commands/user/user-app-list.js +1 -1
  69. package/dist/m365/tenant/commands/people/people-pronouns-get.js +32 -0
  70. package/dist/m365/tenant/commands/report/report-office365activationcounts.js +2 -8
  71. package/dist/m365/tenant/commands/report/report-office365activationsusercounts.js +2 -8
  72. package/dist/m365/tenant/commands/report/report-office365activationsuserdetail.js +2 -8
  73. package/dist/m365/tenant/commands.js +1 -0
  74. package/dist/m365/todo/commands/list/list-remove.js +2 -1
  75. package/dist/m365/todo/commands/list/list-set.js +2 -1
  76. package/dist/m365/todo/commands/task/task-add.js +2 -1
  77. package/dist/m365/todo/commands/task/task-get.js +2 -1
  78. package/dist/m365/todo/commands/task/task-list.js +2 -1
  79. package/dist/m365/todo/commands/task/task-remove.js +2 -1
  80. package/dist/m365/todo/commands/task/task-set.js +1 -1
  81. package/dist/m365/viva/commands/engage/engage-community-set.js +111 -0
  82. package/dist/m365/viva/commands.js +1 -0
  83. package/dist/utils/entraAdministrativeUnit.js +14 -2
  84. package/dist/utils/entraGroup.js +49 -6
  85. package/dist/utils/formatting.js +8 -20
  86. package/dist/utils/roleDefinition.js +30 -3
  87. package/dist/utils/spo.js +31 -5
  88. package/dist/utils/spp.js +3 -3
  89. package/dist/utils/urlUtil.js +11 -14
  90. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-get.mdx +10 -3
  91. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-list.mdx +16 -1
  92. package/docs/docs/cmd/entra/app/app-get.mdx +13 -8
  93. package/docs/docs/cmd/entra/app/app-list.mdx +16 -1
  94. package/docs/docs/cmd/entra/group/group-get.mdx +10 -3
  95. package/docs/docs/cmd/entra/group/group-list.mdx +9 -2
  96. package/docs/docs/cmd/entra/m365group/m365group-conversation-list.mdx +12 -3
  97. package/docs/docs/cmd/entra/m365group/m365group-get.mdx +29 -5
  98. package/docs/docs/cmd/entra/m365group/m365group-remove.mdx +7 -4
  99. package/docs/docs/cmd/entra/m365group/m365group-renew.mdx +11 -2
  100. package/docs/docs/cmd/entra/m365group/m365group-teamify.mdx +12 -3
  101. package/docs/docs/cmd/entra/m365group/m365group-user-add.mdx +2 -2
  102. package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +6 -0
  103. package/docs/docs/cmd/entra/m365group/m365group-user-remove.mdx +1 -1
  104. package/docs/docs/cmd/entra/m365group/m365group-user-set.mdx +3 -3
  105. package/docs/docs/cmd/entra/roledefinition/roledefinition-get.mdx +150 -0
  106. package/docs/docs/cmd/entra/roledefinition/roledefinition-list.mdx +148 -0
  107. package/docs/docs/cmd/entra/roledefinition/roledefinition-remove.mdx +52 -0
  108. package/docs/docs/cmd/graph/subscription/subscription-add.mdx +30 -5
  109. package/docs/docs/cmd/login.mdx +45 -44
  110. package/docs/docs/cmd/pp/{chatbot/chatbot-get.mdx → copilot/copilot-get.mdx} +24 -18
  111. package/docs/docs/cmd/pp/{chatbot/chatbot-list.mdx → copilot/copilot-list.mdx} +20 -14
  112. package/docs/docs/cmd/pp/{chatbot/chatbot-remove.mdx → copilot/copilot-remove.mdx} +16 -10
  113. package/docs/docs/cmd/pp/managementapp/managementapp-add.mdx +1 -1
  114. package/docs/docs/cmd/spe/container/container-list.mdx +97 -0
  115. package/docs/docs/cmd/spe/containertype/containertype-get.mdx +114 -0
  116. package/docs/docs/cmd/spo/contenttype/contenttype-get.mdx +7 -1
  117. package/docs/docs/cmd/spo/contenttype/contenttype-list.mdx +7 -1
  118. package/docs/docs/cmd/spo/list/list-contenttype-list.mdx +7 -1
  119. package/docs/docs/cmd/spp/model/model-remove.mdx +57 -0
  120. package/docs/docs/cmd/tenant/people/people-pronouns-get.mdx +71 -0
  121. package/docs/docs/cmd/viva/engage/engage-community-set.mdx +61 -0
  122. package/npm-shrinkwrap.json +1513 -1543
  123. package/package.json +23 -21
  124. package/dist/m365/spe/ContainerTypeProperties.js +0 -2
@@ -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 _PpChatbotGetCommand_instances, _PpChatbotGetCommand_initTelemetry, _PpChatbotGetCommand_initOptions, _PpChatbotGetCommand_initOptionSets, _PpChatbotGetCommand_initValidators;
6
+ var _PpCopilotGetCommand_instances, _PpCopilotGetCommand_initTelemetry, _PpCopilotGetCommand_initOptions, _PpCopilotGetCommand_initOptionSets, _PpCopilotGetCommand_initValidators;
7
7
  import request from '../../../../request.js';
8
8
  import { formatting } from '../../../../utils/formatting.js';
9
9
  import { powerPlatform } from '../../../../utils/powerPlatform.js';
@@ -11,38 +11,42 @@ import { validation } from '../../../../utils/validation.js';
11
11
  import PowerPlatformCommand from '../../../base/PowerPlatformCommand.js';
12
12
  import commands from '../../commands.js';
13
13
  import { cli } from '../../../../cli/cli.js';
14
- class PpChatbotGetCommand extends PowerPlatformCommand {
14
+ class PpCopilotGetCommand extends PowerPlatformCommand {
15
15
  get name() {
16
- return commands.CHATBOT_GET;
16
+ return commands.COPILOT_GET;
17
17
  }
18
18
  get description() {
19
- return 'Get information about the specified chatbot';
19
+ return 'Get information about the specified copilot';
20
+ }
21
+ alias() {
22
+ return [commands.CHATBOT_GET];
20
23
  }
21
24
  defaultProperties() {
22
25
  return ['name', 'botid', 'publishedon', 'createdon', 'modifiedon'];
23
26
  }
24
27
  constructor() {
25
28
  super();
26
- _PpChatbotGetCommand_instances.add(this);
27
- __classPrivateFieldGet(this, _PpChatbotGetCommand_instances, "m", _PpChatbotGetCommand_initTelemetry).call(this);
28
- __classPrivateFieldGet(this, _PpChatbotGetCommand_instances, "m", _PpChatbotGetCommand_initOptions).call(this);
29
- __classPrivateFieldGet(this, _PpChatbotGetCommand_instances, "m", _PpChatbotGetCommand_initValidators).call(this);
30
- __classPrivateFieldGet(this, _PpChatbotGetCommand_instances, "m", _PpChatbotGetCommand_initOptionSets).call(this);
29
+ _PpCopilotGetCommand_instances.add(this);
30
+ __classPrivateFieldGet(this, _PpCopilotGetCommand_instances, "m", _PpCopilotGetCommand_initTelemetry).call(this);
31
+ __classPrivateFieldGet(this, _PpCopilotGetCommand_instances, "m", _PpCopilotGetCommand_initOptions).call(this);
32
+ __classPrivateFieldGet(this, _PpCopilotGetCommand_instances, "m", _PpCopilotGetCommand_initValidators).call(this);
33
+ __classPrivateFieldGet(this, _PpCopilotGetCommand_instances, "m", _PpCopilotGetCommand_initOptionSets).call(this);
31
34
  }
32
35
  async commandAction(logger, args) {
36
+ await this.showDeprecationWarning(logger, commands.CHATBOT_GET, commands.COPILOT_GET);
33
37
  if (this.verbose) {
34
- await logger.logToStderr(`Retrieving chatbot '${args.options.id || args.options.name}'...`);
38
+ await logger.logToStderr(`Retrieving copilot '${args.options.id || args.options.name}'...`);
35
39
  }
36
40
  try {
37
41
  const dynamicsApiUrl = await powerPlatform.getDynamicsInstanceApiUrl(args.options.environmentName, args.options.asAdmin);
38
- const res = await this.getChatbot(dynamicsApiUrl, args.options);
42
+ const res = await this.getCopilot(dynamicsApiUrl, args.options);
39
43
  await logger.log(res);
40
44
  }
41
45
  catch (err) {
42
46
  this.handleRejectedODataJsonPromise(err);
43
47
  }
44
48
  }
45
- async getChatbot(dynamicsApiUrl, options) {
49
+ async getCopilot(dynamicsApiUrl, options) {
46
50
  const requestOptions = {
47
51
  headers: {
48
52
  accept: 'application/json;odata.metadata=none'
@@ -58,15 +62,15 @@ class PpChatbotGetCommand extends PowerPlatformCommand {
58
62
  const result = await request.get(requestOptions);
59
63
  if (result.value.length > 1) {
60
64
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('botid', result.value);
61
- return await cli.handleMultipleResultsFound(`Multiple chatbots with name '${options.name}' found.`, resultAsKeyValuePair);
65
+ return await cli.handleMultipleResultsFound(`Multiple copilots with name '${options.name}' found.`, resultAsKeyValuePair);
62
66
  }
63
67
  if (result.value.length === 0) {
64
- throw `The specified chatbot '${options.name}' does not exist.`;
68
+ throw `The specified copilot '${options.name}' does not exist.`;
65
69
  }
66
70
  return result.value[0];
67
71
  }
68
72
  }
69
- _PpChatbotGetCommand_instances = new WeakSet(), _PpChatbotGetCommand_initTelemetry = function _PpChatbotGetCommand_initTelemetry() {
73
+ _PpCopilotGetCommand_instances = new WeakSet(), _PpCopilotGetCommand_initTelemetry = function _PpCopilotGetCommand_initTelemetry() {
70
74
  this.telemetry.push((args) => {
71
75
  Object.assign(this.telemetryProperties, {
72
76
  id: typeof args.options.id !== 'undefined',
@@ -74,7 +78,7 @@ _PpChatbotGetCommand_instances = new WeakSet(), _PpChatbotGetCommand_initTelemet
74
78
  asAdmin: !!args.options.asAdmin
75
79
  });
76
80
  });
77
- }, _PpChatbotGetCommand_initOptions = function _PpChatbotGetCommand_initOptions() {
81
+ }, _PpCopilotGetCommand_initOptions = function _PpCopilotGetCommand_initOptions() {
78
82
  this.options.unshift({
79
83
  option: '-e, --environmentName <environmentName>'
80
84
  }, {
@@ -84,9 +88,9 @@ _PpChatbotGetCommand_instances = new WeakSet(), _PpChatbotGetCommand_initTelemet
84
88
  }, {
85
89
  option: '--asAdmin'
86
90
  });
87
- }, _PpChatbotGetCommand_initOptionSets = function _PpChatbotGetCommand_initOptionSets() {
91
+ }, _PpCopilotGetCommand_initOptionSets = function _PpCopilotGetCommand_initOptionSets() {
88
92
  this.optionSets.push({ options: ['id', 'name'] });
89
- }, _PpChatbotGetCommand_initValidators = function _PpChatbotGetCommand_initValidators() {
93
+ }, _PpCopilotGetCommand_initValidators = function _PpCopilotGetCommand_initValidators() {
90
94
  this.validators.push(async (args) => {
91
95
  if (args.options.id && !validation.isValidGuid(args.options.id)) {
92
96
  return `${args.options.id} is not a valid GUID`;
@@ -94,5 +98,5 @@ _PpChatbotGetCommand_instances = new WeakSet(), _PpChatbotGetCommand_initTelemet
94
98
  return true;
95
99
  });
96
100
  };
97
- export default new PpChatbotGetCommand();
98
- //# sourceMappingURL=chatbot-get.js.map
101
+ export default new PpCopilotGetCommand();
102
+ //# sourceMappingURL=copilot-get.js.map
@@ -3,30 +3,34 @@ 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 _PpChatbotListCommand_instances, _PpChatbotListCommand_initTelemetry, _PpChatbotListCommand_initOptions;
6
+ var _PpCopilotListCommand_instances, _PpCopilotListCommand_initTelemetry, _PpCopilotListCommand_initOptions;
7
7
  import { odata } from '../../../../utils/odata.js';
8
8
  import { powerPlatform } from '../../../../utils/powerPlatform.js';
9
9
  import PowerPlatformCommand from '../../../base/PowerPlatformCommand.js';
10
10
  import commands from '../../commands.js';
11
- class PpChatbotListCommand extends PowerPlatformCommand {
11
+ class PpCopilotListCommand extends PowerPlatformCommand {
12
12
  get name() {
13
- return commands.CHATBOT_LIST;
13
+ return commands.COPILOT_LIST;
14
14
  }
15
15
  get description() {
16
- return 'Lists Microsoft Power Platform chatbots in the specified Power Platform environment';
16
+ return 'Lists Microsoft Power Platform copilots in the specified Power Platform environment';
17
+ }
18
+ alias() {
19
+ return [commands.CHATBOT_LIST];
17
20
  }
18
21
  defaultProperties() {
19
22
  return ['name', 'botid', 'publishedOn', 'createdOn', 'botModifiedOn'];
20
23
  }
21
24
  constructor() {
22
25
  super();
23
- _PpChatbotListCommand_instances.add(this);
24
- __classPrivateFieldGet(this, _PpChatbotListCommand_instances, "m", _PpChatbotListCommand_initTelemetry).call(this);
25
- __classPrivateFieldGet(this, _PpChatbotListCommand_instances, "m", _PpChatbotListCommand_initOptions).call(this);
26
+ _PpCopilotListCommand_instances.add(this);
27
+ __classPrivateFieldGet(this, _PpCopilotListCommand_instances, "m", _PpCopilotListCommand_initTelemetry).call(this);
28
+ __classPrivateFieldGet(this, _PpCopilotListCommand_instances, "m", _PpCopilotListCommand_initOptions).call(this);
26
29
  }
27
30
  async commandAction(logger, args) {
31
+ await this.showDeprecationWarning(logger, commands.CHATBOT_LIST, commands.COPILOT_LIST);
28
32
  if (this.verbose) {
29
- await logger.logToStderr(`Retrieving list of chatbots for environment '${args.options.environmentName}'.`);
33
+ await logger.logToStderr(`Retrieving list of copilots for environment '${args.options.environmentName}'.`);
30
34
  }
31
35
  const fetchXml = `
32
36
  <fetch mapping='logical' version='1.0' >
@@ -78,18 +82,18 @@ class PpChatbotListCommand extends PowerPlatformCommand {
78
82
  }
79
83
  }
80
84
  }
81
- _PpChatbotListCommand_instances = new WeakSet(), _PpChatbotListCommand_initTelemetry = function _PpChatbotListCommand_initTelemetry() {
85
+ _PpCopilotListCommand_instances = new WeakSet(), _PpCopilotListCommand_initTelemetry = function _PpCopilotListCommand_initTelemetry() {
82
86
  this.telemetry.push((args) => {
83
87
  Object.assign(this.telemetryProperties, {
84
88
  asAdmin: !!args.options.asAdmin
85
89
  });
86
90
  });
87
- }, _PpChatbotListCommand_initOptions = function _PpChatbotListCommand_initOptions() {
91
+ }, _PpCopilotListCommand_initOptions = function _PpCopilotListCommand_initOptions() {
88
92
  this.options.unshift({
89
93
  option: '-e, --environmentName <environmentName>'
90
94
  }, {
91
95
  option: '--asAdmin'
92
96
  });
93
97
  };
94
- export default new PpChatbotListCommand();
95
- //# sourceMappingURL=chatbot-list.js.map
98
+ export default new PpCopilotListCommand();
99
+ //# sourceMappingURL=copilot-list.js.map
@@ -3,44 +3,48 @@ 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 _PpChatbotRemoveCommand_instances, _PpChatbotRemoveCommand_initTelemetry, _PpChatbotRemoveCommand_initOptions, _PpChatbotRemoveCommand_initOptionSets, _PpChatbotRemoveCommand_initValidators;
6
+ var _PpCopilotRemoveCommand_instances, _PpCopilotRemoveCommand_initTelemetry, _PpCopilotRemoveCommand_initOptions, _PpCopilotRemoveCommand_initOptionSets, _PpCopilotRemoveCommand_initValidators;
7
7
  import { cli } from '../../../../cli/cli.js';
8
8
  import request from '../../../../request.js';
9
9
  import { powerPlatform } from '../../../../utils/powerPlatform.js';
10
10
  import { validation } from '../../../../utils/validation.js';
11
11
  import PowerPlatformCommand from '../../../base/PowerPlatformCommand.js';
12
12
  import commands from '../../commands.js';
13
- import ppChatbotGetCommand from './chatbot-get.js';
14
- class PpChatbotRemoveCommand extends PowerPlatformCommand {
13
+ import ppCopilotGetCommand from './copilot-get.js';
14
+ class PpCopilotRemoveCommand extends PowerPlatformCommand {
15
15
  get name() {
16
- return commands.CHATBOT_REMOVE;
16
+ return commands.COPILOT_REMOVE;
17
17
  }
18
18
  get description() {
19
- return 'Removes the specified chatbot';
19
+ return 'Removes the specified copilot';
20
+ }
21
+ alias() {
22
+ return [commands.CHATBOT_REMOVE];
20
23
  }
21
24
  constructor() {
22
25
  super();
23
- _PpChatbotRemoveCommand_instances.add(this);
24
- __classPrivateFieldGet(this, _PpChatbotRemoveCommand_instances, "m", _PpChatbotRemoveCommand_initTelemetry).call(this);
25
- __classPrivateFieldGet(this, _PpChatbotRemoveCommand_instances, "m", _PpChatbotRemoveCommand_initOptions).call(this);
26
- __classPrivateFieldGet(this, _PpChatbotRemoveCommand_instances, "m", _PpChatbotRemoveCommand_initValidators).call(this);
27
- __classPrivateFieldGet(this, _PpChatbotRemoveCommand_instances, "m", _PpChatbotRemoveCommand_initOptionSets).call(this);
26
+ _PpCopilotRemoveCommand_instances.add(this);
27
+ __classPrivateFieldGet(this, _PpCopilotRemoveCommand_instances, "m", _PpCopilotRemoveCommand_initTelemetry).call(this);
28
+ __classPrivateFieldGet(this, _PpCopilotRemoveCommand_instances, "m", _PpCopilotRemoveCommand_initOptions).call(this);
29
+ __classPrivateFieldGet(this, _PpCopilotRemoveCommand_instances, "m", _PpCopilotRemoveCommand_initValidators).call(this);
30
+ __classPrivateFieldGet(this, _PpCopilotRemoveCommand_instances, "m", _PpCopilotRemoveCommand_initOptionSets).call(this);
28
31
  }
29
32
  async commandAction(logger, args) {
33
+ await this.showDeprecationWarning(logger, commands.CHATBOT_REMOVE, commands.COPILOT_REMOVE);
30
34
  if (this.verbose) {
31
- await logger.logToStderr(`Removing chatbot '${args.options.id || args.options.name}'...`);
35
+ await logger.logToStderr(`Removing copilot '${args.options.id || args.options.name}'...`);
32
36
  }
33
37
  if (args.options.force) {
34
- await this.deleteChatbot(args);
38
+ await this.deleteCopilot(args);
35
39
  }
36
40
  else {
37
- const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove chatbot '${args.options.id || args.options.name}'?` });
41
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove copilot '${args.options.id || args.options.name}'?` });
38
42
  if (result) {
39
- await this.deleteChatbot(args);
43
+ await this.deleteCopilot(args);
40
44
  }
41
45
  }
42
46
  }
43
- async getChatbotId(args) {
47
+ async getCopilotId(args) {
44
48
  if (args.options.id) {
45
49
  return args.options.id;
46
50
  }
@@ -51,14 +55,14 @@ class PpChatbotRemoveCommand extends PowerPlatformCommand {
51
55
  debug: this.debug,
52
56
  verbose: this.verbose
53
57
  };
54
- const output = await cli.executeCommandWithOutput(ppChatbotGetCommand, { options: { ...options, _: [] } });
58
+ const output = await cli.executeCommandWithOutput(ppCopilotGetCommand, { options: { ...options, _: [] } });
55
59
  const getBotOutput = JSON.parse(output.stdout);
56
60
  return getBotOutput.botid;
57
61
  }
58
- async deleteChatbot(args) {
62
+ async deleteCopilot(args) {
59
63
  try {
60
64
  const dynamicsApiUrl = await powerPlatform.getDynamicsInstanceApiUrl(args.options.environmentName, args.options.asAdmin);
61
- const botId = await this.getChatbotId(args);
65
+ const botId = await this.getCopilotId(args);
62
66
  const requestOptions = {
63
67
  url: `${dynamicsApiUrl}/api/data/v9.1/bots(${botId})/Microsoft.Dynamics.CRM.PvaDeleteBot?tag=deprovisionbotondelete`,
64
68
  headers: {
@@ -74,7 +78,7 @@ class PpChatbotRemoveCommand extends PowerPlatformCommand {
74
78
  }
75
79
  }
76
80
  }
77
- _PpChatbotRemoveCommand_instances = new WeakSet(), _PpChatbotRemoveCommand_initTelemetry = function _PpChatbotRemoveCommand_initTelemetry() {
81
+ _PpCopilotRemoveCommand_instances = new WeakSet(), _PpCopilotRemoveCommand_initTelemetry = function _PpCopilotRemoveCommand_initTelemetry() {
78
82
  this.telemetry.push((args) => {
79
83
  Object.assign(this.telemetryProperties, {
80
84
  id: typeof args.options.id !== 'undefined',
@@ -83,7 +87,7 @@ _PpChatbotRemoveCommand_instances = new WeakSet(), _PpChatbotRemoveCommand_initT
83
87
  force: !!args.options.force
84
88
  });
85
89
  });
86
- }, _PpChatbotRemoveCommand_initOptions = function _PpChatbotRemoveCommand_initOptions() {
90
+ }, _PpCopilotRemoveCommand_initOptions = function _PpCopilotRemoveCommand_initOptions() {
87
91
  this.options.unshift({
88
92
  option: '-e, --environmentName <environmentName>'
89
93
  }, {
@@ -95,9 +99,9 @@ _PpChatbotRemoveCommand_instances = new WeakSet(), _PpChatbotRemoveCommand_initT
95
99
  }, {
96
100
  option: '-f, --force'
97
101
  });
98
- }, _PpChatbotRemoveCommand_initOptionSets = function _PpChatbotRemoveCommand_initOptionSets() {
102
+ }, _PpCopilotRemoveCommand_initOptionSets = function _PpCopilotRemoveCommand_initOptionSets() {
99
103
  this.optionSets.push({ options: ['id', 'name'] });
100
- }, _PpChatbotRemoveCommand_initValidators = function _PpChatbotRemoveCommand_initValidators() {
104
+ }, _PpCopilotRemoveCommand_initValidators = function _PpCopilotRemoveCommand_initValidators() {
101
105
  this.validators.push(async (args) => {
102
106
  if (args.options.id && !validation.isValidGuid(args.options.id)) {
103
107
  return `${args.options.id} is not a valid GUID`;
@@ -105,5 +109,5 @@ _PpChatbotRemoveCommand_instances = new WeakSet(), _PpChatbotRemoveCommand_initT
105
109
  return true;
106
110
  });
107
111
  };
108
- export default new PpChatbotRemoveCommand();
109
- //# sourceMappingURL=chatbot-remove.js.map
112
+ export default new PpCopilotRemoveCommand();
113
+ //# sourceMappingURL=copilot-remove.js.map
@@ -10,6 +10,9 @@ export default {
10
10
  CHATBOT_GET: `${prefix} chatbot get`,
11
11
  CHATBOT_LIST: `${prefix} chatbot list`,
12
12
  CHATBOT_REMOVE: `${prefix} chatbot remove`,
13
+ COPILOT_GET: `${prefix} copilot get`,
14
+ COPILOT_LIST: `${prefix} copilot list`,
15
+ COPILOT_REMOVE: `${prefix} copilot remove`,
13
16
  DATAVERSE_TABLE_LIST: `${prefix} dataverse table list`,
14
17
  DATAVERSE_TABLE_GET: `${prefix} dataverse table get`,
15
18
  DATAVERSE_TABLE_REMOVE: `${prefix} dataverse table remove`,
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ContainerProperties.js.map
@@ -0,0 +1,87 @@
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 _SpeContainerListCommand_instances, _SpeContainerListCommand_initTelemetry, _SpeContainerListCommand_initOptions, _SpeContainerListCommand_initValidators, _SpeContainerListCommand_initOptionSets, _SpeContainerListCommand_initTypes;
7
+ import { formatting } from '../../../../utils/formatting.js';
8
+ import { odata } from '../../../../utils/odata.js';
9
+ import { validation } from '../../../../utils/validation.js';
10
+ import GraphCommand from '../../../base/GraphCommand.js';
11
+ import commands from '../../commands.js';
12
+ import { spo } from '../../../../utils/spo.js';
13
+ class SpeContainerListCommand extends GraphCommand {
14
+ get name() {
15
+ return commands.CONTAINER_LIST;
16
+ }
17
+ get description() {
18
+ return 'Lists all Container Types';
19
+ }
20
+ defaultProperties() {
21
+ return ['id', 'displayName', 'containerTypeId', 'createdDateTime'];
22
+ }
23
+ constructor() {
24
+ super();
25
+ _SpeContainerListCommand_instances.add(this);
26
+ __classPrivateFieldGet(this, _SpeContainerListCommand_instances, "m", _SpeContainerListCommand_initTelemetry).call(this);
27
+ __classPrivateFieldGet(this, _SpeContainerListCommand_instances, "m", _SpeContainerListCommand_initOptions).call(this);
28
+ __classPrivateFieldGet(this, _SpeContainerListCommand_instances, "m", _SpeContainerListCommand_initValidators).call(this);
29
+ __classPrivateFieldGet(this, _SpeContainerListCommand_instances, "m", _SpeContainerListCommand_initOptionSets).call(this);
30
+ __classPrivateFieldGet(this, _SpeContainerListCommand_instances, "m", _SpeContainerListCommand_initTypes).call(this);
31
+ }
32
+ async commandAction(logger, args) {
33
+ try {
34
+ if (this.verbose) {
35
+ await logger.logToStderr(`Retrieving list of Containers...`);
36
+ }
37
+ const containerTypeId = await this.getContainerTypeId(logger, args.options);
38
+ const allContainers = await odata.getAllItems(`${this.resource}/v1.0/storage/fileStorage/containers?$filter=containerTypeId eq ${formatting.encodeQueryParameter(containerTypeId)}`);
39
+ await logger.log(allContainers);
40
+ }
41
+ catch (err) {
42
+ this.handleRejectedPromise(err);
43
+ }
44
+ }
45
+ async getContainerTypeId(logger, options) {
46
+ if (options.containerTypeId) {
47
+ return options.containerTypeId;
48
+ }
49
+ const spoAdminUrl = await spo.getSpoAdminUrl(logger, this.debug);
50
+ const containerTypes = await spo.getAllContainerTypes(spoAdminUrl, logger, this.debug);
51
+ // Get id of the container type by name
52
+ const containerType = containerTypes.find(c => c.DisplayName === options.containerTypeName);
53
+ if (!containerType) {
54
+ throw new Error(`Container type with name ${options.containerTypeName} not found`);
55
+ }
56
+ // The value is returned as "/Guid(073269af-f1d2-042d-2ef5-5bdd6ac83115)/". We need to extract the GUID from it.
57
+ const containerTypeValue = containerType.ContainerTypeId.toString();
58
+ return containerTypeValue.substring(containerTypeValue.indexOf('(') + 1, containerTypeValue.lastIndexOf(')'));
59
+ }
60
+ }
61
+ _SpeContainerListCommand_instances = new WeakSet(), _SpeContainerListCommand_initTelemetry = function _SpeContainerListCommand_initTelemetry() {
62
+ this.telemetry.push((args) => {
63
+ Object.assign(this.telemetryProperties, {
64
+ containerTypeId: typeof args.options.containerTypeId !== 'undefined',
65
+ containerTypeName: typeof args.options.containerTypeName !== 'undefined'
66
+ });
67
+ });
68
+ }, _SpeContainerListCommand_initOptions = function _SpeContainerListCommand_initOptions() {
69
+ this.options.unshift({
70
+ option: '--containerTypeId [containerTypeId]'
71
+ }, {
72
+ option: '--containerTypeName [containerTypeName]'
73
+ });
74
+ }, _SpeContainerListCommand_initValidators = function _SpeContainerListCommand_initValidators() {
75
+ this.validators.push(async (args) => {
76
+ if (args.options.containerTypeId && !validation.isValidGuid(args.options.containerTypeId)) {
77
+ return `${args.options.containerTypeId} is not a valid GUID`;
78
+ }
79
+ return true;
80
+ });
81
+ }, _SpeContainerListCommand_initOptionSets = function _SpeContainerListCommand_initOptionSets() {
82
+ this.optionSets.push({ options: ['containerTypeId', 'containerTypeName'] });
83
+ }, _SpeContainerListCommand_initTypes = function _SpeContainerListCommand_initTypes() {
84
+ this.types.string.push('containerTypeId', 'containerTypeName');
85
+ };
86
+ export default new SpeContainerListCommand();
87
+ //# sourceMappingURL=container-list.js.map
@@ -0,0 +1,103 @@
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 _SpeContainertypeGetCommand_instances, _SpeContainertypeGetCommand_initTelemetry, _SpeContainertypeGetCommand_initOptions, _SpeContainertypeGetCommand_initOptionSets, _SpeContainertypeGetCommand_initValidators, _SpeContainertypeGetCommand_initTypes;
7
+ import config from '../../../../config.js';
8
+ import request from '../../../../request.js';
9
+ import { spo } from '../../../../utils/spo.js';
10
+ import { validation } from '../../../../utils/validation.js';
11
+ import SpoCommand from '../../../base/SpoCommand.js';
12
+ import commands from '../../commands.js';
13
+ class SpeContainertypeGetCommand extends SpoCommand {
14
+ get name() {
15
+ return commands.CONTAINERTYPE_GET;
16
+ }
17
+ get description() {
18
+ return 'Get a Container Type';
19
+ }
20
+ constructor() {
21
+ super();
22
+ _SpeContainertypeGetCommand_instances.add(this);
23
+ __classPrivateFieldGet(this, _SpeContainertypeGetCommand_instances, "m", _SpeContainertypeGetCommand_initTelemetry).call(this);
24
+ __classPrivateFieldGet(this, _SpeContainertypeGetCommand_instances, "m", _SpeContainertypeGetCommand_initOptions).call(this);
25
+ __classPrivateFieldGet(this, _SpeContainertypeGetCommand_instances, "m", _SpeContainertypeGetCommand_initValidators).call(this);
26
+ __classPrivateFieldGet(this, _SpeContainertypeGetCommand_instances, "m", _SpeContainertypeGetCommand_initOptionSets).call(this);
27
+ __classPrivateFieldGet(this, _SpeContainertypeGetCommand_instances, "m", _SpeContainertypeGetCommand_initTypes).call(this);
28
+ }
29
+ async commandAction(logger, args) {
30
+ try {
31
+ const spoAdminUrl = await spo.getSpoAdminUrl(logger, this.debug);
32
+ if (this.verbose) {
33
+ await logger.logToStderr(`Getting the Container type...`);
34
+ }
35
+ const containerTypeId = await this.getContainerTypeId(args.options, spoAdminUrl, logger);
36
+ const allContainerTypes = await this.getContainerTypeById(containerTypeId, spoAdminUrl, logger);
37
+ await logger.log(allContainerTypes);
38
+ }
39
+ catch (err) {
40
+ this.handleRejectedPromise(err);
41
+ }
42
+ }
43
+ async getContainerTypeById(containerTypeId, spoAdminUrl, logger) {
44
+ const formDigestInfo = await spo.ensureFormDigest(spoAdminUrl, logger, undefined, this.debug);
45
+ const requestOptions = {
46
+ url: `${spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
47
+ headers: {
48
+ 'X-RequestDigest': formDigestInfo.FormDigestValue
49
+ },
50
+ 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="49" ObjectPathId="48" /><Method Name="GetSPOContainerTypeById" Id="50" ObjectPathId="48"><Parameters><Parameter Type="Guid">{${containerTypeId}}</Parameter><Parameter Type="Enum">1</Parameter></Parameters></Method></Actions><ObjectPaths><Constructor Id="48" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /></ObjectPaths></Request>`
51
+ };
52
+ const res = await request.post(requestOptions);
53
+ const json = JSON.parse(res);
54
+ const response = json[0];
55
+ if (response.ErrorInfo) {
56
+ throw response.ErrorInfo.ErrorMessage;
57
+ }
58
+ const containerTypes = json[json.length - 1];
59
+ return containerTypes;
60
+ }
61
+ async getContainerTypeId(options, spoAdminUrl, logger) {
62
+ if (options.id) {
63
+ return options.id;
64
+ }
65
+ const containerTypes = await spo.getAllContainerTypes(spoAdminUrl, logger, this.debug);
66
+ // Get id of the container type by name
67
+ const containerType = containerTypes.find(c => c.DisplayName === options.name);
68
+ if (!containerType) {
69
+ throw new Error(`Container type with name ${options.name} not found`);
70
+ }
71
+ const match = containerType.ContainerTypeId.match(/\/Guid\(([^)]+)\)\//);
72
+ return match[1];
73
+ }
74
+ }
75
+ _SpeContainertypeGetCommand_instances = new WeakSet(), _SpeContainertypeGetCommand_initTelemetry = function _SpeContainertypeGetCommand_initTelemetry() {
76
+ this.telemetry.push((args) => {
77
+ Object.assign(this.telemetryProperties, {
78
+ id: typeof args.options.id !== 'undefined',
79
+ name: typeof args.options.name !== 'undefined'
80
+ });
81
+ });
82
+ }, _SpeContainertypeGetCommand_initOptions = function _SpeContainertypeGetCommand_initOptions() {
83
+ this.options.unshift({
84
+ option: '-i, --id [id]'
85
+ }, {
86
+ option: '-n, --name [name]'
87
+ });
88
+ }, _SpeContainertypeGetCommand_initOptionSets = function _SpeContainertypeGetCommand_initOptionSets() {
89
+ this.optionSets.push({
90
+ options: ['id', 'name']
91
+ });
92
+ }, _SpeContainertypeGetCommand_initValidators = function _SpeContainertypeGetCommand_initValidators() {
93
+ this.validators.push(async (args) => {
94
+ if (args.options.id && !validation.isValidGuid(args.options.id)) {
95
+ return `${args.options.id} is not a valid GUID`;
96
+ }
97
+ return true;
98
+ });
99
+ }, _SpeContainertypeGetCommand_initTypes = function _SpeContainertypeGetCommand_initTypes() {
100
+ this.types.string.push('id', 'name');
101
+ };
102
+ export default new SpeContainertypeGetCommand();
103
+ //# sourceMappingURL=containertype-get.js.map
@@ -1,8 +1,6 @@
1
- import config from '../../../../config.js';
2
- import request from '../../../../request.js';
3
- import { spo } from '../../../../utils/spo.js';
4
1
  import SpoCommand from '../../../base/SpoCommand.js';
5
2
  import commands from '../../commands.js';
3
+ import { spo } from '../../../../utils/spo.js';
6
4
  class SpeContainertypeListCommand extends SpoCommand {
7
5
  get name() {
8
6
  return commands.CONTAINERTYPE_LIST;
@@ -19,31 +17,13 @@ class SpeContainertypeListCommand extends SpoCommand {
19
17
  if (this.verbose) {
20
18
  await logger.logToStderr(`Retrieving list of Container types...`);
21
19
  }
22
- const allContainerTypes = await this.getAllContainerTypes(spoAdminUrl, logger);
20
+ const allContainerTypes = await spo.getAllContainerTypes(spoAdminUrl, logger, this.debug);
23
21
  await logger.log(allContainerTypes);
24
22
  }
25
23
  catch (err) {
26
24
  this.handleRejectedPromise(err);
27
25
  }
28
26
  }
29
- async getAllContainerTypes(spoAdminUrl, logger) {
30
- const formDigestInfo = await spo.ensureFormDigest(spoAdminUrl, logger, undefined, this.debug);
31
- const requestOptions = {
32
- url: `${spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
33
- headers: {
34
- 'X-RequestDigest': formDigestInfo.FormDigestValue
35
- },
36
- 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="46" ObjectPathId="45" /><Method Name="GetSPOContainerTypes" Id="47" ObjectPathId="45"><Parameters><Parameter Type="Enum">1</Parameter></Parameters></Method></Actions><ObjectPaths><Constructor Id="45" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /></ObjectPaths></Request>`
37
- };
38
- const res = await request.post(requestOptions);
39
- const json = JSON.parse(res);
40
- const response = json[0];
41
- if (response.ErrorInfo) {
42
- throw response.ErrorInfo.ErrorMessage;
43
- }
44
- const containerTypes = json[json.length - 1];
45
- return containerTypes;
46
- }
47
27
  }
48
28
  export default new SpeContainertypeListCommand();
49
29
  //# sourceMappingURL=containertype-list.js.map
@@ -1,6 +1,8 @@
1
1
  const prefix = 'spe';
2
2
  export default {
3
+ CONTAINER_LIST: `${prefix} container list`,
3
4
  CONTAINERTYPE_ADD: `${prefix} containertype add`,
5
+ CONTAINERTYPE_GET: `${prefix} containertype get`,
4
6
  CONTAINERTYPE_LIST: `${prefix} containertype list`
5
7
  };
6
8
  //# sourceMappingURL=commands.js.map
@@ -167,7 +167,7 @@ class SpfxPackageGenerateCommand extends AnonymousCommand {
167
167
  return webPartName.replace(/ /g, '-');
168
168
  }
169
169
  static getWebPartAlias(webPartName) {
170
- return 'AutoWP' + webPartName.replace(/[^a-zA-Z0-9]/g, '').substr(0, 40);
170
+ return 'AutoWP' + webPartName.replace(/[^a-zA-Z0-9]/g, '').substring(0, 40);
171
171
  }
172
172
  }
173
173
  _a = SpfxPackageGenerateCommand, _SpfxPackageGenerateCommand_instances = new WeakSet(), _SpfxPackageGenerateCommand_initTelemetry = function _SpfxPackageGenerateCommand_initTelemetry() {
@@ -51,9 +51,9 @@ export class JsonRule extends Rule {
51
51
  isArray = true;
52
52
  const pos = currentProperty.indexOf('[') + 1;
53
53
  // get array element from the property name
54
- arrayElement = currentProperty.substr(pos, currentProperty.length - pos - 1);
54
+ arrayElement = currentProperty.substring(pos, currentProperty.length - 1);
55
55
  // remove array element from the property name
56
- currentProperty = currentProperty.substr(0, pos - 1);
56
+ currentProperty = currentProperty.substring(0, pos - 1);
57
57
  }
58
58
  for (let i = 0; i < node.children.length; i++) {
59
59
  let currentNode = node.children[i];
@@ -40,8 +40,8 @@ export class FN016004_TS_property_pane_property_import extends TsRule {
40
40
  .filter(n => n.getText().indexOf('@microsoft/sp-webpart-base') > 0);
41
41
  obj.forEach(n => {
42
42
  const resource = n.getText();
43
- const importsText = resource.replace(/\s/g, '').substr(resource.indexOf('{'));
44
- const imports = importsText.substr(0, importsText.indexOf('}')).split(',');
43
+ const importsText = resource.replace(/\s/g, '').substring(resource.indexOf('{'));
44
+ const imports = importsText.substring(0, importsText.indexOf('}')).split(',');
45
45
  const importsToStay = [];
46
46
  const importsToBeMoved = [];
47
47
  imports.forEach(importName => {
@@ -929,7 +929,7 @@ class SpfxDoctorCommand extends BaseProjectCommand {
929
929
  });
930
930
  }
931
931
  getNodeVersion() {
932
- return process.version.substr(1);
932
+ return process.version.substring(1);
933
933
  }
934
934
  async checkStatus(what, versionFound, versionCheck) {
935
935
  if (versionFound) {
@@ -40,10 +40,10 @@ class SpoContentTypeGetCommand extends SpoCommand {
40
40
  }
41
41
  requestUrl += "/contenttypes";
42
42
  if (args.options.id) {
43
- requestUrl += `('${formatting.encodeQueryParameter(args.options.id)}')`;
43
+ requestUrl += `('${formatting.encodeQueryParameter(args.options.id)}')?$expand=Parent`;
44
44
  }
45
45
  else if (args.options.name) {
46
- requestUrl += `?$filter=Name eq '${formatting.encodeQueryParameter(args.options.name)}'`;
46
+ requestUrl += `?$filter=Name eq '${formatting.encodeQueryParameter(args.options.name)}'&$expand=Parent`;
47
47
  }
48
48
  const requestOptions = {
49
49
  url: requestUrl,