@pnp/cli-microsoft365 6.9.0-beta.1cd2525 → 6.9.0-beta.3158148

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 (180) hide show
  1. package/.devcontainer/Dockerfile +12 -19
  2. package/.devcontainer/devcontainer.json +24 -17
  3. package/Dockerfile +3 -1
  4. package/dist/Auth.js +2 -8
  5. package/dist/AuthServer.js +2 -4
  6. package/dist/cli/Cli.js +2 -2
  7. package/dist/m365/aad/commands/app/app-add.js +258 -249
  8. package/dist/m365/aad/commands/app/app-get.js +65 -62
  9. package/dist/m365/aad/commands/app/app-remove.js +22 -23
  10. package/dist/m365/aad/commands/app/app-role-add.js +35 -34
  11. package/dist/m365/aad/commands/app/app-role-list.js +22 -23
  12. package/dist/m365/aad/commands/app/app-role-remove.js +76 -73
  13. package/dist/m365/aad/commands/app/app-set.js +103 -103
  14. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +16 -14
  15. package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +43 -52
  16. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +20 -16
  17. package/dist/m365/aad/commands/o365group/o365group-add.js +40 -37
  18. package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +7 -6
  19. package/dist/m365/aad/commands/o365group/o365group-list.js +6 -11
  20. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-clear.js +7 -8
  21. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +23 -24
  22. package/dist/m365/aad/commands/o365group/o365group-set.js +15 -20
  23. package/dist/m365/aad/commands/o365group/o365group-teamify.js +15 -16
  24. package/dist/m365/aad/commands/o365group/o365group-user-list.js +17 -10
  25. package/dist/m365/aad/commands/o365group/o365group-user-set.js +17 -10
  26. package/dist/m365/aad/commands/policy/policy-list.js +12 -13
  27. package/dist/m365/aad/commands/siteclassification/siteclassification-enable.js +1 -3
  28. package/dist/m365/aad/commands/siteclassification/siteclassification-set.js +19 -20
  29. package/dist/m365/aad/commands/sp/sp-add.js +22 -23
  30. package/dist/m365/aad/commands/sp/sp-get.js +22 -23
  31. package/dist/m365/aad/commands/sp/sp-list.js +78 -0
  32. package/dist/m365/aad/commands.js +1 -0
  33. package/dist/m365/app/commands/app-open.js +4 -14
  34. package/dist/m365/base/AzmgmtItemsListCommand.js +31 -33
  35. package/dist/m365/cli/commands/cli-issue.js +4 -10
  36. package/dist/m365/cli/commands/cli-reconsent.js +2 -8
  37. package/dist/m365/cli/commands/config/config-set.js +0 -1
  38. package/dist/m365/commands/docs.js +2 -8
  39. package/dist/m365/commands/login.js +20 -0
  40. package/dist/m365/flow/commands/flow-list.js +30 -12
  41. package/dist/m365/flow/commands/flow-remove.js +2 -3
  42. package/dist/m365/flow/commands/run/run-resubmit.js +11 -10
  43. package/dist/m365/onedrive/commands/onedrive-list.js +21 -32
  44. package/dist/m365/outlook/commands/message/message-list.js +18 -23
  45. package/dist/m365/outlook/commands/message/message-move.js +15 -20
  46. package/dist/m365/pa/commands/app/app-export.js +3 -4
  47. package/dist/m365/pa/commands/app/app-get.js +11 -9
  48. package/dist/m365/pa/commands/app/app-remove.js +1 -1
  49. package/dist/m365/pa/commands/pcf/pcf-init.js +1 -2
  50. package/dist/m365/pa/commands/solution/solution-init.js +1 -2
  51. package/dist/m365/pa/commands/solution/solution-reference-add.js +1 -2
  52. package/dist/m365/pp/commands/managementapp/managementapp-add.js +19 -20
  53. package/dist/m365/purview/commands/retentionevent/retentionevent-add.js +3 -3
  54. package/dist/m365/purview/commands/retentionevent/retentionevent-get.js +1 -1
  55. package/dist/m365/purview/commands/retentionevent/retentionevent-list.js +1 -1
  56. package/dist/m365/purview/commands/retentionevent/retentionevent-remove.js +1 -1
  57. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-add.js +1 -1
  58. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-get.js +1 -1
  59. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-list.js +1 -1
  60. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-remove.js +1 -1
  61. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-set.js +1 -1
  62. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.3.js +25 -0
  63. package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
  64. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002027_DEVDEP_fluentui_react.js +14 -0
  65. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.3.js +59 -0
  66. package/dist/m365/spfx/commands/project/project-upgrade.js +2 -1
  67. package/dist/m365/spfx/commands/spfx-doctor.js +15 -0
  68. package/dist/m365/spo/commands/app/app-teamspackage-download.js +17 -24
  69. package/dist/m365/spo/commands/apppage/apppage-set.js +1 -1
  70. package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +65 -94
  71. package/dist/m365/spo/commands/customaction/customaction-clear.js +4 -12
  72. package/dist/m365/spo/commands/customaction/customaction-remove.js +12 -23
  73. package/dist/m365/spo/commands/customaction/customaction-set.js +21 -29
  74. package/dist/m365/spo/commands/file/file-add.js +133 -133
  75. package/dist/m365/spo/commands/file/file-checkout-undo.js +119 -0
  76. package/dist/m365/spo/commands/file/file-rename.js +11 -9
  77. package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +2 -2
  78. package/dist/m365/spo/commands/file/file-roleassignment-add.js +41 -61
  79. package/dist/m365/spo/commands/file/file-roleassignment-remove.js +3 -0
  80. package/dist/m365/spo/commands/file/file-roleinheritance-break.js +3 -0
  81. package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +3 -0
  82. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +23 -21
  83. package/dist/m365/spo/commands/file/file-version-clear.js +1 -1
  84. package/dist/m365/spo/commands/file/file-version-remove.js +1 -1
  85. package/dist/m365/spo/commands/file/file-version-restore.js +1 -1
  86. package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +3 -3
  87. package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +1 -1
  88. package/dist/m365/spo/commands/group/group-member-add.js +17 -16
  89. package/dist/m365/spo/commands/group/group-set.js +20 -20
  90. package/dist/m365/spo/commands/homesite/homesite-remove.js +1 -1
  91. package/dist/m365/spo/commands/hubsite/hubsite-get.js +33 -31
  92. package/dist/m365/spo/commands/hubsite/hubsite-list.js +18 -29
  93. package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +3 -0
  94. package/dist/m365/spo/commands/list/list-add.js +1 -1
  95. package/dist/m365/spo/commands/list/list-contenttype-default-set.js +1 -1
  96. package/dist/m365/spo/commands/list/list-roleassignment-add.js +45 -52
  97. package/dist/m365/spo/commands/list/list-roleassignment-remove.js +33 -38
  98. package/dist/m365/spo/commands/list/list-sensitivitylabel-ensure.js +13 -3
  99. package/dist/m365/spo/commands/list/list-view-field-add.js +12 -10
  100. package/dist/m365/spo/commands/list/list-view-field-remove.js +12 -10
  101. package/dist/m365/spo/commands/list/list-view-field-set.js +12 -10
  102. package/dist/m365/spo/commands/list/list-view-remove.js +3 -0
  103. package/dist/m365/spo/commands/listitem/listitem-roleassignment-add.js +41 -61
  104. package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +71 -74
  105. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +36 -34
  106. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +32 -30
  107. package/dist/m365/spo/commands/navigation/navigation-node-remove.js +24 -22
  108. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-remove.js +29 -27
  109. package/dist/m365/spo/commands/orgnewssite/orgnewssite-remove.js +26 -24
  110. package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +34 -40
  111. package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +23 -21
  112. package/dist/m365/spo/commands/sitescript/sitescript-remove.js +24 -22
  113. package/dist/m365/spo/commands/spo-search.js +7 -15
  114. package/dist/m365/spo/commands/storageentity/storageentity-remove.js +29 -27
  115. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-set.js +156 -0
  116. package/dist/m365/spo/commands.js +2 -0
  117. package/dist/m365/teams/commands/app/app-install.js +23 -21
  118. package/dist/m365/teams/commands/app/app-remove.js +3 -0
  119. package/dist/m365/teams/commands/app/app-uninstall.js +3 -0
  120. package/dist/m365/teams/commands/app/app-update.js +15 -16
  121. package/dist/m365/teams/commands/channel/channel-add.js +40 -39
  122. package/dist/m365/teams/commands/channel/channel-get.js +23 -25
  123. package/dist/m365/teams/commands/channel/channel-list.js +6 -7
  124. package/dist/m365/teams/commands/channel/channel-member-add.js +61 -60
  125. package/dist/m365/teams/commands/channel/channel-member-list.js +20 -22
  126. package/dist/m365/teams/commands/channel/channel-member-remove.js +43 -48
  127. package/dist/m365/teams/commands/channel/channel-member-set.js +36 -39
  128. package/dist/m365/teams/commands/channel/channel-remove.js +4 -1
  129. package/dist/m365/teams/commands/funsettings/funsettings-list.js +3 -0
  130. package/dist/m365/teams/commands/funsettings/funsettings-set.js +3 -0
  131. package/dist/m365/teams/commands/tab/tab-get.js +34 -37
  132. package/dist/m365/teams/commands/team/team-archive.js +6 -7
  133. package/dist/m365/teams/commands/team/team-get.js +6 -7
  134. package/dist/m365/teams/commands/team/team-list.js +9 -11
  135. package/dist/m365/teams/commands/team/team-remove.js +6 -7
  136. package/dist/m365/teams/commands/team/team-unarchive.js +6 -7
  137. package/dist/m365/teams/commands/user/user-app-list.js +13 -11
  138. package/dist/m365/teams/commands/user/user-list.js +7 -4
  139. package/dist/m365/tenant/commands/security/security-alerts-list.js +25 -26
  140. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-list.js +13 -14
  141. package/dist/m365/todo/commands/list/list-remove.js +39 -36
  142. package/dist/m365/todo/commands/list/list-set.js +16 -14
  143. package/dist/m365/todo/commands/task/task-add.js +14 -14
  144. package/dist/m365/util/commands/accesstoken/accesstoken-get.js +10 -7
  145. package/dist/settingsNames.js +0 -1
  146. package/dist/utils/browserUtil.js +23 -0
  147. package/docs/docs/cmd/aad/sp/sp-list.mdx +162 -0
  148. package/docs/docs/cmd/flow/flow-list.mdx +15 -0
  149. package/docs/docs/cmd/login.mdx +39 -0
  150. package/docs/docs/cmd/setup.mdx +2 -0
  151. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
  152. package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +55 -0
  153. package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +1 -1
  154. package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +1 -1
  155. package/docs/docs/cmd/spo/list/list-sensitivitylabel-ensure.mdx +14 -5
  156. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +81 -0
  157. package/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx +6 -0
  158. package/docs/docs/cmd/status.mdx +6 -3
  159. package/docs/docs/cmd/util/accesstoken/accesstoken-get.mdx +12 -2
  160. package/npm-shrinkwrap.json +299 -272
  161. package/package.json +17 -17
  162. package/dist/m365/aad/commands/approleassignment/AppRoleAssignment.js +0 -3
  163. package/dist/m365/aad/commands/approleassignment/ServicePrincipal.js +0 -3
  164. package/dist/m365/aad/commands/groupsetting/GroupSetting.js +0 -3
  165. package/dist/m365/aad/commands/groupsettingtemplate/GroupSettingTemplate.js +0 -3
  166. package/dist/m365/aad/commands/siteclassification/DirectorySetting.js +0 -10
  167. package/dist/m365/aad/commands/siteclassification/DirectorySettingTemplatesRsp.js +0 -3
  168. package/dist/m365/aad/commands/siteclassification/DirectorySettingValue.js +0 -3
  169. package/dist/m365/outlook/Message.js +0 -3
  170. package/dist/m365/spo/commands/site/SitePermission.js +0 -3
  171. package/dist/m365/teams/Channel.js +0 -3
  172. package/dist/m365/teams/ConversationMember.js +0 -3
  173. package/dist/m365/teams/Message.js +0 -3
  174. package/dist/m365/teams/Reply.js +0 -3
  175. package/dist/m365/teams/Tab.js +0 -3
  176. package/dist/m365/teams/Team.js +0 -3
  177. package/dist/m365/teams/TeamsApp.js +0 -3
  178. package/dist/m365/teams/TeamsAppInstallation.js +0 -3
  179. package/dist/m365/teams/TeamsTabConfiguration.js +0 -3
  180. package/dist/m365/teams/commands/Meeting.js +0 -3
@@ -61,13 +61,13 @@ class OutlookMessageMoveCommand extends GraphCommand_1.default {
61
61
  });
62
62
  }
63
63
  getFolderId(folderId, folderName) {
64
- if (folderId) {
65
- return Promise.resolve(folderId);
66
- }
67
- if (Outlook_1.Outlook.wellKnownFolderNames.indexOf(folderName) > -1) {
68
- return Promise.resolve(folderName);
69
- }
70
- return new Promise((resolve, reject) => {
64
+ return __awaiter(this, void 0, void 0, function* () {
65
+ if (folderId) {
66
+ return folderId;
67
+ }
68
+ if (Outlook_1.Outlook.wellKnownFolderNames.indexOf(folderName) > -1) {
69
+ return folderName;
70
+ }
71
71
  const requestOptions = {
72
72
  url: `${this.resource}/v1.0/me/mailFolders?$filter=displayName eq '${formatting_1.formatting.encodeQueryParameter(folderName)}'&$select=id`,
73
73
  headers: {
@@ -75,19 +75,14 @@ class OutlookMessageMoveCommand extends GraphCommand_1.default {
75
75
  },
76
76
  responseType: 'json'
77
77
  };
78
- request_1.default
79
- .get(requestOptions)
80
- .then((response) => {
81
- if (response.value.length === 1) {
82
- return resolve(response.value[0].id);
83
- }
84
- if (response.value.length === 0) {
85
- return reject(`Folder with name '${folderName}' not found`);
86
- }
87
- if (response.value.length > 1) {
88
- return reject(`Multiple folders with name '${folderName}' found. Please disambiguate:${os.EOL}${response.value.map(f => `- ${f.id}`).join(os.EOL)}`);
89
- }
90
- }, err => reject(err));
78
+ const response = yield request_1.default.get(requestOptions);
79
+ if (response.value.length === 0) {
80
+ throw `Folder with name '${folderName}' not found`;
81
+ }
82
+ if (response.value.length > 1) {
83
+ throw `Multiple folders with name '${folderName}' found. Please disambiguate:${os.EOL}${response.value.map(f => `- ${f.id}`).join(os.EOL)}`;
84
+ }
85
+ return response.value[0].id;
91
86
  });
92
87
  }
93
88
  }
@@ -22,6 +22,7 @@ const path = require("path");
22
22
  const formatting_1 = require("../../../../utils/formatting");
23
23
  const request_1 = require("../../../../request");
24
24
  const PowerPlatformCommand_1 = require("../../../base/PowerPlatformCommand");
25
+ const promises_1 = require("timers/promises");
25
26
  class PaAppExportCommand extends PowerPlatformCommand_1.default {
26
27
  get name() {
27
28
  return commands_1.default.APP_EXPORT;
@@ -32,6 +33,7 @@ class PaAppExportCommand extends PowerPlatformCommand_1.default {
32
33
  constructor() {
33
34
  super();
34
35
  _PaAppExportCommand_instances.add(this);
36
+ this.pollingInterval = 5000;
35
37
  __classPrivateFieldGet(this, _PaAppExportCommand_instances, "m", _PaAppExportCommand_initTelemetry).call(this);
36
38
  __classPrivateFieldGet(this, _PaAppExportCommand_instances, "m", _PaAppExportCommand_initOptions).call(this);
37
39
  __classPrivateFieldGet(this, _PaAppExportCommand_instances, "m", _PaAppExportCommand_initValidators).call(this);
@@ -144,7 +146,7 @@ class PaAppExportCommand extends PowerPlatformCommand_1.default {
144
146
  link = response.properties.packageLink.value;
145
147
  }
146
148
  else {
147
- yield this.sleep(5000);
149
+ (0, promises_1.setTimeout)(this.pollingInterval);
148
150
  }
149
151
  if (this.verbose) {
150
152
  logger.logToStderr(`Current status of the get package link: ${status}`);
@@ -153,9 +155,6 @@ class PaAppExportCommand extends PowerPlatformCommand_1.default {
153
155
  return link;
154
156
  });
155
157
  }
156
- sleep(ms) {
157
- return new Promise(resolve => setTimeout(resolve, ms));
158
- }
159
158
  }
160
159
  _PaAppExportCommand_instances = new WeakSet(), _PaAppExportCommand_initTelemetry = function _PaAppExportCommand_initTelemetry() {
161
160
  this.telemetry.push((args) => {
@@ -89,15 +89,17 @@ class PaAppGetCommand extends PowerAppsCommand_1.default {
89
89
  });
90
90
  }
91
91
  getApps(args, logger) {
92
- if (this.verbose) {
93
- logger.logToStderr(`Retrieving all apps...`);
94
- }
95
- const options = {
96
- output: 'json',
97
- debug: this.debug,
98
- verbose: this.verbose
99
- };
100
- return Cli_1.Cli.executeCommandWithOutput(paAppListCommand, { options: Object.assign(Object.assign({}, options), { _: [] }) });
92
+ return __awaiter(this, void 0, void 0, function* () {
93
+ if (this.verbose) {
94
+ logger.logToStderr(`Retrieving all apps...`);
95
+ }
96
+ const options = {
97
+ output: 'json',
98
+ debug: this.debug,
99
+ verbose: this.verbose
100
+ };
101
+ return yield Cli_1.Cli.executeCommandWithOutput(paAppListCommand, { options: Object.assign(Object.assign({}, options), { _: [] }) });
102
+ });
101
103
  }
102
104
  setProperties(app) {
103
105
  app.displayName = app.properties.displayName;
@@ -44,7 +44,7 @@ class PaAppRemoveCommand extends PowerAppsCommand_1.default {
44
44
  const removePaApp = () => __awaiter(this, void 0, void 0, function* () {
45
45
  const requestOptions = {
46
46
  url: `${this.resource}/providers/Microsoft.PowerApps/apps/${formatting_1.formatting.encodeQueryParameter(args.options.name)}?api-version=2017-08-01`,
47
- resolveWithFullResponse: true,
47
+ fullResponse: true,
48
48
  headers: {
49
49
  accept: 'application/json'
50
50
  },
@@ -19,7 +19,6 @@ const chalk = require("chalk");
19
19
  const fs = require("fs");
20
20
  const path = require("path");
21
21
  const uuid_1 = require("uuid");
22
- const Command_1 = require("../../../../Command");
23
22
  const validation_1 = require("../../../../utils/validation");
24
23
  const AnonymousCommand_1 = require("../../../base/AnonymousCommand");
25
24
  const commands_1 = require("../../commands");
@@ -77,7 +76,7 @@ class PaPcfInitCommand extends AnonymousCommand_1.default {
77
76
  logger.log(`Be sure to run '${chalk.grey('npm install')}' in this directory to install project dependencies.`);
78
77
  }
79
78
  catch (err) {
80
- throw new Command_1.CommandError(err);
79
+ throw err;
81
80
  }
82
81
  });
83
82
  }
@@ -19,7 +19,6 @@ const chalk = require("chalk");
19
19
  const fs = require("fs");
20
20
  const path = require("path");
21
21
  const uuid_1 = require("uuid");
22
- const Command_1 = require("../../../../Command");
23
22
  const validation_1 = require("../../../../utils/validation");
24
23
  const AnonymousCommand_1 = require("../../../base/AnonymousCommand");
25
24
  const commands_1 = require("../../commands");
@@ -89,7 +88,7 @@ class PaSolutionInitCommand extends AnonymousCommand_1.default {
89
88
  }
90
89
  }
91
90
  catch (err) {
92
- throw new Command_1.CommandError(err);
91
+ throw err;
93
92
  }
94
93
  });
95
94
  }
@@ -17,7 +17,6 @@ var _PaSolutionReferenceAddCommand_instances, _PaSolutionReferenceAddCommand_ini
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const fs = require("fs");
19
19
  const path = require("path");
20
- const Command_1 = require("../../../../Command");
21
20
  const AnonymousCommand_1 = require("../../../base/AnonymousCommand");
22
21
  const cds_project_mutator_1 = require("../../cds-project-mutator");
23
22
  const commands_1 = require("../../commands");
@@ -51,7 +50,7 @@ class PaSolutionReferenceAddCommand extends AnonymousCommand_1.default {
51
50
  fs.writeFileSync(cdsProjectFilePath, cdsProjectMutator.cdsProjectDocument);
52
51
  }
53
52
  catch (err) {
54
- throw new Command_1.CommandError(err);
53
+ throw err;
55
54
  }
56
55
  });
57
56
  }
@@ -56,31 +56,30 @@ class PpManagementAppAddCommand extends PowerPlatformCommand_1.default {
56
56
  });
57
57
  }
58
58
  getAppId(args) {
59
- if (args.options.appId) {
60
- return Promise.resolve(args.options.appId);
61
- }
62
- const { objectId, name } = args.options;
63
- const filter = objectId ?
64
- `id eq '${formatting_1.formatting.encodeQueryParameter(objectId)}'` :
65
- `displayName eq '${formatting_1.formatting.encodeQueryParameter(name)}'`;
66
- const requestOptions = {
67
- url: `https://graph.microsoft.com/v1.0/myorganization/applications?$filter=${filter}&$select=appId`,
68
- headers: {
69
- accept: 'application/json;odata.metadata=none'
70
- },
71
- responseType: 'json'
72
- };
73
- return request_1.default
74
- .get((requestOptions))
75
- .then((aadApps) => {
59
+ return __awaiter(this, void 0, void 0, function* () {
60
+ if (args.options.appId) {
61
+ return args.options.appId;
62
+ }
63
+ const { objectId, name } = args.options;
64
+ const filter = objectId ?
65
+ `id eq '${formatting_1.formatting.encodeQueryParameter(objectId)}'` :
66
+ `displayName eq '${formatting_1.formatting.encodeQueryParameter(name)}'`;
67
+ const requestOptions = {
68
+ url: `https://graph.microsoft.com/v1.0/myorganization/applications?$filter=${filter}&$select=appId`,
69
+ headers: {
70
+ accept: 'application/json;odata.metadata=none'
71
+ },
72
+ responseType: 'json'
73
+ };
74
+ const aadApps = yield request_1.default.get((requestOptions));
76
75
  if (aadApps.value.length === 0) {
77
76
  const applicationIdentifier = objectId ? `ID ${objectId}` : `name ${name}`;
78
- return Promise.reject(`No Azure AD application registration with ${applicationIdentifier} found`);
77
+ throw `No Azure AD application registration with ${applicationIdentifier} found`;
79
78
  }
80
79
  if (aadApps.value.length === 1 && aadApps.value[0].appId) {
81
- return Promise.resolve(aadApps.value[0].appId);
80
+ return aadApps.value[0].appId;
82
81
  }
83
- return Promise.reject(`Multiple Azure AD application registration with name ${name} found. Please disambiguate (app IDs): ${aadApps.value.map(a => a.appId).join(', ')}`);
82
+ throw `Multiple Azure AD application registration with name ${name} found. Please disambiguate (app IDs): ${aadApps.value.map(a => a.appId).join(', ')}`;
84
83
  });
85
84
  }
86
85
  }
@@ -49,7 +49,7 @@ class PurviewRetentionEventAddCommand extends GraphCommand_1.default {
49
49
  }
50
50
  const eventTypeId = yield this.getEventTypeId(logger, args);
51
51
  const data = {
52
- 'retentionEventType@odata.bind': `https://graph.microsoft.com/beta/security/triggerTypes/retentionEventTypes/${eventTypeId}`,
52
+ 'retentionEventType@odata.bind': `https://graph.microsoft.com/v1.0/security/triggerTypes/retentionEventTypes/${eventTypeId}`,
53
53
  displayName: args.options.displayName,
54
54
  description: args.options.description,
55
55
  eventQueries: eventQueries,
@@ -57,7 +57,7 @@ class PurviewRetentionEventAddCommand extends GraphCommand_1.default {
57
57
  };
58
58
  try {
59
59
  const requestOptions = {
60
- url: `${this.resource}/beta/security/triggers/retentionEvents`,
60
+ url: `${this.resource}/v1.0/security/triggers/retentionEvents`,
61
61
  headers: {
62
62
  accept: 'application/json;odata.metadata=none'
63
63
  },
@@ -80,7 +80,7 @@ class PurviewRetentionEventAddCommand extends GraphCommand_1.default {
80
80
  if (this.verbose) {
81
81
  logger.logToStderr(`Retrieving the event type id for event type ${args.options.eventTypeName}`);
82
82
  }
83
- const items = yield odata_1.odata.getAllItems(`${this.resource}/beta/security/triggerTypes/retentionEventTypes`);
83
+ const items = yield odata_1.odata.getAllItems(`${this.resource}/v1.0/security/triggerTypes/retentionEventTypes`);
84
84
  const eventTypes = items.filter((x) => x.displayName === args.options.eventTypeName);
85
85
  if (eventTypes.length === 0) {
86
86
  throw `The specified event type '${args.options.eventTypeName}' does not exist.`;
@@ -39,7 +39,7 @@ class PurviewRetentionEventGetCommand extends GraphCommand_1.default {
39
39
  }
40
40
  try {
41
41
  const requestOptions = {
42
- url: `${this.resource}/beta/security/triggers/retentionEvents/${args.options.id}`,
42
+ url: `${this.resource}/v1.0/security/triggers/retentionEvents/${args.options.id}`,
43
43
  headers: {
44
44
  accept: 'application/json;odata.metadata=none'
45
45
  },
@@ -28,7 +28,7 @@ class PurviewRetentionEventListCommand extends GraphCommand_1.default {
28
28
  if (this.verbose) {
29
29
  logger.logToStderr('Retrieving Purview retention events');
30
30
  }
31
- const items = yield odata_1.odata.getAllItems(`${this.resource}/beta/security/triggers/retentionEvents`);
31
+ const items = yield odata_1.odata.getAllItems(`${this.resource}/v1.0/security/triggers/retentionEvents`);
32
32
  logger.log(items);
33
33
  }
34
34
  catch (err) {
@@ -39,7 +39,7 @@ class PurviewRetentionEventRemoveCommand extends GraphCommand_1.default {
39
39
  const removeRetentionEvent = () => __awaiter(this, void 0, void 0, function* () {
40
40
  try {
41
41
  const requestOptions = {
42
- url: `${this.resource}/beta/security/triggers/retentionEvents/${args.options.id}`,
42
+ url: `${this.resource}/v1.0/security/triggers/retentionEvents/${args.options.id}`,
43
43
  headers: {
44
44
  accept: 'application/json;odata.metadata=none'
45
45
  },
@@ -38,7 +38,7 @@ class PurviewRetentionEventTypeAddCommand extends GraphCommand_1.default {
38
38
  description: args.options.description
39
39
  };
40
40
  const requestOptions = {
41
- url: `${this.resource}/beta/security/triggerTypes/retentionEventTypes`,
41
+ url: `${this.resource}/v1.0/security/triggerTypes/retentionEventTypes`,
42
42
  headers: {
43
43
  accept: 'application/json;odata.metadata=none'
44
44
  },
@@ -39,7 +39,7 @@ class PurviewRetentionEventTypeGetCommand extends GraphCommand_1.default {
39
39
  logger.logToStderr(`Retrieving retention event type with id ${args.options.id}`);
40
40
  }
41
41
  const requestOptions = {
42
- url: `${this.resource}/beta/security/triggerTypes/retentionEventTypes/${args.options.id}`,
42
+ url: `${this.resource}/v1.0/security/triggerTypes/retentionEventTypes/${args.options.id}`,
43
43
  headers: {
44
44
  accept: 'application/json;odata.metadata=none'
45
45
  },
@@ -25,7 +25,7 @@ class PurviewRetentionEventTypeListCommand extends GraphCommand_1.default {
25
25
  commandAction(logger) {
26
26
  return __awaiter(this, void 0, void 0, function* () {
27
27
  try {
28
- const items = yield odata_1.odata.getAllItems(`${this.resource}/beta/security/triggerTypes/retentionEventTypes`);
28
+ const items = yield odata_1.odata.getAllItems(`${this.resource}/v1.0/security/triggerTypes/retentionEventTypes`);
29
29
  logger.log(items);
30
30
  }
31
31
  catch (err) {
@@ -39,7 +39,7 @@ class PurviewRetentionEventTypeRemoveCommand extends GraphCommand_1.default {
39
39
  const removeRetentionEventType = () => __awaiter(this, void 0, void 0, function* () {
40
40
  try {
41
41
  const requestOptions = {
42
- url: `${this.resource}/beta/security/triggerTypes/retentionEventTypes/${args.options.id}`,
42
+ url: `${this.resource}/v1.0/security/triggerTypes/retentionEventTypes/${args.options.id}`,
43
43
  headers: {
44
44
  accept: 'application/json;odata.metadata=none'
45
45
  },
@@ -43,7 +43,7 @@ class PurviewRetentionEventTypeSetCommand extends GraphCommand_1.default {
43
43
  description: args.options.description
44
44
  };
45
45
  const requestOptions = {
46
- url: `${this.resource}/beta/security/triggerTypes/retentionEventTypes/${args.options.id}`,
46
+ url: `${this.resource}/v1.0/security/triggerTypes/retentionEventTypes/${args.options.id}`,
47
47
  headers: {
48
48
  accept: 'application/json'
49
49
  },
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const FN001008_DEP_react_1 = require("./rules/FN001008_DEP_react");
4
+ const FN001009_DEP_react_dom_1 = require("./rules/FN001009_DEP_react_dom");
5
+ const FN001022_DEP_office_ui_fabric_react_1 = require("./rules/FN001022_DEP_office_ui_fabric_react");
6
+ const FN001035_DEP_fluentui_react_1 = require("./rules/FN001035_DEP_fluentui_react");
7
+ const FN002004_DEVDEP_gulp_1 = require("./rules/FN002004_DEVDEP_gulp");
8
+ const FN002007_DEVDEP_ajv_1 = require("./rules/FN002007_DEVDEP_ajv");
9
+ const FN002013_DEVDEP_types_webpack_env_1 = require("./rules/FN002013_DEVDEP_types_webpack_env");
10
+ const FN002015_DEVDEP_types_react_1 = require("./rules/FN002015_DEVDEP_types_react");
11
+ const FN002016_DEVDEP_types_react_dom_1 = require("./rules/FN002016_DEVDEP_types_react_dom");
12
+ const FN002019_DEVDEP_microsoft_rush_stack_compiler_1 = require("./rules/FN002019_DEVDEP_microsoft_rush_stack_compiler");
13
+ module.exports = [
14
+ new FN001008_DEP_react_1.FN001008_DEP_react('17'),
15
+ new FN001009_DEP_react_dom_1.FN001009_DEP_react_dom('17'),
16
+ new FN001022_DEP_office_ui_fabric_react_1.FN001022_DEP_office_ui_fabric_react('^7.199.1'),
17
+ new FN001035_DEP_fluentui_react_1.FN001035_DEP_fluentui_react('^7.199.1'),
18
+ new FN002004_DEVDEP_gulp_1.FN002004_DEVDEP_gulp('4.0.2'),
19
+ new FN002007_DEVDEP_ajv_1.FN002007_DEVDEP_ajv('^6.12.5'),
20
+ new FN002013_DEVDEP_types_webpack_env_1.FN002013_DEVDEP_types_webpack_env('~1.15.2'),
21
+ new FN002015_DEVDEP_types_react_1.FN002015_DEVDEP_types_react('17'),
22
+ new FN002016_DEVDEP_types_react_dom_1.FN002016_DEVDEP_types_react_dom('17'),
23
+ new FN002019_DEVDEP_microsoft_rush_stack_compiler_1.FN002019_DEVDEP_microsoft_rush_stack_compiler(['4.5'])
24
+ ];
25
+ //# sourceMappingURL=doctor-1.17.3.js.map
@@ -75,7 +75,8 @@ class SpfxProjectDoctorCommand extends base_project_command_1.BaseProjectCommand
75
75
  '1.16.1',
76
76
  '1.17.0',
77
77
  '1.17.1',
78
- '1.17.2'
78
+ '1.17.2',
79
+ '1.17.3'
79
80
  ];
80
81
  __classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initTelemetry).call(this);
81
82
  __classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initOptions).call(this);
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FN002027_DEVDEP_fluentui_react = void 0;
4
+ const DependencyRule_1 = require("./DependencyRule");
5
+ class FN002027_DEVDEP_fluentui_react extends DependencyRule_1.DependencyRule {
6
+ constructor(packageVersion, add) {
7
+ super('@fluentui/react', packageVersion, true, true, add);
8
+ }
9
+ get id() {
10
+ return 'FN002027';
11
+ }
12
+ }
13
+ exports.FN002027_DEVDEP_fluentui_react = FN002027_DEVDEP_fluentui_react;
14
+ //# sourceMappingURL=FN002027_DEVDEP_fluentui_react.js.map
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const FN001001_DEP_microsoft_sp_core_library_1 = require("./rules/FN001001_DEP_microsoft_sp_core_library");
4
+ const FN001002_DEP_microsoft_sp_lodash_subset_1 = require("./rules/FN001002_DEP_microsoft_sp_lodash_subset");
5
+ const FN001003_DEP_microsoft_sp_office_ui_fabric_core_1 = require("./rules/FN001003_DEP_microsoft_sp_office_ui_fabric_core");
6
+ const FN001004_DEP_microsoft_sp_webpart_base_1 = require("./rules/FN001004_DEP_microsoft_sp_webpart_base");
7
+ const FN001011_DEP_microsoft_sp_dialog_1 = require("./rules/FN001011_DEP_microsoft_sp_dialog");
8
+ const FN001012_DEP_microsoft_sp_application_base_1 = require("./rules/FN001012_DEP_microsoft_sp_application_base");
9
+ const FN001013_DEP_microsoft_decorators_1 = require("./rules/FN001013_DEP_microsoft_decorators");
10
+ const FN001014_DEP_microsoft_sp_listview_extensibility_1 = require("./rules/FN001014_DEP_microsoft_sp_listview_extensibility");
11
+ const FN001021_DEP_microsoft_sp_property_pane_1 = require("./rules/FN001021_DEP_microsoft_sp_property_pane");
12
+ const FN001023_DEP_microsoft_sp_component_base_1 = require("./rules/FN001023_DEP_microsoft_sp_component_base");
13
+ const FN001024_DEP_microsoft_sp_diagnostics_1 = require("./rules/FN001024_DEP_microsoft_sp_diagnostics");
14
+ const FN001025_DEP_microsoft_sp_dynamic_data_1 = require("./rules/FN001025_DEP_microsoft_sp_dynamic_data");
15
+ const FN001026_DEP_microsoft_sp_extension_base_1 = require("./rules/FN001026_DEP_microsoft_sp_extension_base");
16
+ const FN001027_DEP_microsoft_sp_http_1 = require("./rules/FN001027_DEP_microsoft_sp_http");
17
+ const FN001028_DEP_microsoft_sp_list_subscription_1 = require("./rules/FN001028_DEP_microsoft_sp_list_subscription");
18
+ const FN001029_DEP_microsoft_sp_loader_1 = require("./rules/FN001029_DEP_microsoft_sp_loader");
19
+ const FN001030_DEP_microsoft_sp_module_interfaces_1 = require("./rules/FN001030_DEP_microsoft_sp_module_interfaces");
20
+ const FN001031_DEP_microsoft_sp_odata_types_1 = require("./rules/FN001031_DEP_microsoft_sp_odata_types");
21
+ const FN001032_DEP_microsoft_sp_page_context_1 = require("./rules/FN001032_DEP_microsoft_sp_page_context");
22
+ const FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1 = require("./rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base");
23
+ const FN001035_DEP_fluentui_react_1 = require("./rules/FN001035_DEP_fluentui_react");
24
+ const FN002001_DEVDEP_microsoft_sp_build_web_1 = require("./rules/FN002001_DEVDEP_microsoft_sp_build_web");
25
+ const FN002002_DEVDEP_microsoft_sp_module_interfaces_1 = require("./rules/FN002002_DEVDEP_microsoft_sp_module_interfaces");
26
+ const FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1 = require("./rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx");
27
+ const FN002023_DEVDEP_microsoft_eslint_config_spfx_1 = require("./rules/FN002023_DEVDEP_microsoft_eslint_config_spfx");
28
+ const FN002027_DEVDEP_fluentui_react_1 = require("./rules/FN002027_DEVDEP_fluentui_react");
29
+ const FN010001_YORC_version_1 = require("./rules/FN010001_YORC_version");
30
+ module.exports = [
31
+ new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.17.3'),
32
+ new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.17.3'),
33
+ new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.17.3'),
34
+ new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.17.3'),
35
+ new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.17.3'),
36
+ new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.17.3'),
37
+ new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.17.3'),
38
+ new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.17.3'),
39
+ new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.17.3'),
40
+ new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.17.3'),
41
+ new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.17.3'),
42
+ new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.17.3'),
43
+ new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.17.3'),
44
+ new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.17.3'),
45
+ new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.17.3'),
46
+ new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.17.3'),
47
+ new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.17.3'),
48
+ new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.17.3'),
49
+ new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.17.3'),
50
+ new FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1.FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.17.3'),
51
+ new FN001035_DEP_fluentui_react_1.FN001035_DEP_fluentui_react('7.199.1'),
52
+ new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.17.3'),
53
+ new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.17.3'),
54
+ new FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1.FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.17.3'),
55
+ new FN002023_DEVDEP_microsoft_eslint_config_spfx_1.FN002023_DEVDEP_microsoft_eslint_config_spfx('1.17.3'),
56
+ new FN002027_DEVDEP_fluentui_react_1.FN002027_DEVDEP_fluentui_react('', false),
57
+ new FN010001_YORC_version_1.FN010001_YORC_version('1.17.3')
58
+ ];
59
+ //# sourceMappingURL=upgrade-1.17.3.js.map
@@ -77,7 +77,8 @@ class SpfxProjectUpgradeCommand extends base_project_command_1.BaseProjectComman
77
77
  '1.16.1',
78
78
  '1.17.0',
79
79
  '1.17.1',
80
- '1.17.2'
80
+ '1.17.2',
81
+ '1.17.3'
81
82
  ];
82
83
  __classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initTelemetry).call(this);
83
84
  __classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initOptions).call(this);
@@ -504,6 +504,21 @@ class SpfxDoctorCommand extends base_project_command_1.BaseProjectCommand {
504
504
  range: '^4',
505
505
  fix: 'npm i -g yo@4'
506
506
  }
507
+ },
508
+ '1.17.3': {
509
+ gulpCli: {
510
+ range: '^1 || ^2',
511
+ fix: 'npm i -g gulp-cli@2'
512
+ },
513
+ node: {
514
+ range: '>=16.13.0 <17.0.0',
515
+ fix: 'Install Node.js >=16.13.0 <17.0.0'
516
+ },
517
+ sp: SharePointVersion.SPO,
518
+ yo: {
519
+ range: '^4',
520
+ fix: 'npm i -g yo@4'
521
+ }
507
522
  }
508
523
  };
509
524
  __classPrivateFieldGet(this, _SpfxDoctorCommand_instances, "m", _SpfxDoctorCommand_initTelemetry).call(this);
@@ -85,15 +85,14 @@ class SpoAppTeamsPackageDownloadCommand extends SpoAppBaseCommand_1.SpoAppBaseCo
85
85
  });
86
86
  }
87
87
  ensureAppInfo(logger, args, appInfo) {
88
- if (appInfo.id && appInfo.packageFileName) {
89
- return Promise.resolve();
90
- }
91
- if (args.options.appName && !appInfo.packageFileName) {
92
- appInfo.packageFileName = this.getPackageNameFromFileName(args.options.appName);
93
- }
94
- return this
95
- .loadAppCatalogUrl(logger, args)
96
- .then(_ => {
88
+ return __awaiter(this, void 0, void 0, function* () {
89
+ if (appInfo.id && appInfo.packageFileName) {
90
+ return;
91
+ }
92
+ if (args.options.appName && !appInfo.packageFileName) {
93
+ appInfo.packageFileName = this.getPackageNameFromFileName(args.options.appName);
94
+ }
95
+ yield this.loadAppCatalogUrl(logger, args);
97
96
  const appCatalogListName = 'AppCatalog';
98
97
  const serverRelativeAppCatalogListUrl = `${urlUtil_1.urlUtil.getServerRelativeSiteUrl(this.appCatalogUrl)}/${appCatalogListName}`;
99
98
  let url = `${this.appCatalogUrl}/_api/web/`;
@@ -113,39 +112,33 @@ class SpoAppTeamsPackageDownloadCommand extends SpoAppBaseCommand_1.SpoAppBaseCo
113
112
  },
114
113
  responseType: 'json'
115
114
  };
116
- return request_1.default.get(requestOptions);
117
- })
118
- .then(res => {
115
+ const res = yield request_1.default.get(requestOptions);
119
116
  if (args.options.appItemUniqueId) {
120
117
  appInfo.id = parseInt(res.Id);
121
118
  if (!appInfo.packageFileName) {
122
119
  appInfo.packageFileName = this.getPackageNameFromFileName(res.File.Name);
123
120
  }
124
- return Promise.resolve();
121
+ return;
125
122
  }
126
123
  if (args.options.appItemId) {
127
124
  if (!appInfo.packageFileName) {
128
125
  appInfo.packageFileName = this.getPackageNameFromFileName(res.File.Name);
129
126
  }
130
- return Promise.resolve();
127
+ return;
131
128
  }
132
- // if (args.options.appName)
133
- // skipped 'if' clause to provide a default code branch
134
129
  appInfo.id = parseInt(res.Id);
135
- return Promise.resolve();
136
130
  });
137
131
  }
138
132
  getPackageNameFromFileName(fileName) {
139
133
  return `${path.basename(fileName, path.extname(fileName))}.zip`;
140
134
  }
141
135
  loadAppCatalogUrl(logger, args) {
142
- if (this.appCatalogUrl) {
143
- return Promise.resolve();
144
- }
145
- return spo_1.spo
146
- .getSpoUrl(logger, this.debug)
147
- .then(spoUrl => this.getAppCatalogSiteUrl(logger, spoUrl, args))
148
- .then(appCatalogUrl => {
136
+ return __awaiter(this, void 0, void 0, function* () {
137
+ if (this.appCatalogUrl) {
138
+ return;
139
+ }
140
+ const spoUrl = yield spo_1.spo.getSpoUrl(logger, this.debug);
141
+ const appCatalogUrl = yield this.getAppCatalogSiteUrl(logger, spoUrl, args);
149
142
  this.appCatalogUrl = appCatalogUrl;
150
143
  });
151
144
  }
@@ -42,7 +42,7 @@ class SpoAppPageSetCommand extends SpoCommand_1.default {
42
42
  },
43
43
  responseType: 'json',
44
44
  data: {
45
- serverRelativeUrl: `${urlUtil_1.urlUtil.getServerRelativePath(args.options.webUrl, '')}/SitePages/${args.options.name}`,
45
+ serverRelativeUrl: `${urlUtil_1.urlUtil.getServerRelativePath(args.options.webUrl, 'SitePages')}/${args.options.name}`,
46
46
  webPartDataAsJson: args.options.webPartData
47
47
  }
48
48
  };