@pnp/cli-microsoft365 5.0.0-beta.6d4dbfb → 5.0.0-beta.77249d9

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 (50) hide show
  1. package/.devcontainer/devcontainer.json +12 -9
  2. package/.eslintrc.js +1 -0
  3. package/.mocharc.json +9 -0
  4. package/README.md +2 -2
  5. package/dist/Auth.js +22 -9
  6. package/dist/Command.js +1 -1
  7. package/dist/api.d.ts +13 -0
  8. package/dist/api.js +17 -0
  9. package/dist/cli/Cli.js +19 -4
  10. package/dist/m365/aad/commands/app/app-add.js +43 -7
  11. package/dist/m365/aad/commands/app/app-delete.js +123 -0
  12. package/dist/m365/aad/commands/app/app-get.js +56 -11
  13. package/dist/m365/aad/commands/app/app-set.js +98 -3
  14. package/dist/m365/aad/commands/group/group-list.js +14 -1
  15. package/dist/m365/aad/commands/o365group/o365group-conversation-list.js +41 -0
  16. package/dist/m365/aad/commands.js +2 -0
  17. package/dist/m365/cli/commands/config/config-set.js +1 -0
  18. package/dist/m365/outlook/commands/room/room-list.js +43 -0
  19. package/dist/m365/outlook/commands/roomlist/roomlist-list.js +25 -0
  20. package/dist/m365/outlook/commands.js +2 -0
  21. package/dist/m365/planner/commands/task/task-get.js +1 -1
  22. package/dist/m365/planner/commands/task/task-list.js +37 -7
  23. package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.14.0-beta.5.js → upgrade-1.14.0.js} +25 -25
  24. package/dist/m365/spfx/commands/project/project-upgrade.js +13 -15
  25. package/dist/m365/spfx/commands/spfx-doctor.js +25 -6
  26. package/dist/m365/spo/commands/group/group-user-add.js +15 -8
  27. package/dist/m365/teams/commands/app/app-install.js +75 -21
  28. package/dist/m365/teams/commands/app/app-update.js +54 -12
  29. package/dist/m365/teams/commands/channel/channel-get.js +29 -7
  30. package/dist/m365/teams/commands/chat/chat-message-send.js +225 -0
  31. package/dist/m365/teams/commands.js +1 -0
  32. package/dist/settingsNames.js +7 -6
  33. package/docs/docs/cmd/aad/app/app-delete.md +51 -0
  34. package/docs/docs/cmd/aad/app/app-get.md +12 -1
  35. package/docs/docs/cmd/aad/app/app-set.md +21 -0
  36. package/docs/docs/cmd/aad/group/group-list.md +9 -0
  37. package/docs/docs/cmd/aad/o365group/o365group-conversation-list.md +24 -0
  38. package/docs/docs/cmd/outlook/room/room-list.md +30 -0
  39. package/docs/docs/cmd/outlook/roomlist/roomlist-list.md +21 -0
  40. package/docs/docs/cmd/planner/task/task-get.md +5 -0
  41. package/docs/docs/cmd/planner/task/task-list.md +5 -0
  42. package/docs/docs/cmd/search/externalconnection/externalconnection-add.md +3 -3
  43. package/docs/docs/cmd/spfx/project/project-upgrade.md +8 -8
  44. package/docs/docs/cmd/spo/group/group-user-add.md +4 -0
  45. package/docs/docs/cmd/teams/app/app-install.md +22 -4
  46. package/docs/docs/cmd/teams/app/app-update.md +12 -3
  47. package/docs/docs/cmd/teams/channel/channel-get.md +10 -1
  48. package/docs/docs/cmd/teams/chat/chat-message-send.md +55 -0
  49. package/npm-shrinkwrap.json +36 -3
  50. package/package.json +8 -3
@@ -30,14 +30,14 @@ The `id` must be at least 3 and no more than 32 characters long. It can contain
30
30
 
31
31
  ## Examples
32
32
 
33
- Adds a new external connection with name and description of test
33
+ Adds a new external connection with name and description of test app
34
34
 
35
35
  ```sh
36
- m365 search externalconnection add --id MyApp --name "My application" --description "Description of your application"
36
+ m365 search externalconnection add --id MyApp --name "Test" --description "Test"
37
37
  ```
38
38
 
39
39
  Adds a new external connection with a limited number of authorized apps
40
40
 
41
41
  ```sh
42
- m365 search externalconnection add --id MyApp --name "My application" --description "Description of your application" --authorizedAppIds "00000000-0000-0000-0000-000000000000,00000000-0000-0000-0000-000000000001,00000000-0000-0000-0000-000000000002"
42
+ m365 search externalconnection add --id MyApp --name "Test" --description "Test" --authorizedAppIds "00000000-0000-0000-0000-000000000000,00000000-0000-0000-0000-000000000001,00000000-0000-0000-0000-000000000002"
43
43
  ```
@@ -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.13.1).
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.14.0).
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
 
@@ -47,41 +47,41 @@ m365 spfx project upgrade --toVersion 1.5.0 --output md > "upgrade-report.md"
47
47
  Get instructions to upgrade the current SharePoint Framework project to SharePoint Framework version 1.5.0 and show the summary of the findings in the shell
48
48
 
49
49
  ```sh
50
- m365 spfx project upgrade --toVersion 1.5.0
50
+ m365 spfx project upgrade --toVersion 1.5.0 --output text
51
51
  ```
52
52
 
53
53
  Get instructions to upgrade the current SharePoint Framework project to the latest preview version
54
54
 
55
55
  ```sh
56
- m365 spfx project upgrade --preview
56
+ m365 spfx project upgrade --preview --output text
57
57
  ```
58
58
 
59
59
  Get instructions to upgrade the current SharePoint Framework project to the specified preview version
60
60
 
61
61
  ```sh
62
- m365 spfx project upgrade --toVersion 1.12.1-rc.0
62
+ m365 spfx project upgrade --toVersion 1.12.1-rc.0 --output text
63
63
  ```
64
64
 
65
65
  Get instructions to upgrade the current SharePoint Framework project to the latest SharePoint Framework version supported by the CLI for Microsoft 365 using pnpm
66
66
 
67
67
  ```sh
68
- m365 spfx project upgrade --packageManager pnpm
68
+ m365 spfx project upgrade --packageManager pnpm --output text
69
69
  ```
70
70
 
71
71
  Get instructions to upgrade the current SharePoint Framework project to the latest SharePoint Framework version supported by the CLI for Microsoft 365
72
72
 
73
73
  ```sh
74
- m365 spfx project upgrade
74
+ m365 spfx project upgrade --output text
75
75
  ```
76
76
 
77
77
  Get instructions to upgrade the current SharePoint Framework project to the latest SharePoint Framework version supported by the CLI for Microsoft 365 using PowerShell
78
78
 
79
79
  ```sh
80
- m365 spfx project upgrade --shell powershell
80
+ m365 spfx project upgrade --shell powershell --output text
81
81
  ```
82
82
 
83
83
  Get instructions to upgrade the current SharePoint Framework project to the latest version of SharePoint Framework and save the findings in a [CodeTour](https://aka.ms/codetour) file
84
84
 
85
85
  ```sh
86
- m365 spfx project upgrade --output tour
86
+ m365 spfx project upgrade --output tour
87
87
  ```
@@ -27,6 +27,10 @@ m365 spo group user add [options]
27
27
 
28
28
  --8<-- "docs/cmd/_global.md"
29
29
 
30
+ ## Remarks
31
+
32
+ For the `--userName` or `--email` options you can specify multiple values by separating them with a comma. If one of the specified entries is not valid, the command will fail with an error message showing the list invalid values.
33
+
30
34
  ## Examples
31
35
 
32
36
  Add a user with name _Alex.Wilber@contoso.com_ to the SharePoint group with id _5_ available on the web _https://contoso.sharepoint.com/sites/SiteA_
@@ -1,6 +1,6 @@
1
1
  # teams app install
2
2
 
3
- Installs an app from the catalog to a Microsoft Teams team
3
+ Installs a Microsoft Teams team app from the catalog in the specified team or for the specified user
4
4
 
5
5
  ## Usage
6
6
 
@@ -13,14 +13,20 @@ m365 teams app install [options]
13
13
  `--appId <appId>`
14
14
  : The ID of the app to install
15
15
 
16
- `--teamId <teamId>`
16
+ `--teamId [teamId]`
17
17
  : The ID of the Microsoft Teams team to which to install the app
18
18
 
19
+ `--userId [userId]`
20
+ : The ID of the user for who to install the app. Specify either `userId` or `userName` to install a personal app for a user.
21
+
22
+ `--userName [userName]`
23
+ : The UPN of the user for who to install the app. Specify either `userId` or `userName` to install a personal app for a user.
24
+
19
25
  --8<-- "docs/cmd/_global.md"
20
26
 
21
27
  ## Remarks
22
28
 
23
- The `appId` has to be the ID of the app from the Microsoft Teams App Catalog. Do not use the ID from the manifest of the zip app package. Use the [teams app list](./app-list.md) command to get this ID.
29
+ The `appId` has to be the ID of the app from the Microsoft Teams App Catalog. Do not use the ID from the manifest of the zip app package. Use the [teams app list](./app-list.md) command to get this ID instead.
24
30
 
25
31
  ## Examples
26
32
 
@@ -28,4 +34,16 @@ Install an app from the catalog in a Microsoft Teams team
28
34
 
29
35
  ```sh
30
36
  m365 teams app install --appId 4440558e-8c73-4597-abc7-3644a64c4bce --teamId 2609af39-7775-4f94-a3dc-0dd67657e900
31
- ```
37
+ ```
38
+
39
+ Install a personal app for the user specified using their user name
40
+
41
+ ```sh
42
+ m365 teams app install --appId 4440558e-8c73-4597-abc7-3644a64c4bce --userName steve@contoso.com
43
+ ```
44
+
45
+ Install a personal app for the user specified using their ID
46
+
47
+ ```sh
48
+ m365 teams app install --appId 4440558e-8c73-4597-abc7-3644a64c4bce --userId 2609af39-7775-4f94-a3dc-0dd67657e900
49
+ ```
@@ -10,8 +10,11 @@ m365 teams app update [options]
10
10
 
11
11
  ## Options
12
12
 
13
- `-i, --id <id>`
14
- : ID of the app to update
13
+ `-i, --id [id]`
14
+ : ID of the app to update. Specify either id or name, but not both
15
+
16
+ `-n, --name [name]`
17
+ : The display name of the app to update. Specify either id or name, but not both
15
18
 
16
19
  `-p, --filePath <filePath>`
17
20
  : Absolute or relative path to the Teams manifest zip file to update in the app catalog
@@ -28,4 +31,10 @@ Update the Teams app with ID _83cece1e-938d-44a1-8b86-918cf6151957_ from file _t
28
31
 
29
32
  ```sh
30
33
  m365 teams app update --id 83cece1e-938d-44a1-8b86-918cf6151957 --filePath ./teams-manifest.zip
31
- ```
34
+ ```
35
+
36
+ Update the Teams app with name _Test app_ from file _teams-manifest.zip_
37
+
38
+ ```sh
39
+ m365 teams app update --name "Test app" --filePath ./teams-manifest.zip
40
+ ```
@@ -22,6 +22,9 @@ m365 teams channel get [options]
22
22
  `--channelName [channelName]`
23
23
  : The display name of the channel for which to retrieve more information. Specify either channelId or channelName but not both
24
24
 
25
+ `--primary`
26
+ : Gets the default channel, General, of a team. If specified, channelId or channelName are not needed
27
+
25
28
  --8<-- "docs/cmd/_global.md"
26
29
 
27
30
  ## Examples
@@ -36,4 +39,10 @@ Get information about Microsoft Teams team channel with name _Channel Name_
36
39
 
37
40
  ```sh
38
41
  m365 teams channel get --teamName "Team Name" --channelName "Channel Name"
39
- ```
42
+ ```
43
+
44
+ Get information about Microsoft Teams team primary channel , i.e. General
45
+
46
+ ```sh
47
+ m365 teams channel get --teamName "Team Name" --primary
48
+ ```
@@ -0,0 +1,55 @@
1
+ # teams chat message send
2
+
3
+ Sends a chat message to a Microsoft Teams chat conversation.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 teams chat message send [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `--chatId [chatId]`
14
+ : The ID of the chat conversation. Specify either `chatId`, `chatName` or `userEmails`, but not multiple.
15
+
16
+ `--chatName [chatName]`
17
+ : The display name of the chat conversation. Specify either `chatId`, `chatName` or `userEmails`, but not multiple.
18
+
19
+ `-e, --userEmails [userEmails]`
20
+ : A comma-separated list of one or more e-mail addresses. Specify either `chatId`, `chatName` or `userEmails`, but not multiple.
21
+
22
+ `-m, --message <message>`
23
+ : The message to send
24
+
25
+ --8<-- "docs/cmd/_global.md"
26
+
27
+ ## Remarks
28
+
29
+ A new chat conversation will be created if no existing conversation with the participants specified with emails is found.
30
+
31
+ ## Examples
32
+
33
+ Send a message to a Microsoft Teams chat conversation by id
34
+
35
+ ```sh
36
+ m365 teams chat message send --chatId 19:2da4c29f6d7041eca70b638b43d45437@thread.v2
37
+ ```
38
+
39
+ Send a message to a single person
40
+
41
+ ```sh
42
+ m365 teams chat message send --userEmails alexw@contoso.com
43
+ ```
44
+
45
+ Send a message to a group of people
46
+
47
+ ```sh
48
+ m365 teams chat message send --userEmails alexw@contoso.com,meganb@contoso.com
49
+ ```
50
+
51
+ Send a message to a chat conversation finding it by display name
52
+
53
+ ```sh
54
+ m365 teams chat message send --chatName "Just a conversation"
55
+ ```
@@ -65,7 +65,8 @@
65
65
  "eslint-plugin-promise": "^6.0.0",
66
66
  "mocha": "^9.2.0",
67
67
  "rimraf": "^3.0.2",
68
- "sinon": "^13.0.1"
68
+ "sinon": "^13.0.1",
69
+ "source-map-support": "^0.5.21"
69
70
  }
70
71
  },
71
72
  "eslint-rules": {
@@ -1453,6 +1454,12 @@
1453
1454
  "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
1454
1455
  "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk="
1455
1456
  },
1457
+ "node_modules/buffer-from": {
1458
+ "version": "1.1.2",
1459
+ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
1460
+ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
1461
+ "dev": true
1462
+ },
1456
1463
  "node_modules/c8": {
1457
1464
  "version": "7.11.0",
1458
1465
  "resolved": "https://registry.npmjs.org/c8/-/c8-7.11.0.tgz",
@@ -5389,11 +5396,21 @@
5389
5396
  "version": "0.6.1",
5390
5397
  "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
5391
5398
  "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
5392
- "optional": true,
5399
+ "devOptional": true,
5393
5400
  "engines": {
5394
5401
  "node": ">=0.10.0"
5395
5402
  }
5396
5403
  },
5404
+ "node_modules/source-map-support": {
5405
+ "version": "0.5.21",
5406
+ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",
5407
+ "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",
5408
+ "dev": true,
5409
+ "dependencies": {
5410
+ "buffer-from": "^1.0.0",
5411
+ "source-map": "^0.6.0"
5412
+ }
5413
+ },
5397
5414
  "node_modules/sprintf-js": {
5398
5415
  "version": "1.0.3",
5399
5416
  "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
@@ -7258,6 +7275,12 @@
7258
7275
  "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
7259
7276
  "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk="
7260
7277
  },
7278
+ "buffer-from": {
7279
+ "version": "1.1.2",
7280
+ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
7281
+ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
7282
+ "dev": true
7283
+ },
7261
7284
  "c8": {
7262
7285
  "version": "7.11.0",
7263
7286
  "resolved": "https://registry.npmjs.org/c8/-/c8-7.11.0.tgz",
@@ -10238,7 +10261,17 @@
10238
10261
  "version": "0.6.1",
10239
10262
  "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
10240
10263
  "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
10241
- "optional": true
10264
+ "devOptional": true
10265
+ },
10266
+ "source-map-support": {
10267
+ "version": "0.5.21",
10268
+ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",
10269
+ "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",
10270
+ "dev": true,
10271
+ "requires": {
10272
+ "buffer-from": "^1.0.0",
10273
+ "source-map": "^0.6.0"
10274
+ }
10242
10275
  },
10243
10276
  "sprintf-js": {
10244
10277
  "version": "1.0.3",
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "5.0.0-beta.6d4dbfb",
3
+ "version": "5.0.0-beta.77249d9",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
- "main": "./dist/index.js",
6
+ "main": "./dist/api.js",
7
+ "typings": "./dist/api.d.ts",
7
8
  "bin": {
8
9
  "m365": "./dist/index.js",
9
10
  "m365_comp": "./dist/autocomplete.js",
@@ -84,7 +85,9 @@
84
85
  ],
85
86
  "contributors": [
86
87
  "Ågren, Simon <simon.agren@sogeti.com>",
88
+ "Akash Karda <akashkarda@gmail.com>",
87
89
  "Albany, Bruce <bruce.albany@gmail.com>",
90
+ "Auckloo, Reshmee <reshmee011@gmail.com>",
88
91
  "Balasubramaniam, Jayakumar <jayakumar@live.in>",
89
92
  "Bauer, Stefan <stefan.bauer@n8d.at>",
90
93
  "Bernier, Hugo <hugoabernier@live.ca>",
@@ -135,6 +138,7 @@
135
138
  "Patil, Atharva <atharvapatil19202@gmail.com>",
136
139
  "Plenevaux, Yannick <yannick.plenevaux@gmail.com>",
137
140
  "Powney, Mark <powney.mark@outlook.com>",
141
+ "pramod74 <pramod.lumb@gmail.com>",
138
142
  "Priem, Mark <mark.priem@outlook.com>",
139
143
  "Raju, Arnie <arnie.raju@thesolutioncollective.com.au>",
140
144
  "Ramalho, David <dramalho@storm.ie>",
@@ -224,6 +228,7 @@
224
228
  "eslint-plugin-promise": "^6.0.0",
225
229
  "mocha": "^9.2.0",
226
230
  "rimraf": "^3.0.2",
227
- "sinon": "^13.0.1"
231
+ "sinon": "^13.0.1",
232
+ "source-map-support": "^0.5.21"
228
233
  }
229
234
  }