@pnp/cli-microsoft365 12.0.0-beta.10c5833 → 12.0.0-beta.bf446c8

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 (30) hide show
  1. package/allCommandsFull.json +1 -1
  2. package/dist/m365/spo/commands/listitem/listitem-get.js +1 -12
  3. package/dist/m365/spo/commands/navigation/navigation-node-list.js +6 -4
  4. package/dist/m365/teams/commands/channel/channel-add.js +46 -57
  5. package/dist/m365/teams/commands/channel/channel-get.js +41 -48
  6. package/dist/m365/teams/commands/channel/channel-list.js +28 -42
  7. package/dist/m365/teams/commands/channel/channel-member-add.js +53 -54
  8. package/dist/m365/teams/commands/channel/channel-member-list.js +47 -55
  9. package/dist/m365/teams/commands/channel/channel-member-remove.js +62 -62
  10. package/dist/m365/teams/commands/channel/channel-member-set.js +61 -65
  11. package/dist/m365/teams/commands/channel/channel-remove.js +47 -49
  12. package/dist/m365/teams/commands/channel/channel-set.js +47 -54
  13. package/dist/utils/spo.js +1 -3
  14. package/dist/utils/urlUtil.js +2 -2
  15. package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +21 -0
  16. package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +23 -0
  17. package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +21 -0
  18. package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +21 -0
  19. package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +23 -0
  20. package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +21 -0
  21. package/docs/docs/cmd/spo/folder/folder-sharinglink-add.mdx +21 -0
  22. package/docs/docs/cmd/spo/folder/folder-sharinglink-clear.mdx +23 -0
  23. package/docs/docs/cmd/spo/folder/folder-sharinglink-get.mdx +21 -0
  24. package/docs/docs/cmd/spo/folder/folder-sharinglink-list.mdx +21 -0
  25. package/docs/docs/cmd/spo/folder/folder-sharinglink-remove.mdx +23 -0
  26. package/docs/docs/cmd/spo/folder/folder-sharinglink-set.mdx +21 -0
  27. package/docs/docs/cmd/spo/listitem/listitem-get.mdx +0 -6
  28. package/docs/docs/cmd/spo/navigation/navigation-node-list.mdx +37 -27
  29. package/npm-shrinkwrap.json +377 -113
  30. package/package.json +4 -4
@@ -30,6 +30,27 @@ m365 spo file sharinglink list [options]
30
30
 
31
31
  <Global />
32
32
 
33
+ ## Permissions
34
+
35
+ <Tabs>
36
+ <TabItem value="Delegated">
37
+
38
+ | Resource | Permissions |
39
+ |-----------------|---------------|
40
+ | Microsoft Graph | Files.Read |
41
+ | SharePoint | AllSites.Read |
42
+
43
+ </TabItem>
44
+ <TabItem value="Application">
45
+
46
+ | Resource | Permissions |
47
+ |-----------------|----------------|
48
+ | Microsoft Graph | Files.Read.All |
49
+ | SharePoint | Sites.Read.All |
50
+
51
+ </TabItem>
52
+ </Tabs>
53
+
33
54
  ## Examples
34
55
 
35
56
  List sharing links of a file by id.
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # spo file sharinglink remove
4
6
 
@@ -31,6 +33,27 @@ m365 spo file sharinglink remove [options]
31
33
 
32
34
  <Global />
33
35
 
36
+ ## Permissions
37
+
38
+ <Tabs>
39
+ <TabItem value="Delegated">
40
+
41
+ | Resource | Permissions |
42
+ |-----------------|-----------------|
43
+ | Microsoft Graph | Files.ReadWrite |
44
+ | SharePoint | AllSites.Read |
45
+
46
+ </TabItem>
47
+ <TabItem value="Application">
48
+
49
+ | Resource | Permissions |
50
+ |-----------------|---------------------|
51
+ | Microsoft Graph | Files.ReadWrite.All |
52
+ | SharePoint | Sites.Read.All |
53
+
54
+ </TabItem>
55
+ </Tabs>
56
+
34
57
  ## Examples
35
58
 
36
59
  Removes a specific sharing link from a file by id without prompting for confirmation.
@@ -33,6 +33,27 @@ m365 spo file sharinglink set [options]
33
33
 
34
34
  <Global />
35
35
 
36
+ ## Permissions
37
+
38
+ <Tabs>
39
+ <TabItem value="Delegated">
40
+
41
+ | Resource | Permissions |
42
+ |-----------------|-----------------|
43
+ | Microsoft Graph | Files.ReadWrite |
44
+ | SharePoint | AllSites.Read |
45
+
46
+ </TabItem>
47
+ <TabItem value="Application">
48
+
49
+ | Resource | Permissions |
50
+ |-----------------|---------------------|
51
+ | Microsoft Graph | Files.ReadWrite.All |
52
+ | SharePoint | Sites.Read.All |
53
+
54
+ </TabItem>
55
+ </Tabs>
56
+
36
57
  ## Examples
37
58
 
38
59
  Updates an anonymous sharing link from a file by a specified site-relative URL with the expirationDateTime parameter.
@@ -42,6 +42,27 @@ m365 spo folder sharinglink add [options]
42
42
 
43
43
  <Global />
44
44
 
45
+ ## Permissions
46
+
47
+ <Tabs>
48
+ <TabItem value="Delegated">
49
+
50
+ | Resource | Permissions |
51
+ |-----------------|---------------------------------|
52
+ | Microsoft Graph | Files.ReadWrite, Sites.Read.All |
53
+ | SharePoint | AllSites.Read |
54
+
55
+ </TabItem>
56
+ <TabItem value="Application">
57
+
58
+ | Resource | Permissions |
59
+ |-----------------|-------------------------------------|
60
+ | Microsoft Graph | Files.ReadWrite.All, Sites.Read.All |
61
+ | SharePoint | Sites.Read.All |
62
+
63
+ </TabItem>
64
+ </Tabs>
65
+
45
66
  ## Examples
46
67
 
47
68
  Creates a view-only anonymous sharing link of a folder by id.
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # spo folder sharinglink clear
4
6
 
@@ -31,6 +33,27 @@ m365 spo folder sharinglink clear [options]
31
33
 
32
34
  <Global />
33
35
 
36
+ ## Permissions
37
+
38
+ <Tabs>
39
+ <TabItem value="Delegated">
40
+
41
+ | Resource | Permissions |
42
+ |-----------------|---------------------------------|
43
+ | Microsoft Graph | Files.ReadWrite, Sites.Read.All |
44
+ | SharePoint | AllSites.Read |
45
+
46
+ </TabItem>
47
+ <TabItem value="Application">
48
+
49
+ | Resource | Permissions |
50
+ |-----------------|-------------------------------------|
51
+ | Microsoft Graph | Files.ReadWrite.All, Sites.Read.All |
52
+ | SharePoint | Sites.Read.All |
53
+
54
+ </TabItem>
55
+ </Tabs>
56
+
34
57
  ## Examples
35
58
 
36
59
  Removes all sharing links from a folder specified by id without prompting for confirmation.
@@ -30,6 +30,27 @@ m365 spo folder sharinglink get [options]
30
30
 
31
31
  <Global />
32
32
 
33
+ ## Permissions
34
+
35
+ <Tabs>
36
+ <TabItem value="Delegated">
37
+
38
+ | Resource | Permissions |
39
+ |-----------------|----------------------------|
40
+ | Microsoft Graph | Files.Read, Sites.Read.All |
41
+ | SharePoint | AllSites.Read |
42
+
43
+ </TabItem>
44
+ <TabItem value="Application">
45
+
46
+ | Resource | Permissions |
47
+ |-----------------|--------------------------------|
48
+ | Microsoft Graph | Files.Read.All, Sites.Read.All |
49
+ | SharePoint | Sites.Read.All |
50
+
51
+ </TabItem>
52
+ </Tabs>
53
+
33
54
  ## Examples
34
55
 
35
56
  Gets a specific sharing link of a folder by id.
@@ -30,6 +30,27 @@ m365 spo folder sharinglink list [options]
30
30
 
31
31
  <Global />
32
32
 
33
+ ## Permissions
34
+
35
+ <Tabs>
36
+ <TabItem value="Delegated">
37
+
38
+ | Resource | Permissions |
39
+ |-----------------|----------------------------|
40
+ | Microsoft Graph | Files.Read, Sites.Read.All |
41
+ | SharePoint | AllSites.Read |
42
+
43
+ </TabItem>
44
+ <TabItem value="Application">
45
+
46
+ | Resource | Permissions |
47
+ |-----------------|--------------------------------|
48
+ | Microsoft Graph | Files.Read.All, Sites.Read.All |
49
+ | SharePoint | Sites.Read.All |
50
+
51
+ </TabItem>
52
+ </Tabs>
53
+
33
54
  ## Examples
34
55
 
35
56
  List sharing links of a folder by id.
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # spo folder sharinglink remove
4
6
 
@@ -31,6 +33,27 @@ m365 spo folder sharinglink remove [options]
31
33
 
32
34
  <Global />
33
35
 
36
+ ## Permissions
37
+
38
+ <Tabs>
39
+ <TabItem value="Delegated">
40
+
41
+ | Resource | Permissions |
42
+ |-----------------|---------------------------------|
43
+ | Microsoft Graph | Files.ReadWrite, Sites.Read.All |
44
+ | SharePoint | AllSites.Read |
45
+
46
+ </TabItem>
47
+ <TabItem value="Application">
48
+
49
+ | Resource | Permissions |
50
+ |-----------------|-------------------------------------|
51
+ | Microsoft Graph | Files.ReadWrite.All, Sites.Read.All |
52
+ | SharePoint | Sites.Read.All |
53
+
54
+ </TabItem>
55
+ </Tabs>
56
+
34
57
  ## Examples
35
58
 
36
59
  Removes a specific sharing link from a folder by id without prompting for confirmation.
@@ -33,6 +33,27 @@ m365 spo folder sharinglink set [options]
33
33
 
34
34
  <Global />
35
35
 
36
+ ## Permissions
37
+
38
+ <Tabs>
39
+ <TabItem value="Delegated">
40
+
41
+ | Resource | Permissions |
42
+ |-----------------|---------------------------------|
43
+ | Microsoft Graph | Files.ReadWrite, Sites.Read.All |
44
+ | SharePoint | AllSites.Read |
45
+
46
+ </TabItem>
47
+ <TabItem value="Application">
48
+
49
+ | Resource | Permissions |
50
+ |-----------------|-------------------------------------|
51
+ | Microsoft Graph | Files.ReadWrite.All, Sites.Read.All |
52
+ | SharePoint | Sites.Read.All |
53
+
54
+ </TabItem>
55
+ </Tabs>
56
+
36
57
  ## Examples
37
58
 
38
59
  Updates the expiration datetime of an anonymous sharing link for a folder specific by folder ID.
@@ -44,12 +44,6 @@ m365 spo listitem get [options]
44
44
 
45
45
  ## Remarks
46
46
 
47
- :::note
48
-
49
- The `--properties` option has been renamed to `--fields`. If you use `--properties`, the command still works but shows a deprecation warning.
50
-
51
- :::
52
-
53
47
  If you want to specify a lookup type in the `fields` option, define which columns from the related list should be returned.
54
48
 
55
49
  ## Examples
@@ -69,27 +69,35 @@ m365 spo navigation node list --webUrl https://contoso.sharepoint.com/sites/Mark
69
69
  "5786b8e8-c495-4734-b345-756733960730"
70
70
  ],
71
71
  "CurrentLCID": 1033,
72
- "Id": 2032,
73
- "IsDocLib": true,
74
- "IsExternal": true,
75
- "IsVisible": true,
76
- "ListTemplateType": 0,
77
- "Title": "Navigation Link",
78
- "Url": "https://contoso.sharepoint.com",
79
- "Children": [
72
+ "CustomProperties": [],
73
+ "FriendlyUrlSegment": "",
74
+ "IsDeleted": false,
75
+ "IsHidden": false,
76
+ "IsTitleForExistingLanguage": false,
77
+ "Key": "2032",
78
+ "Nodes": [
80
79
  {
81
- "AudienceIds": null,
80
+ "AudienceIds": [],
82
81
  "CurrentLCID": 1033,
83
- "Id": 2033,
84
- "IsDocLib": true,
85
- "IsExternal": true,
86
- "IsVisible": true,
87
- "ListTemplateType": 0,
82
+ "CustomProperties": [],
83
+ "FriendlyUrlSegment": "",
84
+ "IsDeleted": false,
85
+ "IsHidden": false,
86
+ "IsTitleForExistingLanguage": false,
87
+ "Key": "2033",
88
+ "Nodes": [],
89
+ "NodeType": 0,
90
+ "OpenInNewWindow": true,
91
+ "SimpleUrl": "https://microsoft365.com",
88
92
  "Title": "Microsoft 365",
89
- "Url": "https://microsoft365.com",
90
- "Children": []
93
+ "Translations": []
91
94
  }
92
- ]
95
+ ],
96
+ "NodeType": 0,
97
+ "OpenInNewWindow": false,
98
+ "SimpleUrl": "https://contoso.sharepoint.com",
99
+ "Title": "Navigation Link",
100
+ "Translations": []
93
101
  }
94
102
  ]
95
103
  ```
@@ -98,7 +106,7 @@ m365 spo navigation node list --webUrl https://contoso.sharepoint.com/sites/Mark
98
106
  <TabItem value="Text">
99
107
 
100
108
  ```text
101
- Id Title Url
109
+ Key Title SimpleUrl
102
110
  ---- --------------- ------------------------------
103
111
  2032 Navigation Link https://contoso.sharepoint.com
104
112
  ```
@@ -107,8 +115,8 @@ m365 spo navigation node list --webUrl https://contoso.sharepoint.com/sites/Mark
107
115
  <TabItem value="CSV">
108
116
 
109
117
  ```csv
110
- Id,Title,Url
111
- 2032,Navigation Link,https://contoso.sharepoint.com
118
+ CurrentLCID,FriendlyUrlSegment,IsDeleted,IsHidden,IsTitleForExistingLanguage,Key,NodeType,OpenInNewWindow,SimpleUrl,Title
119
+ 1033,,0,0,0,2032,0,0,https://contoso.sharepoint.com,Navigation Link
112
120
  ```
113
121
 
114
122
  </TabItem>
@@ -119,18 +127,20 @@ m365 spo navigation node list --webUrl https://contoso.sharepoint.com/sites/Mark
119
127
 
120
128
  Date: 27/1/2023
121
129
 
122
- ## Home (1031)
130
+ ## Navigation Link
123
131
 
124
132
  Property | Value
125
133
  ---------|-------
126
134
  CurrentLCID | 1033
127
- Id | 2032
128
- IsDocLib | true
129
- IsExternal | false
130
- IsVisible | true
131
- ListTemplateType | 0
135
+ FriendlyUrlSegment |
136
+ IsDeleted | false
137
+ IsHidden | false
138
+ IsTitleForExistingLanguage | false
139
+ Key | 2032
140
+ NodeType | 0
141
+ OpenInNewWindow | false
142
+ SimpleUrl | https://contoso.sharepoint.com
132
143
  Title | Navigation Link
133
- Url | https://contoso.sharepoint.com
134
144
  ```
135
145
 
136
146
  </TabItem>