@pnp/cli-microsoft365 5.8.0-beta.40c8ac8 → 5.8.0-beta.5250f08

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 (110) hide show
  1. package/dist/cli/Cli.js +1 -1
  2. package/dist/m365/aad/commands/app/app-get.js +4 -11
  3. package/dist/m365/aad/commands/app/app-remove.js +4 -11
  4. package/dist/m365/aad/commands/app/app-role-add.js +5 -10
  5. package/dist/m365/aad/commands/app/app-role-list.js +4 -24
  6. package/dist/m365/aad/commands/app/app-role-remove.js +4 -22
  7. package/dist/m365/aad/commands/app/app-set.js +4 -11
  8. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +4 -8
  9. package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +4 -11
  10. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +4 -8
  11. package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +4 -7
  12. package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +4 -8
  13. package/dist/m365/aad/commands/o365group/o365group-teamify.js +4 -7
  14. package/dist/m365/aad/commands/o365group/o365group-user-add.js +4 -7
  15. package/dist/m365/aad/commands/o365group/o365group-user-remove.js +4 -7
  16. package/dist/m365/aad/commands/o365group/o365group-user-set.js +4 -7
  17. package/dist/m365/aad/commands/sp/sp-add.js +4 -8
  18. package/dist/m365/aad/commands/sp/sp-get.js +4 -8
  19. package/dist/m365/aad/commands/user/user-get.js +4 -9
  20. package/dist/m365/aad/commands/user/user-list.js +13 -2
  21. package/dist/m365/aad/commands/user/user-set.js +4 -7
  22. package/dist/m365/outlook/commands/message/message-list.js +4 -23
  23. package/dist/m365/outlook/commands/message/message-move.js +4 -31
  24. package/dist/m365/pa/commands/app/app-get.js +4 -7
  25. package/dist/m365/planner/commands/bucket/bucket-add.js +4 -7
  26. package/dist/m365/planner/commands/bucket/bucket-list.js +4 -7
  27. package/dist/m365/planner/commands/plan/plan-add.js +4 -7
  28. package/dist/m365/planner/commands/plan/plan-list.js +4 -7
  29. package/dist/m365/planner/commands/task/task-add.js +4 -13
  30. package/dist/m365/pp/commands/managementapp/managementapp-add.js +4 -11
  31. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010008_YORC_nodeVersion.js +47 -0
  32. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021003_PKG_engines_node.js +48 -0
  33. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.16.0-beta.1.js +61 -0
  34. package/dist/m365/spfx/commands/project/project-upgrade.js +16 -13
  35. package/dist/m365/spo/commands/app/app-deploy.js +4 -7
  36. package/dist/m365/spo/commands/app/app-get.js +4 -7
  37. package/dist/m365/spo/commands/contenttype/contenttype-get.js +4 -7
  38. package/dist/m365/spo/commands/contenttype/contenttype-remove.js +5 -14
  39. package/dist/m365/spo/commands/file/file-checkin.js +4 -7
  40. package/dist/m365/spo/commands/file/file-checkout.js +4 -7
  41. package/dist/m365/spo/commands/file/file-get.js +4 -7
  42. package/dist/m365/spo/commands/file/file-remove.js +4 -7
  43. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +4 -7
  44. package/dist/m365/spo/commands/group/group-remove.js +4 -7
  45. package/dist/m365/spo/commands/group/group-user-add.js +4 -13
  46. package/dist/m365/spo/commands/group/group-user-list.js +4 -7
  47. package/dist/m365/spo/commands/group/group-user-remove.js +4 -7
  48. package/dist/m365/spo/commands/list/list-contenttype-add.js +4 -7
  49. package/dist/m365/spo/commands/list/list-contenttype-default-set.js +4 -7
  50. package/dist/m365/spo/commands/list/list-contenttype-list.js +4 -7
  51. package/dist/m365/spo/commands/list/list-contenttype-remove.js +4 -7
  52. package/dist/m365/spo/commands/list/list-get.js +4 -7
  53. package/dist/m365/spo/commands/list/list-label-get.js +4 -7
  54. package/dist/m365/spo/commands/list/list-label-set.js +4 -4
  55. package/dist/m365/spo/commands/list/list-remove.js +4 -7
  56. package/dist/m365/spo/commands/list/list-sitescript-get.js +4 -7
  57. package/dist/m365/spo/commands/list/list-view-field-add.js +4 -19
  58. package/dist/m365/spo/commands/list/list-view-field-remove.js +4 -19
  59. package/dist/m365/spo/commands/list/list-view-field-set.js +4 -19
  60. package/dist/m365/spo/commands/list/list-view-get.js +4 -10
  61. package/dist/m365/spo/commands/list/list-view-list.js +4 -7
  62. package/dist/m365/spo/commands/list/list-view-remove.js +4 -13
  63. package/dist/m365/spo/commands/list/list-view-set.js +4 -13
  64. package/dist/m365/spo/commands/list/list-webhook-add.js +4 -7
  65. package/dist/m365/spo/commands/list/list-webhook-get.js +4 -7
  66. package/dist/m365/spo/commands/list/list-webhook-remove.js +4 -7
  67. package/dist/m365/spo/commands/list/list-webhook-set.js +4 -7
  68. package/dist/m365/spo/commands/listitem/listitem-add.js +4 -7
  69. package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +4 -7
  70. package/dist/m365/spo/commands/listitem/listitem-get.js +4 -7
  71. package/dist/m365/spo/commands/listitem/listitem-isrecord.js +4 -7
  72. package/dist/m365/spo/commands/listitem/listitem-record-declare.js +4 -7
  73. package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +4 -7
  74. package/dist/m365/spo/commands/listitem/listitem-remove.js +4 -7
  75. package/dist/m365/spo/commands/listitem/listitem-set.js +4 -7
  76. package/dist/m365/spo/commands/site/site-apppermission-add.js +4 -4
  77. package/dist/m365/spo/commands/site/site-apppermission-remove.js +4 -9
  78. package/dist/m365/spo/commands/site/site-apppermission-set.js +4 -4
  79. package/dist/m365/spo/commands/term/term-add.js +4 -7
  80. package/dist/m365/spo/commands/term/term-get.js +4 -7
  81. package/dist/m365/spo/commands/term/term-group-get.js +4 -7
  82. package/dist/m365/spo/commands/term/term-list.js +4 -13
  83. package/dist/m365/spo/commands/term/term-set-add.js +4 -7
  84. package/dist/m365/spo/commands/term/term-set-get.js +4 -13
  85. package/dist/m365/spo/commands/term/term-set-list.js +4 -7
  86. package/dist/m365/spo/commands/user/user-get.js +4 -9
  87. package/dist/m365/spo/commands/user/user-remove.js +4 -7
  88. package/dist/m365/teams/commands/app/app-install.js +4 -11
  89. package/dist/m365/teams/commands/app/app-update.js +4 -7
  90. package/dist/m365/teams/commands/channel/channel-add.js +4 -7
  91. package/dist/m365/teams/commands/channel/channel-get.js +4 -22
  92. package/dist/m365/teams/commands/channel/channel-list.js +4 -7
  93. package/dist/m365/teams/commands/channel/channel-member-list.js +4 -13
  94. package/dist/m365/teams/commands/channel/channel-member-set.js +4 -21
  95. package/dist/m365/teams/commands/channel/channel-remove.js +4 -7
  96. package/dist/m365/teams/commands/chat/chat-get.js +4 -17
  97. package/dist/m365/teams/commands/chat/chat-message-send.js +4 -17
  98. package/dist/m365/teams/commands/tab/tab-get.js +4 -19
  99. package/dist/m365/teams/commands/team/team-get.js +4 -7
  100. package/dist/m365/teams/commands/user/user-app-list.js +4 -7
  101. package/dist/m365/todo/commands/list/list-remove.js +4 -21
  102. package/dist/m365/todo/commands/list/list-set.js +4 -21
  103. package/dist/m365/todo/commands/task/task-add.js +4 -21
  104. package/dist/m365/todo/commands/task/task-list.js +4 -21
  105. package/dist/m365/todo/commands/task/task-remove.js +4 -21
  106. package/dist/m365/todo/commands/task/task-set.js +4 -7
  107. package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
  108. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.md +6 -6
  109. package/package.json +1 -1
  110. package/scripts/Register-CLIM365Completion.ps1 +1 -1
@@ -1,19 +1,10 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12
3
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
13
4
  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");
14
5
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15
6
  };
16
- var _TodoTaskRemoveCommand_instances, _TodoTaskRemoveCommand_initTelemetry, _TodoTaskRemoveCommand_initOptions, _TodoTaskRemoveCommand_initValidators;
7
+ var _TodoTaskRemoveCommand_instances, _TodoTaskRemoveCommand_initTelemetry, _TodoTaskRemoveCommand_initOptions, _TodoTaskRemoveCommand_initOptionSets;
17
8
  Object.defineProperty(exports, "__esModule", { value: true });
18
9
  const cli_1 = require("../../../../cli");
19
10
  const request_1 = require("../../../../request");
@@ -25,7 +16,7 @@ class TodoTaskRemoveCommand extends GraphCommand_1.default {
25
16
  _TodoTaskRemoveCommand_instances.add(this);
26
17
  __classPrivateFieldGet(this, _TodoTaskRemoveCommand_instances, "m", _TodoTaskRemoveCommand_initTelemetry).call(this);
27
18
  __classPrivateFieldGet(this, _TodoTaskRemoveCommand_instances, "m", _TodoTaskRemoveCommand_initOptions).call(this);
28
- __classPrivateFieldGet(this, _TodoTaskRemoveCommand_instances, "m", _TodoTaskRemoveCommand_initValidators).call(this);
19
+ __classPrivateFieldGet(this, _TodoTaskRemoveCommand_instances, "m", _TodoTaskRemoveCommand_initOptionSets).call(this);
29
20
  }
30
21
  get name() {
31
22
  return commands_1.default.TASK_REMOVE;
@@ -105,16 +96,8 @@ _TodoTaskRemoveCommand_instances = new WeakSet(), _TodoTaskRemoveCommand_initTel
105
96
  }, {
106
97
  option: '--confirm'
107
98
  });
108
- }, _TodoTaskRemoveCommand_initValidators = function _TodoTaskRemoveCommand_initValidators() {
109
- this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
110
- if (!args.options.listName && !args.options.listId) {
111
- return 'Specify name or id of the To Do list';
112
- }
113
- if (args.options.listName && args.options.listId) {
114
- return 'Specify either the name or the id of the To Do list but not both';
115
- }
116
- return true;
117
- }));
99
+ }, _TodoTaskRemoveCommand_initOptionSets = function _TodoTaskRemoveCommand_initOptionSets() {
100
+ this.optionSets.push(['listName', 'listId']);
118
101
  };
119
102
  module.exports = new TodoTaskRemoveCommand();
120
103
  //# sourceMappingURL=task-remove.js.map
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
13
13
  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");
14
14
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15
15
  };
16
- var _TodoTaskSetCommand_instances, _TodoTaskSetCommand_initTelemetry, _TodoTaskSetCommand_initOptions, _TodoTaskSetCommand_initValidators;
16
+ var _TodoTaskSetCommand_instances, _TodoTaskSetCommand_initTelemetry, _TodoTaskSetCommand_initOptions, _TodoTaskSetCommand_initValidators, _TodoTaskSetCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const request_1 = require("../../../../request");
19
19
  const GraphCommand_1 = require("../../../base/GraphCommand");
@@ -25,6 +25,7 @@ class TodoTaskSetCommand extends GraphCommand_1.default {
25
25
  __classPrivateFieldGet(this, _TodoTaskSetCommand_instances, "m", _TodoTaskSetCommand_initTelemetry).call(this);
26
26
  __classPrivateFieldGet(this, _TodoTaskSetCommand_instances, "m", _TodoTaskSetCommand_initOptions).call(this);
27
27
  __classPrivateFieldGet(this, _TodoTaskSetCommand_instances, "m", _TodoTaskSetCommand_initValidators).call(this);
28
+ __classPrivateFieldGet(this, _TodoTaskSetCommand_instances, "m", _TodoTaskSetCommand_initOptionSets).call(this);
28
29
  }
29
30
  get name() {
30
31
  return commands_1.default.TASK_SET;
@@ -109,12 +110,6 @@ _TodoTaskSetCommand_instances = new WeakSet(), _TodoTaskSetCommand_initTelemetry
109
110
  });
110
111
  }, _TodoTaskSetCommand_initValidators = function _TodoTaskSetCommand_initValidators() {
111
112
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
112
- if (args.options.listId && args.options.listName) {
113
- return 'Specify listId or listName but not both';
114
- }
115
- if (!args.options.listId && !args.options.listName) {
116
- return 'Specify listId or listName';
117
- }
118
113
  if (args.options.status &&
119
114
  args.options.status !== 'notStarted' &&
120
115
  args.options.status !== 'inProgress' &&
@@ -125,6 +120,8 @@ _TodoTaskSetCommand_instances = new WeakSet(), _TodoTaskSetCommand_initTelemetry
125
120
  }
126
121
  return true;
127
122
  }));
123
+ }, _TodoTaskSetCommand_initOptionSets = function _TodoTaskSetCommand_initOptionSets() {
124
+ this.optionSets.push(['listId', 'listName']);
128
125
  };
129
126
  module.exports = new TodoTaskSetCommand();
130
127
  //# sourceMappingURL=task-set.js.map
@@ -32,7 +32,7 @@ m365 spfx project upgrade [options]
32
32
 
33
33
  ## Remarks
34
34
 
35
- The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.15.2).
35
+ The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.16.0-beta.1).
36
36
 
37
37
  This command doesn't change your project files. Instead, it gives you a report with all steps necessary to upgrade your project to the specified version of the SharePoint Framework. Changing project files is error-prone, especially when it comes to updating your solution's code. This is why at this moment, this command produces a report that you can use yourself to perform the necessary updates and verify that everything is working as expected.
38
38
 
@@ -36,23 +36,23 @@ By default, when breaking permissions inheritance, the list item will retain exi
36
36
  Break inheritance of list item _1_ in list _someList_ located in site _https://contoso.sharepoint.com/sites/project-x_
37
37
 
38
38
  ```sh
39
- m365 spo listitem roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "_someList_" --id 1
39
+ m365 spo listitem roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "_someList_" --listItemId 1
40
40
  ```
41
41
 
42
42
  Break inheritance of list item _1_ in list with ID _202b8199-b9de-43fd-9737-7f213f51c991_ located in site _https://contoso.sharepoint.com/sites/project-x_
43
43
 
44
44
  ```sh
45
- m365 spo listitem roleinheritance break --webUrl https://contoso.sharepoint.com/sites/project-x --listId 202b8199-b9de-43fd-9737-7f213f51c991 --id 1
45
+ m365 spo listitem roleinheritance break --webUrl https://contoso.sharepoint.com/sites/project-x --listId 202b8199-b9de-43fd-9737-7f213f51c991 --listItemId 1
46
46
  ```
47
47
 
48
- Break inheritance of list item _1_ in list _someList_ located in site _https://contoso.sharepoint.com/sites/project-x_ with clearing permissions
48
+ Break inheritance of list item _1_ in list _someList_ located in site _https://contoso.sharepoint.com/sites/project-x_ with clearing permissions
49
49
 
50
50
  ```sh
51
- m365 spo listitem roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "_someList_" --id 1 --clearExistingPermissions
51
+ m365 spo listitem roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "_someList_" --listItemId 1 --clearExistingPermissions
52
52
  ```
53
53
 
54
- Break inheritance of list item _1_ in list with ID _202b8199-b9de-43fd-9737-7f213f51c991_ located in site _https://contoso.sharepoint.com/sites/project-x_ with clearing permissions
54
+ Break inheritance of list item _1_ in list with ID _202b8199-b9de-43fd-9737-7f213f51c991_ located in site _https://contoso.sharepoint.com/sites/project-x_ with clearing permissions
55
55
 
56
56
  ```sh
57
- m365 spo listitem roleinheritance break --webUrl https://contoso.sharepoint.com/sites/project-x --listId 202b8199-b9de-43fd-9737-7f213f51c991 --id 1 --clearExistingPermissions
57
+ m365 spo listitem roleinheritance break --webUrl https://contoso.sharepoint.com/sites/project-x --listId 202b8199-b9de-43fd-9737-7f213f51c991 --listItemId 1 --clearExistingPermissions
58
58
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "5.8.0-beta.40c8ac8",
3
+ "version": "5.8.0-beta.5250f08",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",
@@ -1,7 +1,7 @@
1
1
  function CLIMicrosoft365Completion {
2
2
  param($commandName, $wordToComplete, $cursorPosition)
3
3
 
4
- $commands = Get-Content $(Join-Path $PSScriptRoot ".." "commands.json" -Resolve) | ConvertFrom-Json
4
+ $commands = Get-Content $(Join-Path -Path $PSScriptRoot -ChildPath ".." | Join-Path -ChildPath "commands.json" -Resolve) | ConvertFrom-Json
5
5
  $command = $commands
6
6
  $parent = $commands
7
7
  $replies = @{ }