@pnp/cli-microsoft365 5.0.0-beta.d17a15f → 5.0.0-beta.f79b8ed
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.
- package/dist/m365/aad/commands/o365group/o365group-conversation-list.js +40 -0
- package/dist/m365/aad/commands.js +1 -0
- package/dist/m365/outlook/commands/room/room-list.js +42 -0
- package/dist/m365/outlook/commands/roomlist/roomlist-list.js +24 -0
- package/dist/m365/outlook/commands.js +2 -0
- package/docs/docs/cmd/aad/o365group/o365group-conversation-list.md +24 -0
- package/docs/docs/cmd/outlook/room/room-list.md +30 -0
- package/docs/docs/cmd/outlook/roomlist/roomlist-list.md +21 -0
- package/package.json +2 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const commands_1 = require("../../commands");
|
|
4
|
+
const GraphItemsListCommand_1 = require("../../../base/GraphItemsListCommand");
|
|
5
|
+
const Utils_1 = require("../../../../Utils");
|
|
6
|
+
class AadO365GroupConversationListCommand extends GraphItemsListCommand_1.GraphItemsListCommand {
|
|
7
|
+
get name() {
|
|
8
|
+
return commands_1.default.O365GROUP_CONVERSATION_LIST;
|
|
9
|
+
}
|
|
10
|
+
get description() {
|
|
11
|
+
return 'Lists conversations for the specified Microsoft 365 group';
|
|
12
|
+
}
|
|
13
|
+
defaultProperties() {
|
|
14
|
+
return ['topic', 'lastDeliveredDateTime', 'id'];
|
|
15
|
+
}
|
|
16
|
+
commandAction(logger, args, cb) {
|
|
17
|
+
this.getAllItems(`${this.resource}/v1.0/groups/${args.options.groupId}/conversations`, logger, true)
|
|
18
|
+
.then(() => {
|
|
19
|
+
logger.log(this.items);
|
|
20
|
+
cb();
|
|
21
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
22
|
+
}
|
|
23
|
+
options() {
|
|
24
|
+
const options = [
|
|
25
|
+
{
|
|
26
|
+
option: '-i, --groupId <groupId>'
|
|
27
|
+
}
|
|
28
|
+
];
|
|
29
|
+
const parentOptions = super.options();
|
|
30
|
+
return options.concat(parentOptions);
|
|
31
|
+
}
|
|
32
|
+
validate(args) {
|
|
33
|
+
if (!Utils_1.default.isValidGuid(args.options.groupId)) {
|
|
34
|
+
return `${args.options.groupId} is not a valid GUID`;
|
|
35
|
+
}
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
module.exports = new AadO365GroupConversationListCommand();
|
|
40
|
+
//# sourceMappingURL=o365group-conversation-list.js.map
|
|
@@ -23,6 +23,7 @@ exports.default = {
|
|
|
23
23
|
O365GROUP_ADD: `${prefix} o365group add`,
|
|
24
24
|
O365GROUP_GET: `${prefix} o365group get`,
|
|
25
25
|
O365GROUP_LIST: `${prefix} o365group list`,
|
|
26
|
+
O365GROUP_CONVERSATION_LIST: `${prefix} o365group conversation list`,
|
|
26
27
|
O365GROUP_RECYCLEBINITEM_CLEAR: `${prefix} o365group recyclebinitem clear`,
|
|
27
28
|
O365GROUP_RECYCLEBINITEM_LIST: `${prefix} o365group recyclebinitem list`,
|
|
28
29
|
O365GROUP_RECYCLEBINITEM_RESTORE: `${prefix} o365group recyclebinitem restore`,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const commands_1 = require("../../commands");
|
|
4
|
+
const GraphItemsListCommand_1 = require("../../../base/GraphItemsListCommand");
|
|
5
|
+
class OutlookRoomListCommand extends GraphItemsListCommand_1.GraphItemsListCommand {
|
|
6
|
+
get name() {
|
|
7
|
+
return commands_1.default.ROOM_LIST;
|
|
8
|
+
}
|
|
9
|
+
get description() {
|
|
10
|
+
return 'Get a collection of all available rooms';
|
|
11
|
+
}
|
|
12
|
+
getTelemetryProperties(args) {
|
|
13
|
+
const telemetryProps = super.getTelemetryProperties(args);
|
|
14
|
+
telemetryProps.roomlistEmail = typeof args.options.roomlistEmail !== 'undefined';
|
|
15
|
+
return telemetryProps;
|
|
16
|
+
}
|
|
17
|
+
defaultProperties() {
|
|
18
|
+
return ['id', 'displayName', 'phone', 'emailAddress'];
|
|
19
|
+
}
|
|
20
|
+
commandAction(logger, args, cb) {
|
|
21
|
+
let endpoint = `${this.resource}/v1.0/places/microsoft.graph.room`;
|
|
22
|
+
if (args.options.roomlistEmail) {
|
|
23
|
+
endpoint = `${this.resource}/v1.0/places/${args.options.roomlistEmail}/microsoft.graph.roomlist/rooms`;
|
|
24
|
+
}
|
|
25
|
+
this.getAllItems(endpoint, logger, true)
|
|
26
|
+
.then(() => {
|
|
27
|
+
logger.log(this.items);
|
|
28
|
+
cb();
|
|
29
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
30
|
+
}
|
|
31
|
+
options() {
|
|
32
|
+
const options = [
|
|
33
|
+
{
|
|
34
|
+
option: '--roomlistEmail [roomlistEmail]'
|
|
35
|
+
}
|
|
36
|
+
];
|
|
37
|
+
const parentOptions = super.options();
|
|
38
|
+
return options.concat(parentOptions);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
module.exports = new OutlookRoomListCommand();
|
|
42
|
+
//# sourceMappingURL=room-list.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const commands_1 = require("../../commands");
|
|
4
|
+
const GraphItemsListCommand_1 = require("../../../base/GraphItemsListCommand");
|
|
5
|
+
class OutlookRoomlistListCommand extends GraphItemsListCommand_1.GraphItemsListCommand {
|
|
6
|
+
get name() {
|
|
7
|
+
return commands_1.default.ROOMLIST_LIST;
|
|
8
|
+
}
|
|
9
|
+
get description() {
|
|
10
|
+
return 'Get a collection of available roomlists';
|
|
11
|
+
}
|
|
12
|
+
defaultProperties() {
|
|
13
|
+
return ['id', 'displayName', 'phone', 'emailAddress'];
|
|
14
|
+
}
|
|
15
|
+
commandAction(logger, args, cb) {
|
|
16
|
+
this.getAllItems(`${this.resource}/v1.0/places/microsoft.graph.roomlist`, logger, true)
|
|
17
|
+
.then(() => {
|
|
18
|
+
logger.log(this.items);
|
|
19
|
+
cb();
|
|
20
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
module.exports = new OutlookRoomlistListCommand();
|
|
24
|
+
//# sourceMappingURL=roomlist-list.js.map
|
|
@@ -16,6 +16,8 @@ exports.default = {
|
|
|
16
16
|
REPORT_MAILBOXUSAGEMAILBOXCOUNT: `${prefix} report mailboxusagemailboxcount`,
|
|
17
17
|
REPORT_MAILBOXUSAGEQUOTASTATUSMAILBOXCOUNTS: `${prefix} report mailboxusagequotastatusmailboxcounts`,
|
|
18
18
|
REPORT_MAILBOXUSAGESTORAGE: `${prefix} report mailboxusagestorage`,
|
|
19
|
+
ROOM_LIST: `${prefix} room list`,
|
|
20
|
+
ROOMLIST_LIST: `${prefix} roomlist list`,
|
|
19
21
|
SENDMAIL: `${prefix} sendmail`
|
|
20
22
|
};
|
|
21
23
|
//# sourceMappingURL=commands.js.map
|
|
@@ -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
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.f79b8ed",
|
|
4
4
|
"description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/api.js",
|
|
@@ -85,6 +85,7 @@
|
|
|
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>",
|
|
89
90
|
"Auckloo, Reshmee <reshmee011@gmail.com>",
|
|
90
91
|
"Balasubramaniam, Jayakumar <jayakumar@live.in>",
|