@pnp/cli-microsoft365 5.0.0-beta.d025005 → 5.0.0-beta.d107c7a

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 (35) hide show
  1. package/.devcontainer/devcontainer.json +12 -9
  2. package/.eslintrc.js +1 -0
  3. package/.mocharc.json +9 -0
  4. package/dist/Command.js +1 -1
  5. package/dist/m365/aad/commands/app/app-delete.js +123 -0
  6. package/dist/m365/aad/commands/app/app-get.js +56 -11
  7. package/dist/m365/aad/commands/app/app-set.js +98 -3
  8. package/dist/m365/aad/commands/group/group-list.js +14 -1
  9. package/dist/m365/aad/commands/o365group/o365group-conversation-list.js +41 -0
  10. package/dist/m365/aad/commands.js +2 -0
  11. package/dist/m365/outlook/commands/room/room-list.js +43 -0
  12. package/dist/m365/outlook/commands/roomlist/roomlist-list.js +25 -0
  13. package/dist/m365/outlook/commands.js +2 -0
  14. package/dist/m365/planner/commands/task/task-get.js +1 -1
  15. package/dist/m365/planner/commands/task/task-list.js +37 -7
  16. package/dist/m365/spo/commands/group/group-user-add.js +15 -8
  17. package/dist/m365/teams/commands/app/app-install.js +75 -21
  18. package/dist/m365/teams/commands/channel/channel-get.js +29 -7
  19. package/dist/m365/teams/commands/chat/chat-message-send.js +225 -0
  20. package/dist/m365/teams/commands.js +1 -0
  21. package/docs/docs/cmd/aad/app/app-delete.md +51 -0
  22. package/docs/docs/cmd/aad/app/app-get.md +12 -1
  23. package/docs/docs/cmd/aad/app/app-set.md +21 -0
  24. package/docs/docs/cmd/aad/group/group-list.md +9 -0
  25. package/docs/docs/cmd/aad/o365group/o365group-conversation-list.md +24 -0
  26. package/docs/docs/cmd/outlook/room/room-list.md +30 -0
  27. package/docs/docs/cmd/outlook/roomlist/roomlist-list.md +21 -0
  28. package/docs/docs/cmd/planner/task/task-get.md +5 -0
  29. package/docs/docs/cmd/planner/task/task-list.md +5 -0
  30. package/docs/docs/cmd/spo/group/group-user-add.md +4 -0
  31. package/docs/docs/cmd/teams/app/app-install.md +22 -4
  32. package/docs/docs/cmd/teams/channel/channel-get.md +10 -1
  33. package/docs/docs/cmd/teams/chat/chat-message-send.md +55 -0
  34. package/npm-shrinkwrap.json +36 -3
  35. package/package.json +6 -2
@@ -22,6 +22,15 @@ m365 aad app set [options]
22
22
  `-u, --uri [uri]`
23
23
  : Application ID URI to update
24
24
 
25
+ `-r, --redirectUris [redirectUris]`
26
+ : Comma-separated list of redirect URIs to add to the app registration. Requires `platform` to be specified
27
+
28
+ `-p, --platform [platform]`
29
+ : Platform for which the `redirectUri` should be configured. Allowed values `spa,web,publicClient`
30
+
31
+ `--redirectUrisToRemove [redirectUrisToRemove]`
32
+ : Comma-separated list of existing redirect URIs to remove. Specify, when you want to replace existing redirect URIs with another
33
+
25
34
  --8<-- "docs/cmd/_global.md"
26
35
 
27
36
  ## Remarks
@@ -49,3 +58,15 @@ Update the app URI of the Azure AD application registration specified by its nam
49
58
  ```sh
50
59
  m365 aad app set --name "My app" --uri https://contoso.com/e75be2e1-0204-4f95-857d-51a37cf40be8
51
60
  ```
61
+
62
+ Add a new redirect URI for SPA authentication
63
+
64
+ ```sh
65
+ m365 aad app set --objectId 95cfe30d-ed44-4f9d-b73d-c66560f72e83 --redirectUris https://contoso.com/auth --platform spa
66
+ ```
67
+
68
+ Replace one redirect URI with another for SPA authentication
69
+
70
+ ```sh
71
+ m365 aad app set --objectId 95cfe30d-ed44-4f9d-b73d-c66560f72e83 --redirectUris https://contoso.com/auth --platform spa --redirectUrisToRemove https://contoso.com/old-auth
72
+ ```
@@ -10,6 +10,9 @@ m365 aad group list [options]
10
10
 
11
11
  ## Options
12
12
 
13
+ `-d, --deleted`
14
+ : Use to retrieve deleted groups
15
+
13
16
  --8<-- "docs/cmd/_global.md"
14
17
 
15
18
  ## Examples
@@ -18,4 +21,10 @@ Lists all groups defined in Azure Active Directory.
18
21
 
19
22
  ```sh
20
23
  m365 aad group list
24
+ ```
25
+
26
+ List all recently deleted groups in the tenant
27
+
28
+ ```sh
29
+ m365 aad group list --deleted
21
30
  ```
@@ -0,0 +1,24 @@
1
+ # aad o365group conversation list
2
+
3
+ Lists conversations for the specified Microsoft 365 group
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 aad o365group conversation list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-i, --groupId <groupId>`
14
+ : The ID of the Microsoft 365 group
15
+
16
+ --8<-- "docs/cmd/_global.md"
17
+
18
+ ## Examples
19
+
20
+ Lists conversations for the specified Microsoft 365 group
21
+
22
+ ```sh
23
+ m365 aad o365group conversation list --groupId '00000000-0000-0000-0000-000000000000'
24
+ ```
@@ -0,0 +1,30 @@
1
+ # outlook room list
2
+
3
+ Get a collection of all available rooms
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 outlook room list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `--roomlistEmail [roomlistEmail]`
14
+ : Use to filter returned rooms by their roomlist email (eg. bldg2@contoso.com)
15
+
16
+ --8<-- "docs/cmd/_global.md"
17
+
18
+ ## Examples
19
+
20
+ Get all the rooms
21
+
22
+ ```sh
23
+ m365 outlook room list
24
+ ```
25
+
26
+ Get all the rooms of specified roomlist e-mail address
27
+
28
+ ```sh
29
+ m365 outlook room list --roomlistEmail "bldg2@contoso.com"
30
+ ```
@@ -0,0 +1,21 @@
1
+ # outlook roomlist list
2
+
3
+ Get a collection of available roomlists
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 outlook roomlist list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ --8<-- "docs/cmd/_global.md"
14
+
15
+ ## Examples
16
+
17
+ Get all roomlists in your tenant
18
+
19
+ ```sh
20
+ m365 outlook roomlist list
21
+ ```
@@ -15,6 +15,11 @@ m365 planner task get [options]
15
15
 
16
16
  --8<-- "docs/cmd/_global.md"
17
17
 
18
+ ## Remarks
19
+
20
+ !!! attention
21
+ This command uses an API that is currently in preview to enrich the results with the `priority` field. Keep in mind that this preview API is subject to change once the API reached general availability.
22
+
18
23
  ## Examples
19
24
 
20
25
  Retrieve the the specified planner task
@@ -30,6 +30,11 @@ m365 planner task list [options]
30
30
 
31
31
  --8<-- "docs/cmd/_global.md"
32
32
 
33
+ ## Remarks
34
+
35
+ !!! attention
36
+ This command uses API that is currently in preview to enrich the results with the `priority` field. Keep in mind that this preview API is subject to change once the API reached general availability.
37
+
33
38
  ## Examples
34
39
 
35
40
  List tasks for the currently logged in user
@@ -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
+ ```
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "5.0.0-beta.d025005",
3
+ "version": "5.0.0-beta.d107c7a",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",
@@ -85,7 +85,9 @@
85
85
  ],
86
86
  "contributors": [
87
87
  "Ågren, Simon <simon.agren@sogeti.com>",
88
+ "Akash Karda <akashkarda@gmail.com>",
88
89
  "Albany, Bruce <bruce.albany@gmail.com>",
90
+ "Auckloo, Reshmee <reshmee011@gmail.com>",
89
91
  "Balasubramaniam, Jayakumar <jayakumar@live.in>",
90
92
  "Bauer, Stefan <stefan.bauer@n8d.at>",
91
93
  "Bernier, Hugo <hugoabernier@live.ca>",
@@ -136,6 +138,7 @@
136
138
  "Patil, Atharva <atharvapatil19202@gmail.com>",
137
139
  "Plenevaux, Yannick <yannick.plenevaux@gmail.com>",
138
140
  "Powney, Mark <powney.mark@outlook.com>",
141
+ "pramod74 <pramod.lumb@gmail.com>",
139
142
  "Priem, Mark <mark.priem@outlook.com>",
140
143
  "Raju, Arnie <arnie.raju@thesolutioncollective.com.au>",
141
144
  "Ramalho, David <dramalho@storm.ie>",
@@ -225,6 +228,7 @@
225
228
  "eslint-plugin-promise": "^6.0.0",
226
229
  "mocha": "^9.2.0",
227
230
  "rimraf": "^3.0.2",
228
- "sinon": "^13.0.1"
231
+ "sinon": "^13.0.1",
232
+ "source-map-support": "^0.5.21"
229
233
  }
230
234
  }