@pnp/cli-microsoft365 10.5.0 → 10.6.0-beta.195c8d5

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 (72) hide show
  1. package/.eslintrc.cjs +3 -1
  2. package/allCommands.json +1 -1
  3. package/allCommandsFull.json +1 -1
  4. package/dist/Auth.js +2 -1
  5. package/dist/Command.js +14 -26
  6. package/dist/auth/MsalNetworkClient.js +32 -0
  7. package/dist/config.js +2 -0
  8. package/dist/m365/adaptivecard/commands/adaptivecard-send.js +2 -1
  9. package/dist/m365/app/commands/app-get.js +3 -13
  10. package/dist/m365/app/commands/permission/permission-list.js +4 -14
  11. package/dist/m365/base/SpoCommand.js +2 -1
  12. package/dist/m365/commands/request.js +3 -12
  13. package/dist/m365/commands/setup.js +2 -0
  14. package/dist/m365/entra/commands/administrativeunit/administrativeunit-add.js +10 -5
  15. package/dist/m365/entra/commands/app/app-add.js +5 -0
  16. package/dist/m365/entra/commands/app/app-get.js +27 -21
  17. package/dist/m365/entra/commands/app/app-permission-list.js +28 -22
  18. package/dist/m365/entra/commands/app/app-remove.js +22 -19
  19. package/dist/m365/entra/commands/app/app-role-add.js +22 -19
  20. package/dist/m365/entra/commands/app/app-role-list.js +22 -19
  21. package/dist/m365/entra/commands/app/app-role-remove.js +39 -36
  22. package/dist/m365/entra/commands/app/app-set.js +45 -19
  23. package/dist/m365/entra/commands/group/group-add.js +1 -0
  24. package/dist/m365/entra/commands/group/group-set.js +12 -6
  25. package/dist/m365/entra/commands/policy/policy-list.js +46 -3
  26. package/dist/m365/entra/commands/user/user-add.js +1 -0
  27. package/dist/m365/entra/commands/user/user-list.js +2 -1
  28. package/dist/m365/external/commands/item/item-add.js +2 -1
  29. package/dist/m365/flow/commands/flow-list.js +1 -1
  30. package/dist/m365/graph/commands/openextension/openextension-add.js +73 -0
  31. package/dist/m365/graph/commands/openextension/openextension-get.js +57 -0
  32. package/dist/m365/graph/commands/openextension/openextension-list.js +62 -0
  33. package/dist/m365/graph/commands/openextension/openextension-remove.js +68 -0
  34. package/dist/m365/graph/commands.js +4 -0
  35. package/dist/m365/pp/commands/card/card-clone.js +12 -16
  36. package/dist/m365/pp/commands/card/card-get.js +13 -19
  37. package/dist/m365/pp/commands/card/card-remove.js +13 -16
  38. package/dist/m365/pp/commands/solution/solution-get.js +5 -11
  39. package/dist/m365/pp/commands/solution/solution-publish.js +6 -16
  40. package/dist/m365/pp/commands/solution/solution-remove.js +4 -13
  41. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.21.0.js +25 -0
  42. package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
  43. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002029_DEVDEP_microsoft_rush_stack_compiler_5_3.js +13 -0
  44. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.21.0.js +63 -0
  45. package/dist/m365/spfx/commands/project/project-upgrade.js +2 -1
  46. package/dist/m365/spfx/commands/spfx-doctor.js +15 -0
  47. package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +12 -47
  48. package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +13 -31
  49. package/dist/m365/spo/commands/listitem/listitem-roleassignment-add.js +12 -43
  50. package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +8 -27
  51. package/dist/m365/spo/commands/web/web-roleassignment-add.js +22 -47
  52. package/dist/m365/spo/commands/web/web-roleassignment-remove.js +17 -32
  53. package/dist/m365/tenant/commands/people/people-profilecardproperty-add.js +4 -3
  54. package/dist/m365/tenant/commands/people/people-profilecardproperty-set.js +4 -3
  55. package/dist/m365/todo/commands/list/list-remove.js +1 -1
  56. package/dist/m365/util/commands/accesstoken/accesstoken-get.js +13 -3
  57. package/dist/utils/accessToken.js +8 -0
  58. package/dist/utils/entraApp.js +3 -1
  59. package/dist/utils/optionsUtils.js +28 -0
  60. package/dist/utils/powerPlatform.js +51 -1
  61. package/dist/utils/prompt.js +9 -2
  62. package/dist/utils/spo.js +32 -3
  63. package/docs/docs/cmd/entra/policy/policy-list.mdx +1 -1
  64. package/docs/docs/cmd/graph/directoryextension/directoryextension-get.mdx +2 -3
  65. package/docs/docs/cmd/graph/openextension/openextension-add.mdx +120 -0
  66. package/docs/docs/cmd/graph/openextension/openextension-get.mdx +111 -0
  67. package/docs/docs/cmd/graph/openextension/openextension-list.mdx +129 -0
  68. package/docs/docs/cmd/graph/openextension/openextension-remove.mdx +59 -0
  69. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -4
  70. package/docs/docs/cmd/util/accesstoken/accesstoken-get.mdx +72 -0
  71. package/npm-shrinkwrap.json +517 -481
  72. package/package.json +15 -15
@@ -0,0 +1,59 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # graph openextension remove
6
+
7
+ Removes a specific open extension for a resource
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 graph openextension remove [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-n, --name <name>`
19
+ : The name of the open extension to remove.
20
+
21
+ `-i, --resourceId <resourceId>`
22
+ : The Id of the resource for which to remove the open extension.
23
+
24
+ `-t, --resourceType <resourceType>`
25
+ : The type of resource. Allowed values are `user`, `group`, `device`, `organization`.
26
+
27
+ `-f, --force`
28
+ : Don't prompt for confirmation.
29
+ ```
30
+
31
+ <Global />
32
+
33
+ ## Examples
34
+
35
+ Remove a specified open extension for a user specified by id.
36
+
37
+ ```sh
38
+ m365 graph openextension remove --resourceId eb77fbcf-6fe8-458b-985d-1747284793bc --name 'com.contoso.roamingSettings' --resourceType user
39
+ ```
40
+
41
+ Remove a specified open extension for a user specified by UPN without confirmation prompt.
42
+
43
+ ```sh
44
+ m365 graph openextension remove --resourceId john.doe@contoso.com --name 'com.contoso.roamingSettings' --resourceType user --force
45
+ ```
46
+
47
+ Remove a specified open extension for a group specified by id.
48
+
49
+ ```sh
50
+ m365 graph openextension remove --resourceId c956e711-f074-40c3-8431-fbd69bb67d9c --name 'com.contoso.groupSettings' --resourceType group
51
+ ```
52
+
53
+ ## Response
54
+
55
+ The command won't return a response on success.
56
+
57
+ ## More information
58
+
59
+ - Open extensions: https://learn.microsoft.com/graph/extensibility-overview?tabs=http#open-extensions
@@ -26,16 +26,13 @@ m365 spfx project upgrade [options]
26
26
 
27
27
  `--preview`
28
28
  : Upgrade project to the latest SPFx preview version
29
-
30
- `--outputFile [outputFile]`
31
- : Path to the file where the upgrade report should be stored in. Ignored when `output` is `tour`
32
29
  ```
33
30
 
34
31
  <Global />
35
32
 
36
33
  ## Remarks
37
34
 
38
- 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.20.0).
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.21.0).
39
36
 
40
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.
41
38
 
@@ -20,6 +20,9 @@ m365 util accesstoken get [options]
20
20
 
21
21
  `--new`
22
22
  : Retrieve a new access token to ensure that it's valid for as long as possible
23
+
24
+ `--decoded`
25
+ : Retrieve a decoded access token
23
26
  ```
24
27
 
25
28
  <Global />
@@ -60,8 +63,16 @@ Get a new access token for SharePoint Online
60
63
  m365 util accesstoken get --resource https://contoso.sharepoint.com --new
61
64
  ```
62
65
 
66
+ Get a decoded access token for SharePoint Online
67
+
68
+ ```sh
69
+ m365 util accesstoken get --resource https://contoso.sharepoint.com --decoded
70
+ ```
71
+
63
72
  ## Response
64
73
 
74
+ ### Standard response
75
+
65
76
  <Tabs>
66
77
  <TabItem value="JSON">
67
78
 
@@ -93,3 +104,64 @@ m365 util accesstoken get --resource https://contoso.sharepoint.com --new
93
104
  </TabItem>
94
105
  </Tabs>
95
106
 
107
+ ### `decoded` response
108
+
109
+ <Tabs>
110
+ <TabItem value="JSON">
111
+
112
+ ```json
113
+ {
114
+ "alg": "HS256",
115
+ "typ": "JWT"
116
+ }.{
117
+ "sub": "1234567890",
118
+ "name": "John Doe",
119
+ "iat": 1516239022
120
+ }.[signature]
121
+ ```
122
+
123
+ </TabItem>
124
+ <TabItem value="Text">
125
+
126
+ ```text
127
+ {
128
+ "alg": "HS256",
129
+ "typ": "JWT"
130
+ }.{
131
+ "sub": "1234567890",
132
+ "name": "John Doe",
133
+ "iat": 1516239022
134
+ }.[signature]
135
+ ```
136
+
137
+ </TabItem>
138
+ <TabItem value="CSV">
139
+
140
+ ```csv
141
+ {
142
+ "alg": "HS256",
143
+ "typ": "JWT"
144
+ }.{
145
+ "sub": "1234567890",
146
+ "name": "John Doe",
147
+ "iat": 1516239022
148
+ }.[signature]
149
+ ```
150
+
151
+ </TabItem>
152
+ <TabItem value="Markdown">
153
+
154
+ ```md
155
+ {
156
+ "alg": "HS256",
157
+ "typ": "JWT"
158
+ }.{
159
+ "sub": "1234567890",
160
+ "name": "John Doe",
161
+ "iat": 1516239022
162
+ }.[signature]
163
+ ```
164
+
165
+ </TabItem>
166
+ </Tabs>
167
+