@pnp/cli-microsoft365 5.0.0-beta.cdbc898 → 5.0.0-beta.fc638c4
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/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-set.js +357 -0
- package/dist/m365/planner/commands.js +2 -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/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 +47 -0
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +46 -0
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-get.js +54 -0
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +46 -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-set.md +99 -0
- 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 +28 -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
|
@@ -15,6 +15,7 @@ class AadUserListCommand extends GraphItemsListCommand_1.GraphItemsListCommand {
|
|
|
15
15
|
getTelemetryProperties(args) {
|
|
16
16
|
const telemetryProps = super.getTelemetryProperties(args);
|
|
17
17
|
telemetryProps.properties = args.options.properties;
|
|
18
|
+
telemetryProps.deleted = typeof args.options.deleted !== 'undefined';
|
|
18
19
|
return telemetryProps;
|
|
19
20
|
}
|
|
20
21
|
commandAction(logger, args, cb) {
|
|
@@ -22,7 +23,8 @@ class AadUserListCommand extends GraphItemsListCommand_1.GraphItemsListCommand {
|
|
|
22
23
|
args.options.properties.split(',').map(p => p.trim()) :
|
|
23
24
|
['userPrincipalName', 'displayName'];
|
|
24
25
|
const filter = this.getFilter(args.options);
|
|
25
|
-
const
|
|
26
|
+
const endpoint = args.options.deleted ? 'directory/deletedItems/microsoft.graph.user' : 'users';
|
|
27
|
+
const url = `${this.resource}/v1.0/${endpoint}?$select=${properties.join(',')}${(filter.length > 0 ? '&' + filter : '')}&$top=100`;
|
|
26
28
|
this
|
|
27
29
|
.getAllItems(url, logger, true)
|
|
28
30
|
.then(() => {
|
|
@@ -35,6 +37,8 @@ class AadUserListCommand extends GraphItemsListCommand_1.GraphItemsListCommand {
|
|
|
35
37
|
const excludeOptions = [
|
|
36
38
|
'properties',
|
|
37
39
|
'p',
|
|
40
|
+
'deleted',
|
|
41
|
+
'd',
|
|
38
42
|
'debug',
|
|
39
43
|
'verbose',
|
|
40
44
|
'output',
|
|
@@ -55,9 +59,8 @@ class AadUserListCommand extends GraphItemsListCommand_1.GraphItemsListCommand {
|
|
|
55
59
|
}
|
|
56
60
|
options() {
|
|
57
61
|
const options = [
|
|
58
|
-
{
|
|
59
|
-
|
|
60
|
-
}
|
|
62
|
+
{ option: '-p, --properties [properties]' },
|
|
63
|
+
{ option: '-d, --deleted' }
|
|
61
64
|
];
|
|
62
65
|
const parentOptions = super.options();
|
|
63
66
|
return options.concat(parentOptions);
|
|
@@ -29,8 +29,8 @@ class FlowGetCommand extends AzmgmtCommand_1.default {
|
|
|
29
29
|
.then((res) => {
|
|
30
30
|
res.displayName = res.properties.displayName;
|
|
31
31
|
res.description = res.properties.definitionSummary.description || '';
|
|
32
|
-
res.triggers =
|
|
33
|
-
res.actions =
|
|
32
|
+
res.triggers = res.properties.definitionSummary.triggers.map((t) => (t.type + (t.kind ? "-" + t.kind : ''))).join(', ');
|
|
33
|
+
res.actions = res.properties.definitionSummary.actions.map((a) => (a.type + (a.swaggerOperationId ? "-" + a.swaggerOperationId : ''))).join(', ');
|
|
34
34
|
logger.log(res);
|
|
35
35
|
cb();
|
|
36
36
|
}, (rawRes) => this.handleRejectedODataJsonPromise(rawRes, logger, cb));
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const request_1 = require("../../../../request");
|
|
4
|
+
const Utils_1 = require("../../../../Utils");
|
|
5
|
+
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
6
|
+
const commands_1 = require("../../commands");
|
|
7
|
+
class PlannerTaskSetCommand extends GraphCommand_1.default {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.allowedAppliedCategories = ['category1', 'category2', 'category3', 'category4', 'category5', 'category6'];
|
|
11
|
+
}
|
|
12
|
+
get name() {
|
|
13
|
+
return commands_1.default.TASK_SET;
|
|
14
|
+
}
|
|
15
|
+
get description() {
|
|
16
|
+
return 'Updates a Microsoft Planner Task';
|
|
17
|
+
}
|
|
18
|
+
getTelemetryProperties(args) {
|
|
19
|
+
const telemetryProps = super.getTelemetryProperties(args);
|
|
20
|
+
telemetryProps.title = typeof args.options.title !== 'undefined';
|
|
21
|
+
telemetryProps.planId = typeof args.options.planId !== 'undefined';
|
|
22
|
+
telemetryProps.planName = typeof args.options.planName !== 'undefined';
|
|
23
|
+
telemetryProps.ownerGroupId = typeof args.options.ownerGroupId !== 'undefined';
|
|
24
|
+
telemetryProps.ownerGroupName = typeof args.options.ownerGroupName !== 'undefined';
|
|
25
|
+
telemetryProps.bucketId = typeof args.options.bucketId !== 'undefined';
|
|
26
|
+
telemetryProps.bucketName = typeof args.options.bucketName !== 'undefined';
|
|
27
|
+
telemetryProps.startDateTime = typeof args.options.startDateTime !== 'undefined';
|
|
28
|
+
telemetryProps.dueDateTime = typeof args.options.dueDateTime !== 'undefined';
|
|
29
|
+
telemetryProps.percentComplete = typeof args.options.percentComplete !== 'undefined';
|
|
30
|
+
telemetryProps.assignedToUserIds = typeof args.options.assignedToUserIds !== 'undefined';
|
|
31
|
+
telemetryProps.assignedToUserNames = typeof args.options.assignedToUserNames !== 'undefined';
|
|
32
|
+
telemetryProps.assigneePriority = typeof args.options.assigneePriority !== 'undefined';
|
|
33
|
+
telemetryProps.description = typeof args.options.description !== 'undefined';
|
|
34
|
+
telemetryProps.appliedCategories = typeof args.options.appliedCategories !== 'undefined';
|
|
35
|
+
telemetryProps.orderHint = typeof args.options.orderHint !== 'undefined';
|
|
36
|
+
return telemetryProps;
|
|
37
|
+
}
|
|
38
|
+
commandAction(logger, args, cb) {
|
|
39
|
+
this
|
|
40
|
+
.getBucketId(args.options)
|
|
41
|
+
.then(bucketId => {
|
|
42
|
+
this.bucketId = bucketId;
|
|
43
|
+
return this.generateUserAssignments(args.options);
|
|
44
|
+
})
|
|
45
|
+
.then(resultAssignments => {
|
|
46
|
+
this.assignments = resultAssignments;
|
|
47
|
+
return this.getTaskEtag(args.options.id);
|
|
48
|
+
})
|
|
49
|
+
.then(etag => {
|
|
50
|
+
const appliedCategories = this.generateAppliedCategories(args.options);
|
|
51
|
+
const data = this.mapRequestBody(args.options, appliedCategories);
|
|
52
|
+
const requestOptions = {
|
|
53
|
+
url: `${this.resource}/v1.0/planner/tasks/${args.options.id}`,
|
|
54
|
+
headers: {
|
|
55
|
+
'accept': 'application/json;odata.metadata=none',
|
|
56
|
+
'If-Match': etag,
|
|
57
|
+
'Prefer': 'return=representation'
|
|
58
|
+
},
|
|
59
|
+
responseType: 'json',
|
|
60
|
+
data: data
|
|
61
|
+
};
|
|
62
|
+
return request_1.default.patch(requestOptions);
|
|
63
|
+
})
|
|
64
|
+
.then(newTask => this.updateTaskDetails(args.options, newTask))
|
|
65
|
+
.then((res) => {
|
|
66
|
+
logger.log(res);
|
|
67
|
+
cb();
|
|
68
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
69
|
+
}
|
|
70
|
+
updateTaskDetails(options, newTask) {
|
|
71
|
+
if (!options.description) {
|
|
72
|
+
return Promise.resolve(newTask);
|
|
73
|
+
}
|
|
74
|
+
const taskId = newTask.id;
|
|
75
|
+
return this
|
|
76
|
+
.getTaskDetailsEtag(taskId)
|
|
77
|
+
.then(etag => {
|
|
78
|
+
const requestOptionsTaskDetails = {
|
|
79
|
+
url: `${this.resource}/v1.0/planner/tasks/${taskId}/details`,
|
|
80
|
+
headers: {
|
|
81
|
+
'accept': 'application/json;odata.metadata=none',
|
|
82
|
+
'If-Match': etag,
|
|
83
|
+
'Prefer': 'return=representation'
|
|
84
|
+
},
|
|
85
|
+
responseType: 'json',
|
|
86
|
+
data: {
|
|
87
|
+
description: options.description
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
return request_1.default.patch(requestOptionsTaskDetails);
|
|
91
|
+
})
|
|
92
|
+
.then(taskDetails => {
|
|
93
|
+
return Object.assign(Object.assign({}, newTask), taskDetails);
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
getTaskDetailsEtag(taskId) {
|
|
97
|
+
const requestOptions = {
|
|
98
|
+
url: `${this.resource}/v1.0/planner/tasks/${encodeURIComponent(taskId)}/details`,
|
|
99
|
+
headers: {
|
|
100
|
+
accept: 'application/json'
|
|
101
|
+
},
|
|
102
|
+
responseType: 'json'
|
|
103
|
+
};
|
|
104
|
+
return request_1.default
|
|
105
|
+
.get(requestOptions)
|
|
106
|
+
.then((response) => {
|
|
107
|
+
const etag = response ? response['@odata.etag'] : undefined;
|
|
108
|
+
if (!etag) {
|
|
109
|
+
return Promise.reject(`Error fetching task details`);
|
|
110
|
+
}
|
|
111
|
+
return Promise.resolve(etag);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
getTaskEtag(taskId) {
|
|
115
|
+
const requestOptions = {
|
|
116
|
+
url: `${this.resource}/v1.0/planner/tasks/${encodeURIComponent(taskId)}`,
|
|
117
|
+
headers: {
|
|
118
|
+
accept: 'application/json'
|
|
119
|
+
},
|
|
120
|
+
responseType: 'json'
|
|
121
|
+
};
|
|
122
|
+
return request_1.default
|
|
123
|
+
.get(requestOptions)
|
|
124
|
+
.then((response) => {
|
|
125
|
+
const etag = response ? response['@odata.etag'] : undefined;
|
|
126
|
+
if (!etag) {
|
|
127
|
+
return Promise.reject(`Error fetching task`);
|
|
128
|
+
}
|
|
129
|
+
return Promise.resolve(etag);
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
generateAppliedCategories(options) {
|
|
133
|
+
if (!options.appliedCategories) {
|
|
134
|
+
return {};
|
|
135
|
+
}
|
|
136
|
+
const categories = {};
|
|
137
|
+
options.appliedCategories.toLocaleLowerCase().split(',').forEach(x => categories[x] = true);
|
|
138
|
+
return categories;
|
|
139
|
+
}
|
|
140
|
+
generateUserAssignments(options) {
|
|
141
|
+
const assignments = {};
|
|
142
|
+
if (!options.assignedToUserIds && !options.assignedToUserNames) {
|
|
143
|
+
return Promise.resolve(assignments);
|
|
144
|
+
}
|
|
145
|
+
return this
|
|
146
|
+
.getUserIds(options)
|
|
147
|
+
.then((userIds) => {
|
|
148
|
+
userIds.forEach(x => assignments[x] = {
|
|
149
|
+
'@odata.type': '#microsoft.graph.plannerAssignment',
|
|
150
|
+
orderHint: ' !'
|
|
151
|
+
});
|
|
152
|
+
return Promise.resolve(assignments);
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
getUserIds(options) {
|
|
156
|
+
if (options.assignedToUserIds) {
|
|
157
|
+
return Promise.resolve(options.assignedToUserIds.split(',').map(o => o.trim()));
|
|
158
|
+
}
|
|
159
|
+
// Hitting this section means assignedToUserNames won't be undefined
|
|
160
|
+
const userNames = options.assignedToUserNames;
|
|
161
|
+
const userArr = userNames.split(',').map(o => o.trim());
|
|
162
|
+
let userIds = [];
|
|
163
|
+
const promises = userArr.map(user => {
|
|
164
|
+
const requestOptions = {
|
|
165
|
+
url: `${this.resource}/v1.0/users?$filter=userPrincipalName eq '${Utils_1.default.encodeQueryParameter(user)}'&$select=id,userPrincipalName`,
|
|
166
|
+
headers: {
|
|
167
|
+
'accept ': 'application/json;odata.metadata=none'
|
|
168
|
+
},
|
|
169
|
+
responseType: 'json'
|
|
170
|
+
};
|
|
171
|
+
return request_1.default.get(requestOptions);
|
|
172
|
+
});
|
|
173
|
+
return Promise
|
|
174
|
+
.all(promises)
|
|
175
|
+
.then((usersRes) => {
|
|
176
|
+
let userUpns = [];
|
|
177
|
+
userUpns = usersRes.map(res => { var _a; return (_a = res.value[0]) === null || _a === void 0 ? void 0 : _a.userPrincipalName; });
|
|
178
|
+
userIds = usersRes.map(res => { var _a; return (_a = res.value[0]) === null || _a === void 0 ? void 0 : _a.id; });
|
|
179
|
+
// Find the members where no graph response was found
|
|
180
|
+
const invalidUsers = userArr.filter(user => !userUpns.some((upn) => (upn === null || upn === void 0 ? void 0 : upn.toLowerCase()) === user.toLowerCase()));
|
|
181
|
+
if (invalidUsers && invalidUsers.length > 0) {
|
|
182
|
+
return Promise.reject(`Cannot proceed with planner task update. The following users provided are invalid : ${invalidUsers.join(',')}`);
|
|
183
|
+
}
|
|
184
|
+
return Promise.resolve(userIds);
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
getBucketId(options) {
|
|
188
|
+
if (options.bucketId) {
|
|
189
|
+
return Promise.resolve(options.bucketId);
|
|
190
|
+
}
|
|
191
|
+
if (!options.bucketName) {
|
|
192
|
+
return Promise.resolve(undefined);
|
|
193
|
+
}
|
|
194
|
+
return this
|
|
195
|
+
.getPlanId(options)
|
|
196
|
+
.then(planId => {
|
|
197
|
+
const requestOptions = {
|
|
198
|
+
url: `${this.resource}/v1.0/planner/plans/${planId}/buckets?$select=id,name`,
|
|
199
|
+
headers: {
|
|
200
|
+
accept: 'application/json;odata.metadata=none'
|
|
201
|
+
},
|
|
202
|
+
responseType: 'json'
|
|
203
|
+
};
|
|
204
|
+
return request_1.default.get(requestOptions);
|
|
205
|
+
})
|
|
206
|
+
.then((response) => {
|
|
207
|
+
const bucket = response.value.find(val => val.name === options.bucketName);
|
|
208
|
+
if (!bucket) {
|
|
209
|
+
return Promise.reject(`The specified bucket does not exist`);
|
|
210
|
+
}
|
|
211
|
+
return Promise.resolve(bucket.id);
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
getPlanId(options) {
|
|
215
|
+
if (options.planId) {
|
|
216
|
+
return Promise.resolve(options.planId);
|
|
217
|
+
}
|
|
218
|
+
return this
|
|
219
|
+
.getGroupId(options)
|
|
220
|
+
.then((groupId) => {
|
|
221
|
+
const requestOptions = {
|
|
222
|
+
url: `${this.resource}/v1.0/planner/plans?$filter=(owner eq '${groupId}')&$select=id,title`,
|
|
223
|
+
headers: {
|
|
224
|
+
accept: 'application/json;odata.metadata=none'
|
|
225
|
+
},
|
|
226
|
+
responseType: 'json'
|
|
227
|
+
};
|
|
228
|
+
return request_1.default.get(requestOptions);
|
|
229
|
+
})
|
|
230
|
+
.then((response) => {
|
|
231
|
+
const plan = response.value.find(val => val.title === options.planName);
|
|
232
|
+
if (!plan) {
|
|
233
|
+
return Promise.reject(`The specified plan does not exist`);
|
|
234
|
+
}
|
|
235
|
+
return Promise.resolve(plan.id);
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
getGroupId(options) {
|
|
239
|
+
if (options.ownerGroupId) {
|
|
240
|
+
return Promise.resolve(options.ownerGroupId);
|
|
241
|
+
}
|
|
242
|
+
const requestOptions = {
|
|
243
|
+
url: `${this.resource}/v1.0/groups?$filter=displayName eq '${encodeURIComponent(options.ownerGroupName)}'&$select=id`,
|
|
244
|
+
headers: {
|
|
245
|
+
accept: 'application/json;odata.metadata=none'
|
|
246
|
+
},
|
|
247
|
+
responseType: 'json'
|
|
248
|
+
};
|
|
249
|
+
return request_1.default
|
|
250
|
+
.get(requestOptions)
|
|
251
|
+
.then(response => {
|
|
252
|
+
const group = response.value[0];
|
|
253
|
+
if (!group) {
|
|
254
|
+
return Promise.reject(`The specified owner group does not exist`);
|
|
255
|
+
}
|
|
256
|
+
return Promise.resolve(group.id);
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
mapRequestBody(options, appliedCategories) {
|
|
260
|
+
const requestBody = {};
|
|
261
|
+
if (options.title) {
|
|
262
|
+
requestBody.title = options.title;
|
|
263
|
+
}
|
|
264
|
+
if (this.bucketId) {
|
|
265
|
+
requestBody.bucketId = this.bucketId;
|
|
266
|
+
}
|
|
267
|
+
if (options.startDateTime) {
|
|
268
|
+
requestBody.startDateTime = options.startDateTime;
|
|
269
|
+
}
|
|
270
|
+
if (options.dueDateTime) {
|
|
271
|
+
requestBody.dueDateTime = options.dueDateTime;
|
|
272
|
+
}
|
|
273
|
+
if (options.percentComplete) {
|
|
274
|
+
requestBody.percentComplete = options.percentComplete;
|
|
275
|
+
}
|
|
276
|
+
if (this.assignments && Object.keys(this.assignments).length > 0) {
|
|
277
|
+
requestBody.assignments = this.assignments;
|
|
278
|
+
}
|
|
279
|
+
if (options.assigneePriority) {
|
|
280
|
+
requestBody.assigneePriority = options.assigneePriority;
|
|
281
|
+
}
|
|
282
|
+
if (appliedCategories && Object.keys(appliedCategories).length > 0) {
|
|
283
|
+
requestBody.appliedCategories = appliedCategories;
|
|
284
|
+
}
|
|
285
|
+
if (options.orderHint) {
|
|
286
|
+
requestBody.orderHint = options.orderHint;
|
|
287
|
+
}
|
|
288
|
+
return requestBody;
|
|
289
|
+
}
|
|
290
|
+
options() {
|
|
291
|
+
const options = [
|
|
292
|
+
{ option: '-i, --id <id>' },
|
|
293
|
+
{ option: '-t, --title [title]' },
|
|
294
|
+
{ option: '--planId [planId]' },
|
|
295
|
+
{ option: '--planName [planName]' },
|
|
296
|
+
{ option: '--ownerGroupId [ownerGroupId]' },
|
|
297
|
+
{ option: '--ownerGroupName [ownerGroupName]' },
|
|
298
|
+
{ option: '--bucketId [bucketId]' },
|
|
299
|
+
{ option: '--bucketName [bucketName]' },
|
|
300
|
+
{ option: '--startDateTime [startDateTime]' },
|
|
301
|
+
{ option: '--dueDateTime [dueDateTime]' },
|
|
302
|
+
{ option: '--percentComplete [percentComplete]' },
|
|
303
|
+
{ option: '--assignedToUserIds [assignedToUserIds]' },
|
|
304
|
+
{ option: '--assignedToUserNames [assignedToUserNames]' },
|
|
305
|
+
{ option: '--assigneePriority [assigneePriority]' },
|
|
306
|
+
{ option: '--description [description]' },
|
|
307
|
+
{ option: '--appliedCategories [appliedCategories]' },
|
|
308
|
+
{ option: '--orderHint [orderHint]' }
|
|
309
|
+
];
|
|
310
|
+
const parentOptions = super.options();
|
|
311
|
+
return options.concat(parentOptions);
|
|
312
|
+
}
|
|
313
|
+
validate(args) {
|
|
314
|
+
if (args.options.bucketId && args.options.bucketName) {
|
|
315
|
+
return 'Specify either bucketId or bucketName but not both';
|
|
316
|
+
}
|
|
317
|
+
if (args.options.bucketName && !args.options.planId && !args.options.planName) {
|
|
318
|
+
return 'Specify either planId or planName when using bucketName';
|
|
319
|
+
}
|
|
320
|
+
if (args.options.bucketName && args.options.planId && args.options.planName) {
|
|
321
|
+
return 'Specify either planId or planName when using bucketName but not both';
|
|
322
|
+
}
|
|
323
|
+
if (args.options.planName && !args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
324
|
+
return 'Specify either ownerGroupId or ownerGroupName when using planName';
|
|
325
|
+
}
|
|
326
|
+
if (args.options.planName && args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
327
|
+
return 'Specify either ownerGroupId or ownerGroupName when using planName but not both';
|
|
328
|
+
}
|
|
329
|
+
if (args.options.ownerGroupId && !Utils_1.default.isValidGuid(args.options.ownerGroupId)) {
|
|
330
|
+
return `${args.options.ownerGroupId} is not a valid GUID`;
|
|
331
|
+
}
|
|
332
|
+
if (args.options.startDateTime && !Utils_1.default.isValidISODateTime(args.options.startDateTime)) {
|
|
333
|
+
return 'The startDateTime is not a valid ISO date string';
|
|
334
|
+
}
|
|
335
|
+
if (args.options.dueDateTime && !Utils_1.default.isValidISODateTime(args.options.dueDateTime)) {
|
|
336
|
+
return 'The dueDateTime is not a valid ISO date string';
|
|
337
|
+
}
|
|
338
|
+
if (args.options.percentComplete && isNaN(args.options.percentComplete)) {
|
|
339
|
+
return `percentComplete is not a number`;
|
|
340
|
+
}
|
|
341
|
+
if (args.options.percentComplete && (args.options.percentComplete < 0 || args.options.percentComplete > 100)) {
|
|
342
|
+
return `percentComplete should be between 0 and 100`;
|
|
343
|
+
}
|
|
344
|
+
if (args.options.assignedToUserIds && !Utils_1.default.isValidGuidArray(args.options.assignedToUserIds.split(','))) {
|
|
345
|
+
return 'assignedToUserIds contains invalid GUID';
|
|
346
|
+
}
|
|
347
|
+
if (args.options.assignedToUserIds && args.options.assignedToUserNames) {
|
|
348
|
+
return 'Specify either assignedToUserIds or assignedToUserNames but not both';
|
|
349
|
+
}
|
|
350
|
+
if (args.options.appliedCategories && args.options.appliedCategories.split(',').filter(category => this.allowedAppliedCategories.indexOf(category.toLocaleLowerCase()) < 0).length !== 0) {
|
|
351
|
+
return 'The appliedCategories contains invalid value. Specify either category1, category2, category3, category4, category5 and/or category6 as properties';
|
|
352
|
+
}
|
|
353
|
+
return true;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
module.exports = new PlannerTaskSetCommand();
|
|
357
|
+
//# sourceMappingURL=task-set.js.map
|
|
@@ -8,6 +8,7 @@ exports.default = {
|
|
|
8
8
|
PLAN_GET: `${prefix} plan get`,
|
|
9
9
|
PLAN_LIST: `${prefix} plan list`,
|
|
10
10
|
TASK_ADD: `${prefix} task add`,
|
|
11
|
-
TASK_LIST: `${prefix} task list
|
|
11
|
+
TASK_LIST: `${prefix} task list`,
|
|
12
|
+
TASK_SET: `${prefix} task set`
|
|
12
13
|
};
|
|
13
14
|
//# sourceMappingURL=commands.js.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FN014008_CODE_launch_hostedWorkbench_type = void 0;
|
|
4
|
+
const path = require("path");
|
|
5
|
+
const JsonRule_1 = require("./JsonRule");
|
|
6
|
+
class FN014008_CODE_launch_hostedWorkbench_type extends JsonRule_1.JsonRule {
|
|
7
|
+
constructor(type) {
|
|
8
|
+
super();
|
|
9
|
+
this.type = type;
|
|
10
|
+
}
|
|
11
|
+
get id() {
|
|
12
|
+
return 'FN014008';
|
|
13
|
+
}
|
|
14
|
+
get title() {
|
|
15
|
+
return 'Hosted workbench type in .vscode/launch.json';
|
|
16
|
+
}
|
|
17
|
+
get description() {
|
|
18
|
+
return `In the .vscode/launch.json file, update the type property for the hosted workbench launch configuration`;
|
|
19
|
+
}
|
|
20
|
+
get resolution() {
|
|
21
|
+
return `{
|
|
22
|
+
"configurations": [
|
|
23
|
+
{
|
|
24
|
+
"type": "${this.type}"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}`;
|
|
28
|
+
}
|
|
29
|
+
get resolutionType() {
|
|
30
|
+
return 'json';
|
|
31
|
+
}
|
|
32
|
+
get severity() {
|
|
33
|
+
return 'Recommended';
|
|
34
|
+
}
|
|
35
|
+
get file() {
|
|
36
|
+
return '.vscode/launch.json';
|
|
37
|
+
}
|
|
38
|
+
visit(project, findings) {
|
|
39
|
+
if (!project.vsCode ||
|
|
40
|
+
!project.vsCode.launchJson ||
|
|
41
|
+
!project.vsCode.launchJson.configurations) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const occurrences = [];
|
|
45
|
+
project.vsCode.launchJson.configurations.forEach((configuration, i) => {
|
|
46
|
+
if (configuration.name === 'Hosted workbench' &&
|
|
47
|
+
configuration.type !== this.type) {
|
|
48
|
+
const node = this.getAstNodeFromFile(project.vsCode.launchJson, `configurations[${i}].url`);
|
|
49
|
+
occurrences.push({
|
|
50
|
+
file: path.relative(project.path, this.file),
|
|
51
|
+
resolution: this.resolution,
|
|
52
|
+
position: this.getPositionFromNode(node)
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
if (occurrences.length > 0) {
|
|
57
|
+
this.addFindingWithOccurrences(occurrences, findings);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.FN014008_CODE_launch_hostedWorkbench_type = FN014008_CODE_launch_hostedWorkbench_type;
|
|
62
|
+
//# sourceMappingURL=FN014008_CODE_launch_hostedWorkbench_type.js.map
|
|
@@ -26,32 +26,34 @@ const FN006004_CFG_PS_developer_1 = require("./rules/FN006004_CFG_PS_developer")
|
|
|
26
26
|
const FN006005_CFG_PS_metadata_1 = require("./rules/FN006005_CFG_PS_metadata");
|
|
27
27
|
const FN006006_CFG_PS_features_1 = require("./rules/FN006006_CFG_PS_features");
|
|
28
28
|
const FN010001_YORC_version_1 = require("./rules/FN010001_YORC_version");
|
|
29
|
+
const FN014008_CODE_launch_hostedWorkbench_type_1 = require("./rules/FN014008_CODE_launch_hostedWorkbench_type");
|
|
29
30
|
module.exports = [
|
|
30
|
-
new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.14.0-beta.
|
|
31
|
-
new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.14.0-beta.
|
|
32
|
-
new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.14.0-beta.
|
|
33
|
-
new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.14.0-beta.
|
|
34
|
-
new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.14.0-beta.
|
|
35
|
-
new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.14.0-beta.
|
|
36
|
-
new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.14.0-beta.
|
|
37
|
-
new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.14.0-beta.
|
|
38
|
-
new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.14.0-beta.
|
|
39
|
-
new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.14.0-beta.
|
|
40
|
-
new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.14.0-beta.
|
|
41
|
-
new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.14.0-beta.
|
|
42
|
-
new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.14.0-beta.
|
|
43
|
-
new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.14.0-beta.
|
|
44
|
-
new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.14.0-beta.
|
|
45
|
-
new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.14.0-beta.
|
|
46
|
-
new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.14.0-beta.
|
|
47
|
-
new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.14.0-beta.
|
|
48
|
-
new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.14.0-beta.
|
|
49
|
-
new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.14.0-beta.
|
|
50
|
-
new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.14.0-beta.
|
|
51
|
-
new FN002009_DEVDEP_microsoft_sp_tslint_rules_1.FN002009_DEVDEP_microsoft_sp_tslint_rules('1.14.0-beta.
|
|
52
|
-
new FN006004_CFG_PS_developer_1.FN006004_CFG_PS_developer('1.14.0-beta.
|
|
31
|
+
new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.14.0-beta.5'),
|
|
32
|
+
new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.14.0-beta.5'),
|
|
33
|
+
new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.14.0-beta.5'),
|
|
34
|
+
new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.14.0-beta.5'),
|
|
35
|
+
new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.14.0-beta.5'),
|
|
36
|
+
new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.14.0-beta.5'),
|
|
37
|
+
new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.14.0-beta.5'),
|
|
38
|
+
new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.14.0-beta.5'),
|
|
39
|
+
new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.14.0-beta.5'),
|
|
40
|
+
new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.14.0-beta.5'),
|
|
41
|
+
new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.14.0-beta.5'),
|
|
42
|
+
new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.14.0-beta.5'),
|
|
43
|
+
new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.14.0-beta.5'),
|
|
44
|
+
new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.14.0-beta.5'),
|
|
45
|
+
new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.14.0-beta.5'),
|
|
46
|
+
new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.14.0-beta.5'),
|
|
47
|
+
new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.14.0-beta.5'),
|
|
48
|
+
new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.14.0-beta.5'),
|
|
49
|
+
new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.14.0-beta.5'),
|
|
50
|
+
new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.14.0-beta.5'),
|
|
51
|
+
new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.14.0-beta.5'),
|
|
52
|
+
new FN002009_DEVDEP_microsoft_sp_tslint_rules_1.FN002009_DEVDEP_microsoft_sp_tslint_rules('1.14.0-beta.5'),
|
|
53
|
+
new FN006004_CFG_PS_developer_1.FN006004_CFG_PS_developer('1.14.0-beta.5'),
|
|
53
54
|
new FN006005_CFG_PS_metadata_1.FN006005_CFG_PS_metadata(),
|
|
54
55
|
new FN006006_CFG_PS_features_1.FN006006_CFG_PS_features(),
|
|
55
|
-
new FN010001_YORC_version_1.FN010001_YORC_version('1.14.0-beta.
|
|
56
|
+
new FN010001_YORC_version_1.FN010001_YORC_version('1.14.0-beta.5'),
|
|
57
|
+
new FN014008_CODE_launch_hostedWorkbench_type_1.FN014008_CODE_launch_hostedWorkbench_type('pwa-chrome')
|
|
56
58
|
];
|
|
57
|
-
//# sourceMappingURL=upgrade-1.14.0-beta.
|
|
59
|
+
//# sourceMappingURL=upgrade-1.14.0-beta.5.js.map
|
|
@@ -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,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,47 @@
|
|
|
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 the tenant';
|
|
12
|
+
}
|
|
13
|
+
defaultProperties() {
|
|
14
|
+
return ['id', 'title'];
|
|
15
|
+
}
|
|
16
|
+
getTelemetryProperties(args) {
|
|
17
|
+
const telemetryProps = super.getTelemetryProperties(args);
|
|
18
|
+
telemetryProps.issueId = typeof args.options.issueId !== 'undefined';
|
|
19
|
+
return telemetryProps;
|
|
20
|
+
}
|
|
21
|
+
commandAction(logger, args, cb) {
|
|
22
|
+
const requestOptions = {
|
|
23
|
+
url: `${this.resource}/v1.0/admin/serviceAnnouncement/issues/${encodeURIComponent(args.options.issueId)}`,
|
|
24
|
+
headers: {
|
|
25
|
+
accept: 'application/json;odata.metadata=none'
|
|
26
|
+
},
|
|
27
|
+
responseType: 'json'
|
|
28
|
+
};
|
|
29
|
+
request_1.default
|
|
30
|
+
.get(requestOptions)
|
|
31
|
+
.then((res) => {
|
|
32
|
+
logger.log(res);
|
|
33
|
+
cb();
|
|
34
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
35
|
+
}
|
|
36
|
+
options() {
|
|
37
|
+
const options = [
|
|
38
|
+
{
|
|
39
|
+
option: '-i, --issueId <issueId>'
|
|
40
|
+
}
|
|
41
|
+
];
|
|
42
|
+
const parentOptions = super.options();
|
|
43
|
+
return options.concat(parentOptions);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
module.exports = new TenantServiceAnnouncementHealthissueGetCommand();
|
|
47
|
+
//# sourceMappingURL=serviceannouncement-healthissue-get.js.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const request_1 = require("../../../../request");
|
|
4
|
+
const GraphItemsListCommand_1 = require("../../../base/GraphItemsListCommand");
|
|
5
|
+
const commands_1 = require("../../commands");
|
|
6
|
+
class TenantServiceAnnouncementHealthissueListCommand extends GraphItemsListCommand_1.GraphItemsListCommand {
|
|
7
|
+
get name() {
|
|
8
|
+
return commands_1.default.SERVICEANNOUNCEMENT_HEALTHISSUE_LIST;
|
|
9
|
+
}
|
|
10
|
+
get description() {
|
|
11
|
+
return 'Gets all service health issues for the tenant';
|
|
12
|
+
}
|
|
13
|
+
defaultProperties() {
|
|
14
|
+
return ['id', 'title'];
|
|
15
|
+
}
|
|
16
|
+
commandAction(logger, args, cb) {
|
|
17
|
+
let endpoint = `${this.resource}/v1.0/admin/serviceAnnouncement/issues`;
|
|
18
|
+
if (args.options.service) {
|
|
19
|
+
endpoint += `?$filter=service eq '${encodeURIComponent(args.options.service)}'`;
|
|
20
|
+
}
|
|
21
|
+
const requestOptions = {
|
|
22
|
+
url: endpoint,
|
|
23
|
+
headers: {
|
|
24
|
+
accept: 'application/json;odata.metadata=none'
|
|
25
|
+
},
|
|
26
|
+
responseType: 'json'
|
|
27
|
+
};
|
|
28
|
+
request_1.default
|
|
29
|
+
.get(requestOptions)
|
|
30
|
+
.then((res) => {
|
|
31
|
+
logger.log(res.value);
|
|
32
|
+
cb();
|
|
33
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
34
|
+
}
|
|
35
|
+
options() {
|
|
36
|
+
const options = [
|
|
37
|
+
{
|
|
38
|
+
option: '-s, --service [service] '
|
|
39
|
+
}
|
|
40
|
+
];
|
|
41
|
+
const parentOptions = super.options();
|
|
42
|
+
return options.concat(parentOptions);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
module.exports = new TenantServiceAnnouncementHealthissueListCommand();
|
|
46
|
+
//# sourceMappingURL=serviceannouncement-healthissue-list.js.map
|
|
@@ -0,0 +1,54 @@
|
|
|
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 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
|
+
defaultProperties() {
|
|
14
|
+
return ['startDateTime', 'endDateTime', 'lastModifiedDateTime', 'title', 'id', 'category', 'severity', 'tags', 'isMajorChange', 'actionRequiredByDateTime', 'services', 'expiryDateTime', 'hasAttachments', 'viewPoint'];
|
|
15
|
+
}
|
|
16
|
+
commandAction(logger, args, cb) {
|
|
17
|
+
if (this.verbose) {
|
|
18
|
+
logger.logToStderr(`Retrieving service update message ${args.id}`);
|
|
19
|
+
}
|
|
20
|
+
const requestOptions = {
|
|
21
|
+
url: `${this.resource}/v1.0/admin/serviceAnnouncement/messages/${args.options.id}`,
|
|
22
|
+
headers: {
|
|
23
|
+
accept: 'application/json;odata.metadata=none'
|
|
24
|
+
},
|
|
25
|
+
responseType: 'json'
|
|
26
|
+
};
|
|
27
|
+
request_1.default
|
|
28
|
+
.get(requestOptions)
|
|
29
|
+
.then((res) => {
|
|
30
|
+
logger.log(res);
|
|
31
|
+
cb();
|
|
32
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
33
|
+
}
|
|
34
|
+
options() {
|
|
35
|
+
const options = [
|
|
36
|
+
{
|
|
37
|
+
option: '-i, --id [id]'
|
|
38
|
+
}
|
|
39
|
+
];
|
|
40
|
+
const parentOptions = super.options();
|
|
41
|
+
return options.concat(parentOptions);
|
|
42
|
+
}
|
|
43
|
+
isValidId(id) {
|
|
44
|
+
return (/MC\d{6}/).test(id);
|
|
45
|
+
}
|
|
46
|
+
validate(args) {
|
|
47
|
+
if (!this.isValidId(args.options.id)) {
|
|
48
|
+
return `${args.options.id} is not a valid message ID`;
|
|
49
|
+
}
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
module.exports = new TenantServiceAnnouncementMessageGetCommand();
|
|
54
|
+
//# sourceMappingURL=serviceannouncement-message-get.js.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const request_1 = require("../../../../request");
|
|
4
|
+
const GraphItemsListCommand_1 = require("../../../base/GraphItemsListCommand");
|
|
5
|
+
const commands_1 = require("../../commands");
|
|
6
|
+
class TenantServiceAnnouncementMessageListCommand extends GraphItemsListCommand_1.GraphItemsListCommand {
|
|
7
|
+
get name() {
|
|
8
|
+
return commands_1.default.SERVICEANNOUNCEMENT_MESSAGE_LIST;
|
|
9
|
+
}
|
|
10
|
+
get description() {
|
|
11
|
+
return 'Gets all service update messages for the tenant';
|
|
12
|
+
}
|
|
13
|
+
defaultProperties() {
|
|
14
|
+
return ['id', 'title'];
|
|
15
|
+
}
|
|
16
|
+
commandAction(logger, args, cb) {
|
|
17
|
+
let endpoint = `${this.resource}/v1.0/admin/serviceAnnouncement/messages`;
|
|
18
|
+
if (args.options.service) {
|
|
19
|
+
endpoint += `?$filter=services/any(c:c+eq+'${encodeURIComponent(args.options.service)}')`;
|
|
20
|
+
}
|
|
21
|
+
const requestOptions = {
|
|
22
|
+
url: endpoint,
|
|
23
|
+
headers: {
|
|
24
|
+
accept: 'application/json;odata.metadata=none'
|
|
25
|
+
},
|
|
26
|
+
responseType: 'json'
|
|
27
|
+
};
|
|
28
|
+
request_1.default
|
|
29
|
+
.get(requestOptions)
|
|
30
|
+
.then((res) => {
|
|
31
|
+
logger.log(res.value);
|
|
32
|
+
cb();
|
|
33
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
34
|
+
}
|
|
35
|
+
options() {
|
|
36
|
+
const options = [
|
|
37
|
+
{
|
|
38
|
+
option: '-s, --service [service] '
|
|
39
|
+
}
|
|
40
|
+
];
|
|
41
|
+
const parentOptions = super.options();
|
|
42
|
+
return options.concat(parentOptions);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
module.exports = new TenantServiceAnnouncementMessageListCommand();
|
|
46
|
+
//# 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,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,33 @@
|
|
|
1
|
+
# tenant service announcement health get
|
|
2
|
+
|
|
3
|
+
Get the health report of a specified service for a tenant
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 tenant serviceannouncement health get [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-s, --serviceName <serviceName>`
|
|
14
|
+
: The service name to retrieve the health report for.
|
|
15
|
+
|
|
16
|
+
`-i, --issues`
|
|
17
|
+
: Return the collection of issues that happened on the service, with detailed information for each issue. Is only returned in JSON output mode.
|
|
18
|
+
|
|
19
|
+
--8<-- "docs/cmd/\_global.md"
|
|
20
|
+
|
|
21
|
+
## Examples
|
|
22
|
+
|
|
23
|
+
Get the health report for the service _Exchange Online_
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
m365 tenant serviceannouncement health get --serviceName "Exchange Online"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Get the health report for the service _Exchange Online_ including the issues of the service
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 tenant serviceannouncement health get --serviceName "Exchange Online" --issues
|
|
33
|
+
```
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# tenant service announcement health list
|
|
2
|
+
|
|
3
|
+
Gets the health report of all subscribed services for a tenant
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 tenant serviceannouncement health list [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-i, --issues`
|
|
14
|
+
: Return the collection of issues that happened on the service, with detailed information for each issue. Is only returned in JSON output mode.
|
|
15
|
+
|
|
16
|
+
--8<-- "docs/cmd/_global.md"
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
|
|
20
|
+
Get the health report of all subscribed services for a tenant
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
m365 tenant serviceannouncement health list
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Get the health report of all subscribed services for a tenant including the issues that happend on each service
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
m365 tenant serviceannouncement health list --issues
|
|
30
|
+
```
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# tenant serviceannouncement healthissue get
|
|
2
|
+
|
|
3
|
+
Gets a specified service health issue for the tenant.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 tenant serviceannouncement healthissue get [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-i, --issueId <issueId>`
|
|
14
|
+
: The issue id to get details for
|
|
15
|
+
|
|
16
|
+
--8<-- "docs/cmd/\_global.md"
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
|
|
20
|
+
Get specified service health issue for tenant with issueId _MO226784_
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
m365 tenant serviceannouncement healthissue get --issueId MO226784
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## More information
|
|
27
|
+
|
|
28
|
+
- Get serviceHealthIssue: [https://docs.microsoft.com/en-us/graph/api/servicehealthissue-get](https://docs.microsoft.com/en-us/graph/api/servicehealthissue-get)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# tenant serviceannouncement healthissue list
|
|
2
|
+
|
|
3
|
+
Gets all service health issues for the tenant.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 tenant serviceannouncement healthissue list [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-s, --service [service]`
|
|
14
|
+
: Retrieve service health issues for the particular service. If not provided, retrieves health issues for all services
|
|
15
|
+
|
|
16
|
+
--8<-- "docs/cmd/\_global.md"
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
|
|
20
|
+
Get service health issues of all services in Microsoft 365
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
m365 tenant serviceannouncement healthissue list
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Get service health issues for Microsoft Forms
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
m365 tenant serviceannouncement healthissue list --service "Microsoft Forms"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## More information
|
|
33
|
+
|
|
34
|
+
- List serviceAnnouncement issues: [https://docs.microsoft.com/en-us/graph/api/serviceannouncement-list-issues](https://docs.microsoft.com/en-us/graph/api/serviceannouncement-list-issues)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# tenant serviceannouncement message get
|
|
2
|
+
|
|
3
|
+
Retrieves a specified service update message for the tenant
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 tenant serviceannouncement message get [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-i, --id <id>`
|
|
14
|
+
: The ID of the service update message.
|
|
15
|
+
|
|
16
|
+
--8<-- "docs/cmd/_global.md"
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
|
|
20
|
+
Get service update message with ID MC001337
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
m365 tenant serviceannouncement message get --id MC001337
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## More information
|
|
27
|
+
|
|
28
|
+
- Microsoft Graph REST API reference: [https://docs.microsoft.com/en-us/graph/api/serviceupdatemessage-get](https://docs.microsoft.com/en-us/graph/api/serviceupdatemessage-get)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# tenant serviceannouncement message list
|
|
2
|
+
|
|
3
|
+
Gets all service update messages for the tenant.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 tenant serviceannouncement message list [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-s, --service [service]`
|
|
14
|
+
: Retrieve service update messages for the particular service. If not provided, retrieves messages for all services
|
|
15
|
+
|
|
16
|
+
--8<-- "docs/cmd/\_global.md"
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
|
|
20
|
+
Get service update messages of all services in Microsoft 365
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
m365 tenant serviceannouncement message list
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Get service update messages for Microsoft Teams
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
m365 tenant serviceannouncement message list --service "Microsoft Teams"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## More information
|
|
33
|
+
|
|
34
|
+
- List serviceAnnouncement messages: [https://docs.microsoft.com/en-us/graph/api/serviceannouncement-list-messages](https://docs.microsoft.com/en-us/graph/api/serviceannouncement-list-messages)
|
package/package.json
CHANGED