@pnp/cli-microsoft365 5.3.0-beta.ebb13d0 → 5.4.0-beta.3879fc9

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 (83) hide show
  1. package/.devcontainer/Dockerfile +1 -1
  2. package/dist/m365/planner/commands/bucket/bucket-get.js +1 -1
  3. package/dist/m365/planner/commands/bucket/bucket-remove.js +2 -2
  4. package/dist/m365/planner/commands/bucket/bucket-set.js +1 -1
  5. package/dist/m365/planner/commands/task/task-get.js +22 -6
  6. package/dist/m365/planner/commands/task/task-remove.js +201 -0
  7. package/dist/m365/planner/commands.js +2 -1
  8. package/dist/m365/search/commands/externalconnection/externalconnection-list.js +26 -0
  9. package/dist/m365/search/commands.js +2 -1
  10. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002009_DEVDEP_microsoft_sp_tslint_rules.js +2 -2
  11. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002018_DEVDEP_microsoft_rush_stack_compiler_3_9.js +2 -2
  12. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002020_DEVDEP_microsoft_rush_stack_compiler_4_5.js +17 -0
  13. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002021_DEVDEP_rushstack_eslint_config.js +14 -0
  14. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx.js +14 -0
  15. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002023_DEVDEP_microsoft_eslint_config_spfx.js +14 -0
  16. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002024_DEVDEP_eslint.js +14 -0
  17. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002025_DEVDEP_eslint_plugin_react_hooks.js +18 -0
  18. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015008_FILE_eslintrc_js.js +14 -0
  19. package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.15.0-beta.6.js → upgrade-1.15.0-rc.0.js} +49 -25
  20. package/dist/m365/spfx/commands/project/project-upgrade.js +1 -1
  21. package/dist/m365/spo/commands/contenttype/contenttype-add.js +1 -1
  22. package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +1 -1
  23. package/dist/m365/spo/commands/contenttype/contenttype-get.js +1 -1
  24. package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +119 -0
  25. package/dist/m365/spo/commands/field/field-add.js +1 -1
  26. package/dist/m365/spo/commands/field/field-get.js +5 -5
  27. package/dist/m365/spo/commands/field/field-list.js +3 -3
  28. package/dist/m365/spo/commands/field/field-remove.js +5 -5
  29. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +1 -1
  30. package/dist/m365/spo/commands/list/list-contenttype-add.js +3 -3
  31. package/dist/m365/spo/commands/list/list-contenttype-default-set.js +2 -2
  32. package/dist/m365/spo/commands/list/list-contenttype-list.js +3 -3
  33. package/dist/m365/spo/commands/list/list-contenttype-remove.js +3 -3
  34. package/dist/m365/spo/commands/list/list-get.js +2 -2
  35. package/dist/m365/spo/commands/list/list-label-get.js +3 -3
  36. package/dist/m365/spo/commands/list/list-label-set.js +2 -2
  37. package/dist/m365/spo/commands/list/list-remove.js +2 -2
  38. package/dist/m365/spo/commands/list/list-roleinheritance-break.js +2 -2
  39. package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +2 -2
  40. package/dist/m365/spo/commands/list/list-sitescript-get.js +3 -3
  41. package/dist/m365/spo/commands/list/list-view-add.js +116 -0
  42. package/dist/m365/spo/commands/list/list-view-field-add.js +2 -2
  43. package/dist/m365/spo/commands/list/list-view-field-remove.js +2 -2
  44. package/dist/m365/spo/commands/list/list-view-field-set.js +2 -2
  45. package/dist/m365/spo/commands/list/list-view-get.js +4 -4
  46. package/dist/m365/spo/commands/list/list-view-list.js +3 -3
  47. package/dist/m365/spo/commands/list/list-view-remove.js +3 -3
  48. package/dist/m365/spo/commands/list/list-view-set.js +3 -3
  49. package/dist/m365/spo/commands/list/list-webhook-add.js +3 -3
  50. package/dist/m365/spo/commands/list/list-webhook-get.js +3 -3
  51. package/dist/m365/spo/commands/list/list-webhook-list.js +5 -5
  52. package/dist/m365/spo/commands/list/list-webhook-remove.js +4 -4
  53. package/dist/m365/spo/commands/list/list-webhook-set.js +3 -3
  54. package/dist/m365/spo/commands/listitem/listitem-add.js +2 -2
  55. package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +2 -2
  56. package/dist/m365/spo/commands/listitem/listitem-get.js +2 -2
  57. package/dist/m365/spo/commands/listitem/listitem-isrecord.js +2 -2
  58. package/dist/m365/spo/commands/listitem/listitem-list.js +2 -2
  59. package/dist/m365/spo/commands/listitem/listitem-record-declare.js +2 -2
  60. package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +2 -2
  61. package/dist/m365/spo/commands/listitem/listitem-remove.js +2 -2
  62. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +2 -2
  63. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +2 -2
  64. package/dist/m365/spo/commands/listitem/listitem-set.js +2 -2
  65. package/dist/m365/spo/commands.js +2 -0
  66. package/dist/utils/validation.js +12 -2
  67. package/docs/docs/cmd/planner/bucket/bucket-get.md +1 -1
  68. package/docs/docs/cmd/planner/bucket/bucket-remove.md +2 -2
  69. package/docs/docs/cmd/planner/bucket/bucket-set.md +5 -5
  70. package/docs/docs/cmd/planner/plan/plan-details-get.md +2 -2
  71. package/docs/docs/cmd/planner/plan/plan-get.md +4 -4
  72. package/docs/docs/cmd/planner/task/task-get.md +4 -9
  73. package/docs/docs/cmd/planner/task/task-list.md +2 -2
  74. package/docs/docs/cmd/planner/task/task-remove.md +78 -0
  75. package/docs/docs/cmd/planner/task/task-set.md +2 -2
  76. package/docs/docs/cmd/search/externalconnection/externalconnection-list.md +21 -0
  77. package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
  78. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-get.md +70 -0
  79. package/docs/docs/cmd/spo/file/file-checkout.md +1 -1
  80. package/docs/docs/cmd/spo/list/list-view-add.md +76 -0
  81. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.md +2 -2
  82. package/npm-shrinkwrap.json +257 -1104
  83. package/package.json +25 -20
@@ -0,0 +1,70 @@
1
+ # spo eventreceiver get
2
+
3
+ Retrieves specific event receiver for the specified web, site or list by event receiver name or id.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo eventreceiver get [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : The URL of the web for which to retrieve the event receivers.
15
+
16
+ `--listTitle [listTitle]`
17
+ : The title of the list for which to retrieve the event receivers, _if the event receivers should be retrieved from a list_.
18
+ Specify either `listTitle`, `listId` or `listUrl`.
19
+
20
+ `--listId [listId]`
21
+ : The id of the list for which to retrieve the event receivers, _if the event receivers should be retrieved from a list_.
22
+ Specify either `listTitle`, `listId` or `listUrl`.
23
+
24
+ `--listUrl [listUrl]`
25
+ : The url of the list for which to retrieve the event receivers, _if the event receivers should be retrieved from a list_.
26
+ Specify either `listTitle`, `listId` or `listUrl`.
27
+
28
+ `-n, --name [name]`
29
+ The name of the event receiver to retrieve. Specify either `name` or `id` but not both.
30
+
31
+ `-i, --id [id]`
32
+ The id of the event receiver to retrieve. Specify either `name` or `id` but not both.
33
+
34
+ `-s, --scope [scope]`
35
+ : The scope of which to retrieve the Event Receivers.
36
+ Can be either "site" or "web". Defaults to "web". Only applicable when not specifying any of the list properties.
37
+
38
+ --8<-- "docs/cmd/_global.md"
39
+
40
+ ## Examples
41
+
42
+ Retrieve event receivers in web _<https://contoso.sharepoint.com/sites/contoso-sales>_ with name _PnP Test Receiver_.
43
+
44
+ ```sh
45
+ m365 spo eventreceiver list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --name 'PnP Test Receiver'
46
+ ```
47
+
48
+ Retrieve event receivers in site _<https://contoso.sharepoint.com/sites/contoso-sales>_ with id _c5a6444a-9c7f-4a0d-9e29-fc6fe30e34ec_.
49
+
50
+ ```sh
51
+ m365 spo eventreceiver list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --scope site --id c5a6444a-9c7f-4a0d-9e29-fc6fe30e34ec
52
+ ```
53
+
54
+ Retrieve event receivers for list with title _Events_ in web _<https://contoso.sharepoint.com/sites/contoso-sales>_ with name _PnP Test Receiver_.
55
+
56
+ ```sh
57
+ m365 spo eventreceiver list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listTitle Events --name 'PnP Test Receiver'
58
+ ```
59
+
60
+ Retrieve event receivers for list with ID _202b8199-b9de-43fd-9737-7f213f51c991_ in web _<https://contoso.sharepoint.com/sites/contoso-sales>_ with id _c5a6444a-9c7f-4a0d-9e29-fc6fe30e34ec_.
61
+
62
+ ```sh
63
+ m365 spo eventreceiver list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listId '202b8199-b9de-43fd-9737-7f213f51c991' --id c5a6444a-9c7f-4a0d-9e29-fc6fe30e34ec
64
+ ```
65
+
66
+ Retrieve event receivers for list with url _/sites/contoso-sales/lists/Events_ in web _<https://contoso.sharepoint.com/sites/contoso-sales>_ with name _PnP Test Receiver_.
67
+
68
+ ```sh
69
+ m365 spo eventreceiver list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listUrl '/sites/contoso-sales/lists/Events' --name 'PnP Test Receiver'
70
+ ```
@@ -32,5 +32,5 @@ m365 spo file checkout --webUrl https://contoso.sharepoint.com/sites/project-x -
32
32
  Checks out file with server-relative url _/sites/project-x/documents/Test1.docx_ located in site _https://contoso.sharepoint.com/sites/project-x_
33
33
 
34
34
  ```sh
35
- m365 spo file checkout --webUrl https://contoso.sharepoint.com/sites/project-x --url '/sites/project-x/documents/Test1.docx'
35
+ m365 spo file checkout --webUrl https://contoso.sharepoint.com/sites/project-x --fileUrl '/sites/project-x/documents/Test1.docx'
36
36
  ```
@@ -0,0 +1,76 @@
1
+ # spo list view add
2
+
3
+ Adds a new view to a SharePoint list
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo list view add [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site where the list is located.
15
+
16
+ `--listId [listId]`
17
+ : ID of the list to which the view should be added. Specify either `listId`, `listTitle` or `listUrl` but not multiple.
18
+
19
+ `--listTitle [listTitle]`
20
+ : Title of the list to which the view should be added. Specify either `listId`, `listTitle` or `listUrl` but not multiple.
21
+
22
+ `--listUrl [listUrl]`
23
+ : Relative URL of the list to which the view should be added. Specify either `listId`, `listTitle` or `listUrl` but not multiple.
24
+
25
+ `--title <title>`
26
+ : Title of the view to be created for the list.
27
+
28
+ `--fields <fields>`
29
+ : Comma-separated list of **case-sensitive** internal names of the fields to add to the view.
30
+
31
+ `--viewQuery [viewQuery]`
32
+ : XML representation of the list query for the underlying view.
33
+
34
+ `--personal`
35
+ : View will be created as personal view, if specified.
36
+
37
+ `--default`
38
+ : View will be set as default view, if specified.
39
+
40
+ `--paged`
41
+ : View supports paging, if specified (recommended to use this).
42
+
43
+ `--rowLimit [rowLimit]`
44
+ : Sets the number of items to display for the view. Default value is 30.
45
+
46
+ --8<-- "docs/cmd/_global.md"
47
+
48
+ ## Remarks
49
+
50
+ We recommend using the `paged` option. When specified, the view supports displaying more items page by page (default behavior). When not specified, the `rowLimit` is absolute, and there is no link to see more items.
51
+
52
+ ## Examples
53
+
54
+ Add a view called _All events_ to a list with specific title.
55
+
56
+ ```sh
57
+ m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle "My List" --title "All events" --fields "FieldName1,FieldName2,Created,Author,Modified,Editor" --paged
58
+ ```
59
+
60
+ Add a view as default view with title _All events_ to a list with a specific URL.
61
+
62
+ ```sh
63
+ m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl "/Lists/MyList" --title "All events" --fields "FieldName1,Created" --paged --default
64
+ ```
65
+
66
+ Add a personal view called _All events_ to a list with a specific ID.
67
+
68
+ ```sh
69
+ m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/project-x --listId 00000000-0000-0000-0000-000000000000 --title "All events" --fields "FieldName1,Created" --paged --personal
70
+ ```
71
+
72
+ Add a view called _All events_ with defined filter and sorting.
73
+
74
+ ```sh
75
+ m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle "My List" --title "All events" --fields "FieldName1" --viewQuery "<OrderBy><FieldRef Name='Created' Ascending='FALSE' /></OrderBy><Where><Eq><FieldRef Name='TextFieldName' /><Value Type='Text'>Field value</Value></Eq></Where>" --paged
76
+ ```
@@ -20,7 +20,7 @@ m365 spo listitem roleinheritance break [options]
20
20
  : ID of the list. Specify listId or listTitle but not both
21
21
 
22
22
  `-t, --listTitle [listTitle]`
23
- Title of the list. Specify listId or listTitle but not both
23
+ : Title of the list. Specify listId or listTitle but not both
24
24
 
25
25
  `-c, --clearExistingPermissions`
26
26
  : Set to clear existing roles from the list item
@@ -55,4 +55,4 @@ Break inheritance of list item _1_ in list with ID _202b8199-b9de-43fd-9737-7f21
55
55
 
56
56
  ```sh
57
57
  m365 spo listitem roleinheritance break --webUrl https://contoso.sharepoint.com/sites/project-x --listId 202b8199-b9de-43fd-9737-7f213f51c991 --id 1 --clearExistingPermissions
58
- ```
58
+ ```