@pnp/cli-microsoft365 5.0.0-beta.cdbc898 → 5.0.0-beta.e93174a
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/.eslintrc.js +1 -0
- package/dist/m365/aad/commands/user/user-list.js +7 -4
- package/dist/m365/flow/commands/flow-get.js +2 -2
- package/dist/m365/planner/AppliedCategories.js +3 -0
- package/dist/m365/planner/commands/task/task-details-get.js +39 -0
- package/dist/m365/planner/commands/task/task-get.js +37 -0
- package/dist/m365/planner/commands/task/task-set.js +357 -0
- package/dist/m365/planner/commands.js +4 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014008_CODE_launch_hostedWorkbench_type.js +62 -0
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.14.0-beta.4.js → upgrade-1.14.0-beta.5.js} +27 -25
- package/dist/m365/spfx/commands/project/project-upgrade.js +1 -1
- package/dist/m365/spo/commands/group/group-user-add.js +6 -6
- package/dist/m365/spo/commands/group/group-user-remove.js +100 -0
- package/dist/m365/spo/commands.js +1 -0
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-get.js +57 -0
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-list.js +56 -0
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-get.js +39 -0
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +38 -0
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-get.js +51 -0
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +38 -0
- package/dist/m365/tenant/commands.js +6 -0
- package/docs/docs/cmd/aad/user/user-list.md +9 -0
- package/docs/docs/cmd/planner/task/task-details-get.md +24 -0
- package/docs/docs/cmd/planner/task/task-get.md +24 -0
- package/docs/docs/cmd/planner/task/task-set.md +99 -0
- package/docs/docs/cmd/spo/group/group-user-remove.md +39 -0
- package/docs/docs/cmd/teams/channel/channel-get.md +1 -1
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.md +33 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-list.md +30 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-get.md +24 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-list.md +34 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-get.md +28 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-list.md +34 -0
- package/package.json +1 -1
- package/dist/m365/base/AadCommand.js +0 -10
|
@@ -53,11 +53,11 @@ class SpoGroupUserAddCommand extends SpoCommand_1.default {
|
|
|
53
53
|
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
54
54
|
}
|
|
55
55
|
getGroupId(args) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
const getGroupMethod = args.options.groupName ?
|
|
57
|
+
`GetByName('${encodeURIComponent(args.options.groupName)}')` :
|
|
58
|
+
`GetById('${args.options.groupId}')`;
|
|
59
59
|
const requestOptions = {
|
|
60
|
-
url: `${args.options.webUrl}/_api/web/sitegroups
|
|
60
|
+
url: `${args.options.webUrl}/_api/web/sitegroups/${getGroupMethod}`,
|
|
61
61
|
headers: {
|
|
62
62
|
'accept': 'application/json;odata=nometadata'
|
|
63
63
|
},
|
|
@@ -68,9 +68,9 @@ class SpoGroupUserAddCommand extends SpoCommand_1.default {
|
|
|
68
68
|
.then(response => {
|
|
69
69
|
const groupId = response.Id;
|
|
70
70
|
if (!groupId) {
|
|
71
|
-
return Promise.reject(`The specified group not exist in the SharePoint site`);
|
|
71
|
+
return Promise.reject(`The specified group does not exist in the SharePoint site`);
|
|
72
72
|
}
|
|
73
|
-
return
|
|
73
|
+
return groupId;
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
getOnlyActiveUsers(args, logger) {
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const cli_1 = require("../../../../cli");
|
|
4
|
+
const request_1 = require("../../../../request");
|
|
5
|
+
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
6
|
+
const commands_1 = require("../../commands");
|
|
7
|
+
class SpoGroupUserRemoveCommand extends SpoCommand_1.default {
|
|
8
|
+
get name() {
|
|
9
|
+
return commands_1.default.GROUP_USER_REMOVE;
|
|
10
|
+
}
|
|
11
|
+
get description() {
|
|
12
|
+
return 'Removes the specified user from a SharePoint group';
|
|
13
|
+
}
|
|
14
|
+
getTelemetryProperties(args) {
|
|
15
|
+
const telemetryProps = super.getTelemetryProperties(args);
|
|
16
|
+
telemetryProps.groupId = (!(!args.options.groupId)).toString();
|
|
17
|
+
telemetryProps.groupName = (!(!args.options.groupName)).toString();
|
|
18
|
+
telemetryProps.confirm = (!(!args.options.confirm)).toString();
|
|
19
|
+
return telemetryProps;
|
|
20
|
+
}
|
|
21
|
+
commandAction(logger, args, cb) {
|
|
22
|
+
const removeUserfromSPGroup = () => {
|
|
23
|
+
if (this.verbose) {
|
|
24
|
+
logger.logToStderr(`Removing User with Username ${args.options.userName} from Group: ${args.options.groupId ? args.options.groupId : args.options.groupName}`);
|
|
25
|
+
}
|
|
26
|
+
const loginName = `i:0#.f|membership|${args.options.userName}`;
|
|
27
|
+
const requestUrl = `${args.options.webUrl}/_api/web/sitegroups/${args.options.groupId
|
|
28
|
+
? `GetById('${encodeURIComponent(args.options.groupId)}')`
|
|
29
|
+
: `GetByName('${encodeURIComponent(args.options.groupName)}')`}/users/removeByLoginName(@LoginName)?@LoginName='${encodeURIComponent(loginName)}'`;
|
|
30
|
+
const requestOptions = {
|
|
31
|
+
url: requestUrl,
|
|
32
|
+
headers: {
|
|
33
|
+
'accept': 'application/json;odata=nometadata'
|
|
34
|
+
},
|
|
35
|
+
responseType: 'json'
|
|
36
|
+
};
|
|
37
|
+
request_1.default
|
|
38
|
+
.post(requestOptions)
|
|
39
|
+
.then(() => {
|
|
40
|
+
cb();
|
|
41
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
42
|
+
};
|
|
43
|
+
if (args.options.confirm) {
|
|
44
|
+
if (this.debug) {
|
|
45
|
+
logger.logToStderr('Confirmation bypassed by entering confirm option. Removing the user from SharePoint Group...');
|
|
46
|
+
}
|
|
47
|
+
removeUserfromSPGroup();
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
cli_1.Cli.prompt({
|
|
51
|
+
type: 'confirm',
|
|
52
|
+
name: 'continue',
|
|
53
|
+
default: false,
|
|
54
|
+
message: `Are you sure you want to remove user User ${args.options.userName} from SharePoint group?`
|
|
55
|
+
}, (result) => {
|
|
56
|
+
if (!result.continue) {
|
|
57
|
+
cb();
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
removeUserfromSPGroup();
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
options() {
|
|
66
|
+
const options = [
|
|
67
|
+
{
|
|
68
|
+
option: '-u, --webUrl <webUrl>'
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
option: '--groupId [groupId]'
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
option: '--groupName [groupName]'
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
option: '--userName <userName>'
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
option: '--confirm'
|
|
81
|
+
}
|
|
82
|
+
];
|
|
83
|
+
const parentOptions = super.options();
|
|
84
|
+
return options.concat(parentOptions);
|
|
85
|
+
}
|
|
86
|
+
validate(args) {
|
|
87
|
+
if (args.options.groupId && args.options.groupName) {
|
|
88
|
+
return 'Use either "groupName" or "groupId", but not both';
|
|
89
|
+
}
|
|
90
|
+
if (!args.options.groupId && !args.options.groupName) {
|
|
91
|
+
return 'Either "groupName" or "groupId" is required';
|
|
92
|
+
}
|
|
93
|
+
if (args.options.groupId && isNaN(args.options.groupId)) {
|
|
94
|
+
return `Specified "groupId" ${args.options.groupId} is not valid`;
|
|
95
|
+
}
|
|
96
|
+
return SpoCommand_1.default.isValidSharePointUrl(args.options.webUrl);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
module.exports = new SpoGroupUserRemoveCommand();
|
|
100
|
+
//# sourceMappingURL=group-user-remove.js.map
|
|
@@ -64,6 +64,7 @@ exports.default = {
|
|
|
64
64
|
GROUP_REMOVE: `${prefix} group remove`,
|
|
65
65
|
GROUP_USER_ADD: `${prefix} group user add`,
|
|
66
66
|
GROUP_USER_LIST: `${prefix} group user list`,
|
|
67
|
+
GROUP_USER_REMOVE: `${prefix} group user remove`,
|
|
67
68
|
HIDEDEFAULTTHEMES_GET: `${prefix} hidedefaultthemes get`,
|
|
68
69
|
HIDEDEFAULTTHEMES_SET: `${prefix} hidedefaultthemes set`,
|
|
69
70
|
HOMESITE_GET: `${prefix} homesite get`,
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
4
|
+
const request_1 = require("../../../../request");
|
|
5
|
+
const commands_1 = require("../../commands");
|
|
6
|
+
class TenantServiceAnnouncementHealthGetCommand extends GraphCommand_1.default {
|
|
7
|
+
get name() {
|
|
8
|
+
return commands_1.default.SERVICEANNOUNCEMENT_HEALTH_GET;
|
|
9
|
+
}
|
|
10
|
+
get description() {
|
|
11
|
+
return 'This operation provides the health information of a specified service for a tenant';
|
|
12
|
+
}
|
|
13
|
+
getTelemetryProperties(args) {
|
|
14
|
+
const telemetryProps = super.getTelemetryProperties(args);
|
|
15
|
+
telemetryProps.issues = typeof args.options.issues !== 'undefined';
|
|
16
|
+
return telemetryProps;
|
|
17
|
+
}
|
|
18
|
+
defaultProperties() {
|
|
19
|
+
return ['id', 'status', 'service'];
|
|
20
|
+
}
|
|
21
|
+
commandAction(logger, args, cb) {
|
|
22
|
+
this
|
|
23
|
+
.getServiceHealth(args.options)
|
|
24
|
+
.then((res) => {
|
|
25
|
+
logger.log(res);
|
|
26
|
+
cb();
|
|
27
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
28
|
+
}
|
|
29
|
+
getServiceHealth(options) {
|
|
30
|
+
const requestOptions = {
|
|
31
|
+
url: `${this.resource}/v1.0/admin/serviceAnnouncement/healthOverviews/${options.serviceName}${options.issues && (!options.output || options.output.toLocaleLowerCase() === 'json') ? '?$expand=issues' : ''}`,
|
|
32
|
+
headers: {
|
|
33
|
+
accept: 'application/json;odata.metadata=none'
|
|
34
|
+
},
|
|
35
|
+
responseType: 'json'
|
|
36
|
+
};
|
|
37
|
+
return request_1.default
|
|
38
|
+
.get(requestOptions)
|
|
39
|
+
.then(response => {
|
|
40
|
+
const serviceHealth = response;
|
|
41
|
+
if (!serviceHealth) {
|
|
42
|
+
return Promise.reject(`Error fetching service health`);
|
|
43
|
+
}
|
|
44
|
+
return Promise.resolve(serviceHealth);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
options() {
|
|
48
|
+
const options = [
|
|
49
|
+
{ option: '-s, --serviceName <serviceName>' },
|
|
50
|
+
{ option: '-i, --issues' }
|
|
51
|
+
];
|
|
52
|
+
const parentOptions = super.options();
|
|
53
|
+
return options.concat(parentOptions);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
module.exports = new TenantServiceAnnouncementHealthGetCommand();
|
|
57
|
+
//# sourceMappingURL=serviceannouncement-health-get.js.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
4
|
+
const request_1 = require("../../../../request");
|
|
5
|
+
const commands_1 = require("../../commands");
|
|
6
|
+
class TenantServiceAnnouncementHealthListCommand extends GraphCommand_1.default {
|
|
7
|
+
get name() {
|
|
8
|
+
return commands_1.default.SERVICEANNOUNCEMENT_HEALTH_LIST;
|
|
9
|
+
}
|
|
10
|
+
get description() {
|
|
11
|
+
return 'This operation provides the health report of all subscribed services for a tenant';
|
|
12
|
+
}
|
|
13
|
+
getTelemetryProperties(args) {
|
|
14
|
+
const telemetryProps = super.getTelemetryProperties(args);
|
|
15
|
+
telemetryProps.issues = typeof args.options.issues !== 'undefined';
|
|
16
|
+
return telemetryProps;
|
|
17
|
+
}
|
|
18
|
+
defaultProperties() {
|
|
19
|
+
return ['id', 'status', 'service'];
|
|
20
|
+
}
|
|
21
|
+
commandAction(logger, args, cb) {
|
|
22
|
+
this
|
|
23
|
+
.listServiceHealth(args.options)
|
|
24
|
+
.then((res) => {
|
|
25
|
+
logger.log(res);
|
|
26
|
+
cb();
|
|
27
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
28
|
+
}
|
|
29
|
+
listServiceHealth(options) {
|
|
30
|
+
const requestOptions = {
|
|
31
|
+
url: `${this.resource}/v1.0/admin/serviceAnnouncement/healthOverviews${options.issues && (!options.output || options.output.toLocaleLowerCase() === 'json') ? '?$expand=issues' : ''}`,
|
|
32
|
+
headers: {
|
|
33
|
+
accept: 'application/json;odata.metadata=none'
|
|
34
|
+
},
|
|
35
|
+
responseType: 'json'
|
|
36
|
+
};
|
|
37
|
+
return request_1.default
|
|
38
|
+
.get(requestOptions)
|
|
39
|
+
.then(response => {
|
|
40
|
+
const serviceHealthList = response.value;
|
|
41
|
+
if (!serviceHealthList) {
|
|
42
|
+
return Promise.reject(`Error fetching service health`);
|
|
43
|
+
}
|
|
44
|
+
return Promise.resolve(serviceHealthList);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
options() {
|
|
48
|
+
const options = [
|
|
49
|
+
{ option: '-i, --issues' }
|
|
50
|
+
];
|
|
51
|
+
const parentOptions = super.options();
|
|
52
|
+
return options.concat(parentOptions);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
module.exports = new TenantServiceAnnouncementHealthListCommand();
|
|
56
|
+
//# sourceMappingURL=serviceannouncement-health-list.js.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const request_1 = require("../../../../request");
|
|
4
|
+
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
5
|
+
const commands_1 = require("../../commands");
|
|
6
|
+
class TenantServiceAnnouncementHealthIssueGetCommand extends GraphCommand_1.default {
|
|
7
|
+
get name() {
|
|
8
|
+
return commands_1.default.SERVICEANNOUNCEMENT_HEALTHISSUE_GET;
|
|
9
|
+
}
|
|
10
|
+
get description() {
|
|
11
|
+
return 'Gets a specified service health issue for tenant';
|
|
12
|
+
}
|
|
13
|
+
commandAction(logger, args, cb) {
|
|
14
|
+
const requestOptions = {
|
|
15
|
+
url: `${this.resource}/v1.0/admin/serviceAnnouncement/issues/${encodeURIComponent(args.options.id)}`,
|
|
16
|
+
headers: {
|
|
17
|
+
accept: 'application/json;odata.metadata=none'
|
|
18
|
+
},
|
|
19
|
+
responseType: 'json'
|
|
20
|
+
};
|
|
21
|
+
request_1.default
|
|
22
|
+
.get(requestOptions)
|
|
23
|
+
.then((res) => {
|
|
24
|
+
logger.log(res);
|
|
25
|
+
cb();
|
|
26
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
27
|
+
}
|
|
28
|
+
options() {
|
|
29
|
+
const options = [
|
|
30
|
+
{
|
|
31
|
+
option: '-i, --id <id>'
|
|
32
|
+
}
|
|
33
|
+
];
|
|
34
|
+
const parentOptions = super.options();
|
|
35
|
+
return options.concat(parentOptions);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
module.exports = new TenantServiceAnnouncementHealthIssueGetCommand();
|
|
39
|
+
//# sourceMappingURL=serviceannouncement-healthissue-get.js.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const GraphItemsListCommand_1 = require("../../../base/GraphItemsListCommand");
|
|
4
|
+
const commands_1 = require("../../commands");
|
|
5
|
+
class TenantServiceAnnouncementHealthIssueListCommand extends GraphItemsListCommand_1.GraphItemsListCommand {
|
|
6
|
+
get name() {
|
|
7
|
+
return commands_1.default.SERVICEANNOUNCEMENT_HEALTHISSUE_LIST;
|
|
8
|
+
}
|
|
9
|
+
get description() {
|
|
10
|
+
return 'Gets all service health issues for the tenant';
|
|
11
|
+
}
|
|
12
|
+
defaultProperties() {
|
|
13
|
+
return ['id', 'title'];
|
|
14
|
+
}
|
|
15
|
+
commandAction(logger, args, cb) {
|
|
16
|
+
let endpoint = `${this.resource}/v1.0/admin/serviceAnnouncement/issues`;
|
|
17
|
+
if (args.options.service) {
|
|
18
|
+
endpoint += `?$filter=service eq '${encodeURIComponent(args.options.service)}'`;
|
|
19
|
+
}
|
|
20
|
+
this
|
|
21
|
+
.getAllItems(endpoint, logger, true)
|
|
22
|
+
.then(() => {
|
|
23
|
+
logger.log(this.items);
|
|
24
|
+
cb();
|
|
25
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
26
|
+
}
|
|
27
|
+
options() {
|
|
28
|
+
const options = [
|
|
29
|
+
{
|
|
30
|
+
option: '-s, --service [service]'
|
|
31
|
+
}
|
|
32
|
+
];
|
|
33
|
+
const parentOptions = super.options();
|
|
34
|
+
return options.concat(parentOptions);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
module.exports = new TenantServiceAnnouncementHealthIssueListCommand();
|
|
38
|
+
//# sourceMappingURL=serviceannouncement-healthissue-list.js.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const request_1 = require("../../../../request");
|
|
4
|
+
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
5
|
+
const commands_1 = require("../../commands");
|
|
6
|
+
class TenantServiceAnnouncementMessageGetCommand extends GraphCommand_1.default {
|
|
7
|
+
get name() {
|
|
8
|
+
return commands_1.default.SERVICEANNOUNCEMENT_MESSAGE_GET;
|
|
9
|
+
}
|
|
10
|
+
get description() {
|
|
11
|
+
return 'Retrieves a specified service update message for the tenant';
|
|
12
|
+
}
|
|
13
|
+
commandAction(logger, args, cb) {
|
|
14
|
+
if (this.verbose) {
|
|
15
|
+
logger.logToStderr(`Retrieving service update message ${args.options.id}`);
|
|
16
|
+
}
|
|
17
|
+
const requestOptions = {
|
|
18
|
+
url: `${this.resource}/v1.0/admin/serviceAnnouncement/messages/${args.options.id}`,
|
|
19
|
+
headers: {
|
|
20
|
+
accept: 'application/json;odata.metadata=none'
|
|
21
|
+
},
|
|
22
|
+
responseType: 'json'
|
|
23
|
+
};
|
|
24
|
+
request_1.default
|
|
25
|
+
.get(requestOptions)
|
|
26
|
+
.then((res) => {
|
|
27
|
+
logger.log(res);
|
|
28
|
+
cb();
|
|
29
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
30
|
+
}
|
|
31
|
+
options() {
|
|
32
|
+
const options = [
|
|
33
|
+
{
|
|
34
|
+
option: '-i, --id <id>'
|
|
35
|
+
}
|
|
36
|
+
];
|
|
37
|
+
const parentOptions = super.options();
|
|
38
|
+
return options.concat(parentOptions);
|
|
39
|
+
}
|
|
40
|
+
isValidId(id) {
|
|
41
|
+
return (/MC\d{6}/).test(id);
|
|
42
|
+
}
|
|
43
|
+
validate(args) {
|
|
44
|
+
if (!this.isValidId(args.options.id)) {
|
|
45
|
+
return `${args.options.id} is not a valid message ID`;
|
|
46
|
+
}
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
module.exports = new TenantServiceAnnouncementMessageGetCommand();
|
|
51
|
+
//# sourceMappingURL=serviceannouncement-message-get.js.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const GraphItemsListCommand_1 = require("../../../base/GraphItemsListCommand");
|
|
4
|
+
const commands_1 = require("../../commands");
|
|
5
|
+
class TenantServiceAnnouncementMessageListCommand extends GraphItemsListCommand_1.GraphItemsListCommand {
|
|
6
|
+
get name() {
|
|
7
|
+
return commands_1.default.SERVICEANNOUNCEMENT_MESSAGE_LIST;
|
|
8
|
+
}
|
|
9
|
+
get description() {
|
|
10
|
+
return 'Gets all service update messages for the tenant';
|
|
11
|
+
}
|
|
12
|
+
defaultProperties() {
|
|
13
|
+
return ['id', 'title'];
|
|
14
|
+
}
|
|
15
|
+
commandAction(logger, args, cb) {
|
|
16
|
+
let endpoint = `${this.resource}/v1.0/admin/serviceAnnouncement/messages`;
|
|
17
|
+
if (args.options.service) {
|
|
18
|
+
endpoint += `?$filter=services/any(c:c+eq+'${encodeURIComponent(args.options.service)}')`;
|
|
19
|
+
}
|
|
20
|
+
this
|
|
21
|
+
.getAllItems(endpoint, logger, true)
|
|
22
|
+
.then(() => {
|
|
23
|
+
logger.log(this.items);
|
|
24
|
+
cb();
|
|
25
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
26
|
+
}
|
|
27
|
+
options() {
|
|
28
|
+
const options = [
|
|
29
|
+
{
|
|
30
|
+
option: '-s, --service [service]'
|
|
31
|
+
}
|
|
32
|
+
];
|
|
33
|
+
const parentOptions = super.options();
|
|
34
|
+
return options.concat(parentOptions);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
module.exports = new TenantServiceAnnouncementMessageListCommand();
|
|
38
|
+
//# sourceMappingURL=serviceannouncement-message-list.js.map
|
|
@@ -10,9 +10,15 @@ exports.default = {
|
|
|
10
10
|
REPORT_OFFICE365ACTIVATIONSUSERDETAIL: `${prefix} report office365activationsuserdetail`,
|
|
11
11
|
REPORT_OFFICE365ACTIVATIONSUSERCOUNTS: `${prefix} report office365activationsusercounts`,
|
|
12
12
|
REPORT_SERVICESUSERCOUNTS: `${prefix} report servicesusercounts`,
|
|
13
|
+
SERVICEANNOUNCEMENT_HEALTHISSUE_GET: `${prefix} serviceannouncement healthissue get`,
|
|
13
14
|
SERVICE_LIST: `${prefix} service list`,
|
|
14
15
|
SERVICE_MESSAGE_LIST: `${prefix} service message list`,
|
|
15
16
|
SERVICE_REPORT_HISTORICALSERVICESTATUS: `${prefix} service report historicalservicestatus`,
|
|
17
|
+
SERVICEANNOUNCEMENT_HEALTH_GET: `${prefix} serviceannouncement health get`,
|
|
18
|
+
SERVICEANNOUNCEMENT_HEALTH_LIST: `${prefix} serviceannouncement health list`,
|
|
19
|
+
SERVICEANNOUNCEMENT_HEALTHISSUE_LIST: `${prefix} serviceannouncement healthissue list`,
|
|
20
|
+
SERVICEANNOUNCEMENT_MESSAGE_GET: `${prefix} serviceannouncement message get`,
|
|
21
|
+
SERVICEANNOUNCEMENT_MESSAGE_LIST: `${prefix} serviceannouncement message list`,
|
|
16
22
|
STATUS_LIST: `${prefix} status list`
|
|
17
23
|
};
|
|
18
24
|
//# sourceMappingURL=commands.js.map
|
|
@@ -13,6 +13,9 @@ m365 aad user list [options]
|
|
|
13
13
|
`-p, --properties [properties]`
|
|
14
14
|
: Comma-separated list of properties to retrieve
|
|
15
15
|
|
|
16
|
+
`-d, --deleted`
|
|
17
|
+
: Use to retrieve deleted users
|
|
18
|
+
|
|
16
19
|
--8<-- "docs/cmd/_global.md"
|
|
17
20
|
|
|
18
21
|
## Remarks
|
|
@@ -31,6 +34,12 @@ List all users in the tenant
|
|
|
31
34
|
m365 aad user list
|
|
32
35
|
```
|
|
33
36
|
|
|
37
|
+
List all recently deleted users in the tenant
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
m365 aad user list --deleted
|
|
41
|
+
```
|
|
42
|
+
|
|
34
43
|
List all users in the tenant. For each one return the display name and e-mail address
|
|
35
44
|
|
|
36
45
|
```sh
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# planner task details get
|
|
2
|
+
|
|
3
|
+
Retrieve the details of the specified planner task
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 planner task details get [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-i, --taskId <taskId>`
|
|
14
|
+
: ID of the task to retrieve details from
|
|
15
|
+
|
|
16
|
+
--8<-- "docs/cmd/_global.md"
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
|
|
20
|
+
Retrieve the details of the specified planner task
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
m365 planner task details get --taskId 'vzCcZoOv-U27PwydxHB8opcADJo-'
|
|
24
|
+
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# planner task get
|
|
2
|
+
|
|
3
|
+
Retrieve the the specified planner task
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 planner task get [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-i, --id <id>`
|
|
14
|
+
: ID of the task to retrieve details from
|
|
15
|
+
|
|
16
|
+
--8<-- "docs/cmd/_global.md"
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
|
|
20
|
+
Retrieve the the specified planner task
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
m365 planner task get --id 'vzCcZoOv-U27PwydxHB8opcADJo-'
|
|
24
|
+
```
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# planner task set
|
|
2
|
+
|
|
3
|
+
Updates a Microsoft Planner task
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 planner task set [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-i, --id <id>`
|
|
14
|
+
: ID of the task.
|
|
15
|
+
|
|
16
|
+
`-t, --title [title]`
|
|
17
|
+
: New title of the task.
|
|
18
|
+
|
|
19
|
+
`--bucketId [bucketId]`
|
|
20
|
+
: ID of the bucket to move the task to. Specify either `bucketId` or `bucketName` but not both.
|
|
21
|
+
|
|
22
|
+
`--bucketName [bucketName]`
|
|
23
|
+
: Name of the bucket to move the task to. The bucket needs to exist in the selected plan. Specify either `bucketId` or `bucketName` but not both.
|
|
24
|
+
|
|
25
|
+
`--planId [planId]`
|
|
26
|
+
: ID of the plan to move the task to. Specify either `planId` or `planName` but not both.
|
|
27
|
+
|
|
28
|
+
`--planName [planName]`
|
|
29
|
+
: Name of the plan to move the task to. Specify either `planId` or `planName` but not both.
|
|
30
|
+
|
|
31
|
+
`--ownerGroupId [ownerGroupId]`
|
|
32
|
+
: ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planName`.
|
|
33
|
+
|
|
34
|
+
`--ownerGroupName [ownerGroupName]`
|
|
35
|
+
: Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planName`.
|
|
36
|
+
|
|
37
|
+
`--startDateTime [startDateTime]`
|
|
38
|
+
: The date and time when the task started. This should be defined as a valid ISO 8601 string. `2021-12-16T18:28:48.6964197Z`
|
|
39
|
+
|
|
40
|
+
`--dueDateTime [dueDateTime]`
|
|
41
|
+
: The date and time when the task is due. This should be defined as a valid ISO 8601 string. `2021-12-16T18:28:48.6964197Z`
|
|
42
|
+
|
|
43
|
+
`--percentComplete [percentComplete]`
|
|
44
|
+
: Percentage of task completion. Number between 0 and 100.
|
|
45
|
+
|
|
46
|
+
`--assignedToUserIds [assignedToUserIds]`
|
|
47
|
+
: Comma-separated IDs of the assignees that should be added to the task assignment. Specify either `assignedToUserIds` or `assignedToUserNames` but not both.
|
|
48
|
+
|
|
49
|
+
`--assignedToUserNames [assignedToUserNames]`
|
|
50
|
+
: Comma-separated UPNs of the assignees that should be added to the task assignment. Specify either `assignedToUserIds` or `assignedToUserNames` but not both.
|
|
51
|
+
|
|
52
|
+
`--description [description]`
|
|
53
|
+
: Description of the task
|
|
54
|
+
|
|
55
|
+
`--orderHint [orderHint]`
|
|
56
|
+
: Hint used to order items of this type in a list view
|
|
57
|
+
|
|
58
|
+
`--assigneePriority [assigneePriority]`
|
|
59
|
+
: Hint used to order items of this type in a list view
|
|
60
|
+
|
|
61
|
+
`--appliedCategories [appliedCategories]`
|
|
62
|
+
: Comma-separated categories that should be added to the task
|
|
63
|
+
|
|
64
|
+
--8<-- "docs/cmd/_global.md"
|
|
65
|
+
|
|
66
|
+
## Remarks
|
|
67
|
+
|
|
68
|
+
When you specify the value for `percentageComplete`, consider the following:
|
|
69
|
+
|
|
70
|
+
- when set to 0, the task is considered _Not started_
|
|
71
|
+
- when set between 1 and 99, the task is considered _In progress_
|
|
72
|
+
- when set to 100, the task is considered _Completed_
|
|
73
|
+
|
|
74
|
+
You can add up to 6 categories to the task. An example to add _category1_ and _category3_ would be `category1,category3`.
|
|
75
|
+
|
|
76
|
+
## Examples
|
|
77
|
+
|
|
78
|
+
Updates a Microsoft Planner task name to _My Planner Task_ for the task with the ID _Z-RLQGfppU6H3663DBzfs5gAMD3o_
|
|
79
|
+
|
|
80
|
+
```sh
|
|
81
|
+
m365 planner task set --id "Z-RLQGfppU6H3663DBzfs5gAMD3o" --title "My Planner Task"
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Moves a Microsoft Planner task with the ID _Z-RLQGfppU6H3663DBzfs5gAMD3o_ to the bucket named _My Planner Bucket_. Based on the plan with the name _My Planner Plan_ owned by the group _My Planner Group_
|
|
85
|
+
|
|
86
|
+
```sh
|
|
87
|
+
m365 planner task set --id "2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2" --bucketName "My Planner Bucket" --planName "My Planner Plan" --ownerGroupName "My Planner Group"
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Marks a Microsoft Planner task with the ID _Z-RLQGfppU6H3663DBzfs5gAMD3o_ as 50% complete and assigned to categories 1 and 3.
|
|
91
|
+
|
|
92
|
+
```sh
|
|
93
|
+
m365 planner task set --id "2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2" --percentComplete 50 --appliedCategories "category1,category3"
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Additional information
|
|
97
|
+
|
|
98
|
+
- Using order hints in Planner: [https://docs.microsoft.com/graph/api/resources/planner-order-hint-format?view=graph-rest-1.0](https://docs.microsoft.com/graph/api/resources/planner-order-hint-format?view=graph-rest-1.0)
|
|
99
|
+
- Applied categories in Planner: [https://docs.microsoft.com/graph/api/resources/plannerappliedcategories?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/resources/plannerappliedcategories?view=graph-rest-1.0)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# spo group user remove
|
|
2
|
+
|
|
3
|
+
Removes the specified user from a SharePoint group
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo group user remove [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: URL of the site where the SharePoint group is available
|
|
15
|
+
|
|
16
|
+
`--groupId [groupId]`
|
|
17
|
+
: Id of the SharePoint group from which user has to be removed from. Use either `groupName` or `groupId`, but not both
|
|
18
|
+
|
|
19
|
+
`--groupName [groupName]`
|
|
20
|
+
: Name of the SharePoint group from which user has to be removed from. Use either `groupName` or `groupId`, but not both
|
|
21
|
+
|
|
22
|
+
`--userName <userName>`
|
|
23
|
+
: User's UPN (user principal name, eg. megan.bowen@contoso.com).
|
|
24
|
+
|
|
25
|
+
--8<-- "docs/cmd/_global.md"
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
Remove a user from SharePoint group with id _5_ available on the web _https://contoso.sharepoint.com/sites/SiteA_
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 spo group user remove --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --userName "Alex.Wilber@contoso.com"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Remove a user from SharePoint group with Name _Site A Visitors_ available on the web _https://contoso.sharepoint.com/sites/SiteA_
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 spo group user remove --webUrl https://contoso.sharepoint.com/sites/SiteA --groupName "Site A Visitors" --userName "Alex.Wilber@contoso.com"
|
|
39
|
+
```
|
|
@@ -16,7 +16,7 @@ m365 teams channel get [options]
|
|
|
16
16
|
`--teamName [teamName]`
|
|
17
17
|
: The display name of the team to which the channel belongs to. Specify either teamId or teamName but not both
|
|
18
18
|
|
|
19
|
-
`-c, --channelId
|
|
19
|
+
`-c, --channelId [channelId]`
|
|
20
20
|
: The ID of the channel for which to retrieve more information. Specify either channelId or channelName but not both
|
|
21
21
|
|
|
22
22
|
`--channelName [channelName]`
|