@pnp/cli-microsoft365 5.4.0-beta.8724dc1 → 5.4.0-beta.d09de0f

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 (90) hide show
  1. package/.devcontainer/Dockerfile +1 -1
  2. package/.eslintrc.js +1 -0
  3. package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +4 -19
  4. package/dist/m365/aad/commands/o365group/o365group-get.js +3 -9
  5. package/dist/m365/base/PlannerCommand.js +10 -0
  6. package/dist/m365/planner/commands/bucket/bucket-add.js +4 -16
  7. package/dist/m365/planner/commands/bucket/bucket-get.js +4 -18
  8. package/dist/m365/planner/commands/bucket/bucket-list.js +4 -17
  9. package/dist/m365/planner/commands/bucket/bucket-remove.js +4 -18
  10. package/dist/m365/planner/commands/bucket/bucket-set.js +4 -18
  11. package/dist/m365/planner/commands/plan/plan-add.js +4 -16
  12. package/dist/m365/planner/commands/plan/plan-details-get.js +4 -19
  13. package/dist/m365/planner/commands/plan/plan-get.js +4 -17
  14. package/dist/m365/planner/commands/plan/plan-list.js +4 -17
  15. package/dist/m365/planner/commands/task/task-add.js +4 -16
  16. package/dist/m365/planner/commands/task/task-checklistitem-add.js +89 -0
  17. package/dist/m365/planner/commands/task/task-get.js +40 -29
  18. package/dist/m365/planner/commands/task/task-list.js +4 -16
  19. package/dist/m365/planner/commands/task/task-set.js +4 -16
  20. package/dist/m365/planner/commands/tenant/tenant-settings-list.js +33 -0
  21. package/dist/m365/planner/commands.js +3 -1
  22. package/dist/m365/spo/commands/contenttype/contenttype-add.js +1 -1
  23. package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +1 -1
  24. package/dist/m365/spo/commands/contenttype/contenttype-get.js +1 -1
  25. package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +3 -3
  26. package/dist/m365/spo/commands/field/field-add.js +1 -1
  27. package/dist/m365/spo/commands/field/field-get.js +5 -5
  28. package/dist/m365/spo/commands/field/field-list.js +3 -3
  29. package/dist/m365/spo/commands/field/field-remove.js +5 -5
  30. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +1 -1
  31. package/dist/m365/spo/commands/list/list-contenttype-add.js +3 -3
  32. package/dist/m365/spo/commands/list/list-contenttype-default-set.js +2 -2
  33. package/dist/m365/spo/commands/list/list-contenttype-list.js +3 -3
  34. package/dist/m365/spo/commands/list/list-contenttype-remove.js +3 -3
  35. package/dist/m365/spo/commands/list/list-get.js +2 -2
  36. package/dist/m365/spo/commands/list/list-label-get.js +3 -3
  37. package/dist/m365/spo/commands/list/list-label-set.js +2 -2
  38. package/dist/m365/spo/commands/list/list-remove.js +2 -2
  39. package/dist/m365/spo/commands/list/list-roleinheritance-break.js +2 -2
  40. package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +2 -2
  41. package/dist/m365/spo/commands/list/list-sitescript-get.js +3 -3
  42. package/dist/m365/spo/commands/list/list-view-add.js +3 -3
  43. package/dist/m365/spo/commands/list/list-view-field-add.js +2 -2
  44. package/dist/m365/spo/commands/list/list-view-field-remove.js +2 -2
  45. package/dist/m365/spo/commands/list/list-view-field-set.js +2 -2
  46. package/dist/m365/spo/commands/list/list-view-get.js +4 -4
  47. package/dist/m365/spo/commands/list/list-view-list.js +3 -3
  48. package/dist/m365/spo/commands/list/list-view-remove.js +3 -3
  49. package/dist/m365/spo/commands/list/list-view-set.js +3 -3
  50. package/dist/m365/spo/commands/list/list-webhook-add.js +3 -3
  51. package/dist/m365/spo/commands/list/list-webhook-get.js +3 -3
  52. package/dist/m365/spo/commands/list/list-webhook-list.js +5 -5
  53. package/dist/m365/spo/commands/list/list-webhook-remove.js +4 -4
  54. package/dist/m365/spo/commands/list/list-webhook-set.js +3 -3
  55. package/dist/m365/spo/commands/listitem/listitem-add.js +2 -2
  56. package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +2 -2
  57. package/dist/m365/spo/commands/listitem/listitem-get.js +2 -2
  58. package/dist/m365/spo/commands/listitem/listitem-isrecord.js +2 -2
  59. package/dist/m365/spo/commands/listitem/listitem-list.js +31 -11
  60. package/dist/m365/spo/commands/listitem/listitem-record-declare.js +2 -2
  61. package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +2 -2
  62. package/dist/m365/spo/commands/listitem/listitem-remove.js +2 -2
  63. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +2 -2
  64. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +2 -2
  65. package/dist/m365/spo/commands/listitem/listitem-set.js +2 -2
  66. package/dist/m365/spo/commands/roledefinition/roledefinition-remove.js +82 -0
  67. package/dist/m365/spo/commands/site/site-remove.js +23 -37
  68. package/dist/m365/spo/commands.js +1 -0
  69. package/dist/m365/teams/commands/app/app-list.js +6 -20
  70. package/dist/m365/teams/commands/channel/channel-get.js +6 -19
  71. package/dist/m365/teams/commands/channel/channel-list.js +6 -18
  72. package/dist/m365/teams/commands/channel/channel-member-add.js +7 -18
  73. package/dist/m365/teams/commands/channel/channel-member-list.js +6 -19
  74. package/dist/m365/teams/commands/channel/channel-member-remove.js +6 -19
  75. package/dist/m365/teams/commands/channel/channel-member-set.js +6 -19
  76. package/dist/m365/teams/commands/tab/tab-get.js +6 -19
  77. package/dist/m365/teams/commands/team/team-add.js +2 -7
  78. package/dist/m365/teams/commands/team/team-get.js +6 -19
  79. package/dist/utils/aadGroup.js +57 -0
  80. package/dist/utils/index.js +2 -0
  81. package/dist/utils/validation.js +12 -2
  82. package/docs/docs/cmd/planner/task/task-checklistitem-add.md +36 -0
  83. package/docs/docs/cmd/planner/task/task-get.md +3 -0
  84. package/docs/docs/cmd/planner/tenant/tenant-settings-list.md +28 -0
  85. package/docs/docs/cmd/spo/file/file-checkout.md +1 -1
  86. package/docs/docs/cmd/spo/listitem/listitem-list.md +16 -10
  87. package/docs/docs/cmd/spo/roledefinition/roledefinition-remove.md +36 -0
  88. package/package.json +1 -1
  89. package/dist/m365/planner/commands/task/task-details-get.js +0 -45
  90. package/docs/docs/cmd/planner/task/task-details-get.md +0 -24
@@ -13,11 +13,17 @@ m365 spo listitem list [options]
13
13
  `-u, --webUrl <webUrl>`
14
14
  : URL of the site from which the item should be retrieved
15
15
 
16
- `-i, --id [id]`
17
- : ID of the list to retrieve items from. Specify `id` or `title` but not both
16
+ `-i, --listId [listId]`
17
+ : ID of the list to retrieve items from. Specify `listId` or `listTitle` but not both
18
18
 
19
- `-t, --title [title]`
20
- : Title of the list from which to retrieve the item. Specify `id` or `title` but not both
19
+ `--id [id]`
20
+ : (deprecated. Use `listId` instead) ID of the list to retrieve items from. Specify `id` or `title` but not both
21
+
22
+ `-t, --listTitle [listTitle]`
23
+ : Title of the list to retrieve items from. Specify `listId` or `listTitle` but not both
24
+
25
+ `--title [title]`
26
+ : (deprecated. Use `listTitle` instead) Title of the list to retrieve items from. Specify `id` or `title` but not both
21
27
 
22
28
  `-q, --camlQuery [camlQuery]`
23
29
  : CAML query to use to query the list of items with
@@ -45,35 +51,35 @@ m365 spo listitem list [options]
45
51
  Get all items from a list named Demo List
46
52
 
47
53
  ```sh
48
- m365 spo listitem list --title "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x
54
+ m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x
49
55
  ```
50
56
 
51
57
  From a list named _Demo List_ get all items with title _Demo list item_ using a CAML query
52
58
 
53
59
  ```sh
54
- m365 spo listitem list --title "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --camlQuery "<View><Query><Where><Eq><FieldRef Name='Title' /><Value Type='Text'>Demo list item</Value></Eq></Where></Query></View>"
60
+ m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --camlQuery "<View><Query><Where><Eq><FieldRef Name='Title' /><Value Type='Text'>Demo list item</Value></Eq></Where></Query></View>"
55
61
  ```
56
62
 
57
63
  Get all items from a list with ID _935c13a0-cc53-4103-8b48-c1d0828eaa7f_
58
64
 
59
65
  ```sh
60
- m365 spo listitem list --id 935c13a0-cc53-4103-8b48-c1d0828eaa7f --webUrl https://contoso.sharepoint.com/sites/project-x
66
+ m365 spo listitem list --listId 935c13a0-cc53-4103-8b48-c1d0828eaa7f --webUrl https://contoso.sharepoint.com/sites/project-x
61
67
  ```
62
68
 
63
69
  Get all items from list named _Demo List_. For each item, retrieve the value of the _ID_, _Title_ and _Modified_ fields
64
70
 
65
71
  ```sh
66
- m365 spo listitem list --title "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --fields "ID,Title,Modified"
72
+ m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --fields "ID,Title,Modified"
67
73
  ```
68
74
 
69
75
  From a list named _Demo List_ get all items with title _Demo list item_ using an OData filter
70
76
 
71
77
  ```sh
72
- m365 spo listitem list --title "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --filter "Title eq 'Demo list item'"
78
+ m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --filter "Title eq 'Demo list item'"
73
79
  ```
74
80
 
75
81
  From a list named _Demo List_ get the second batch of 10 items
76
82
 
77
83
  ```sh
78
- m365 spo listitem list --title "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --pageSize 10 --pageNumber 2
84
+ m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --pageSize 10 --pageNumber 2
79
85
  ```
@@ -0,0 +1,36 @@
1
+ # spo roledefinition remove
2
+
3
+ Removes the role definition from the specified site
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo roledefinition remove [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site from which role should be removed
15
+
16
+ `-i, --id <id>`
17
+ : ID of the role definition to remove
18
+
19
+ `--confirm`
20
+ : Don't prompt for confirming removing the role definition
21
+
22
+ --8<-- "docs/cmd/_global.md"
23
+
24
+ ## Examples
25
+
26
+ Remove the role definition from site _https://contoso.sharepoint.com/sites/project-x_ with id _1_
27
+
28
+ ```sh
29
+ m365 spo roledefinition remove --webUrl https://contoso.sharepoint.com/sites/project-x --id 1
30
+ ```
31
+
32
+ Remove the role definition from site _https://contoso.sharepoint.com/sites/project-x_ with id _1_ and don't prompt for confirmation
33
+
34
+ ```sh
35
+ m365 spo roledefinition remove --webUrl https://contoso.sharepoint.com/sites/project-x --id 1 --confirm
36
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "5.4.0-beta.8724dc1",
3
+ "version": "5.4.0-beta.d09de0f",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",
@@ -1,45 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const utils_1 = require("../../../../utils");
4
- const Auth_1 = require("../../../../Auth");
5
- const request_1 = require("../../../../request");
6
- const GraphCommand_1 = require("../../../base/GraphCommand");
7
- const commands_1 = require("../../commands");
8
- class PlannerTaskDetailsGetCommand extends GraphCommand_1.default {
9
- get name() {
10
- return commands_1.default.TASK_DETAILS_GET;
11
- }
12
- get description() {
13
- return 'Retrieve the details of the specified planner task';
14
- }
15
- commandAction(logger, args, cb) {
16
- if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
17
- this.handleError('This command does not support application permissions.', logger, cb);
18
- return;
19
- }
20
- const requestOptions = {
21
- url: `${this.resource}/v1.0/planner/tasks/${encodeURIComponent(args.options.taskId)}/details`,
22
- headers: {
23
- accept: 'application/json;odata.metadata=none'
24
- },
25
- responseType: 'json'
26
- };
27
- request_1.default
28
- .get(requestOptions)
29
- .then((res) => {
30
- logger.log(res);
31
- cb();
32
- }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
33
- }
34
- options() {
35
- const options = [
36
- {
37
- option: '-i, --taskId <taskId>'
38
- }
39
- ];
40
- const parentOptions = super.options();
41
- return options.concat(parentOptions);
42
- }
43
- }
44
- module.exports = new PlannerTaskDetailsGetCommand();
45
- //# sourceMappingURL=task-details-get.js.map
@@ -1,24 +0,0 @@
1
- # planner task details get
2
-
3
- Retrieve the details of the specified planner task
4
-
5
- ## Usage
6
-
7
- ```sh
8
- m365 planner task details get [options]
9
- ```
10
-
11
- ## Options
12
-
13
- `-i, --taskId <taskId>`
14
- : ID of the task to retrieve details from
15
-
16
- --8<-- "docs/cmd/_global.md"
17
-
18
- ## Examples
19
-
20
- Retrieve the details of the specified planner task
21
-
22
- ```sh
23
- m365 planner task details get --taskId 'vzCcZoOv-U27PwydxHB8opcADJo-'
24
- ```