@pnp/cli-microsoft365 5.4.0-beta.d01ee78 → 5.4.0-beta.d09de0f
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/.devcontainer/Dockerfile +1 -1
- package/.eslintrc.js +1 -0
- package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +4 -19
- package/dist/m365/aad/commands/o365group/o365group-get.js +3 -9
- package/dist/m365/base/PlannerCommand.js +10 -0
- package/dist/m365/planner/commands/bucket/bucket-add.js +4 -16
- package/dist/m365/planner/commands/bucket/bucket-get.js +4 -18
- package/dist/m365/planner/commands/bucket/bucket-list.js +4 -17
- package/dist/m365/planner/commands/bucket/bucket-remove.js +4 -18
- package/dist/m365/planner/commands/bucket/bucket-set.js +4 -18
- package/dist/m365/planner/commands/plan/plan-add.js +4 -16
- package/dist/m365/planner/commands/plan/plan-details-get.js +4 -19
- package/dist/m365/planner/commands/plan/plan-get.js +4 -17
- package/dist/m365/planner/commands/plan/plan-list.js +4 -17
- package/dist/m365/planner/commands/task/task-add.js +4 -16
- package/dist/m365/planner/commands/task/task-checklistitem-add.js +89 -0
- package/dist/m365/planner/commands/task/task-get.js +40 -29
- package/dist/m365/planner/commands/task/task-list.js +4 -16
- package/dist/m365/planner/commands/task/task-remove.js +201 -0
- package/dist/m365/planner/commands/task/task-set.js +4 -16
- package/dist/m365/planner/commands/tenant/tenant-settings-list.js +33 -0
- package/dist/m365/planner/commands.js +5 -2
- package/dist/m365/spo/commands/contenttype/contenttype-add.js +1 -1
- package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +1 -1
- package/dist/m365/spo/commands/contenttype/contenttype-get.js +1 -1
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +3 -3
- package/dist/m365/spo/commands/field/field-add.js +1 -1
- package/dist/m365/spo/commands/field/field-get.js +5 -5
- package/dist/m365/spo/commands/field/field-list.js +3 -3
- package/dist/m365/spo/commands/field/field-remove.js +5 -5
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +1 -1
- package/dist/m365/spo/commands/list/list-contenttype-add.js +3 -3
- package/dist/m365/spo/commands/list/list-contenttype-default-set.js +2 -2
- package/dist/m365/spo/commands/list/list-contenttype-list.js +3 -3
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +3 -3
- package/dist/m365/spo/commands/list/list-get.js +2 -2
- package/dist/m365/spo/commands/list/list-label-get.js +3 -3
- package/dist/m365/spo/commands/list/list-label-set.js +2 -2
- package/dist/m365/spo/commands/list/list-remove.js +2 -2
- package/dist/m365/spo/commands/list/list-roleinheritance-break.js +2 -2
- package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +2 -2
- package/dist/m365/spo/commands/list/list-sitescript-get.js +3 -3
- package/dist/m365/spo/commands/list/list-view-add.js +3 -3
- package/dist/m365/spo/commands/list/list-view-field-add.js +2 -2
- package/dist/m365/spo/commands/list/list-view-field-remove.js +2 -2
- package/dist/m365/spo/commands/list/list-view-field-set.js +2 -2
- package/dist/m365/spo/commands/list/list-view-get.js +4 -4
- package/dist/m365/spo/commands/list/list-view-list.js +3 -3
- package/dist/m365/spo/commands/list/list-view-remove.js +3 -3
- package/dist/m365/spo/commands/list/list-view-set.js +3 -3
- package/dist/m365/spo/commands/list/list-webhook-add.js +3 -3
- package/dist/m365/spo/commands/list/list-webhook-get.js +3 -3
- package/dist/m365/spo/commands/list/list-webhook-list.js +5 -5
- package/dist/m365/spo/commands/list/list-webhook-remove.js +4 -4
- package/dist/m365/spo/commands/list/list-webhook-set.js +3 -3
- package/dist/m365/spo/commands/listitem/listitem-add.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-get.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-isrecord.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-list.js +31 -11
- package/dist/m365/spo/commands/listitem/listitem-record-declare.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-remove.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-set.js +2 -2
- package/dist/m365/spo/commands/roledefinition/roledefinition-remove.js +82 -0
- package/dist/m365/spo/commands/site/site-remove.js +23 -37
- package/dist/m365/spo/commands.js +1 -0
- package/dist/m365/teams/commands/app/app-list.js +6 -20
- package/dist/m365/teams/commands/channel/channel-get.js +6 -19
- package/dist/m365/teams/commands/channel/channel-list.js +6 -18
- package/dist/m365/teams/commands/channel/channel-member-add.js +7 -18
- package/dist/m365/teams/commands/channel/channel-member-list.js +6 -19
- package/dist/m365/teams/commands/channel/channel-member-remove.js +6 -19
- package/dist/m365/teams/commands/channel/channel-member-set.js +6 -19
- package/dist/m365/teams/commands/tab/tab-get.js +6 -19
- package/dist/m365/teams/commands/team/team-add.js +2 -7
- package/dist/m365/teams/commands/team/team-get.js +6 -19
- package/dist/utils/aadGroup.js +57 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/validation.js +12 -2
- package/docs/docs/cmd/planner/bucket/bucket-set.md +4 -4
- package/docs/docs/cmd/planner/plan/plan-details-get.md +2 -2
- package/docs/docs/cmd/planner/plan/plan-get.md +4 -4
- package/docs/docs/cmd/planner/task/task-checklistitem-add.md +36 -0
- package/docs/docs/cmd/planner/task/task-get.md +3 -0
- package/docs/docs/cmd/planner/task/task-remove.md +78 -0
- package/docs/docs/cmd/planner/task/task-set.md +2 -2
- package/docs/docs/cmd/planner/tenant/tenant-settings-list.md +28 -0
- package/docs/docs/cmd/spo/file/file-checkout.md +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-list.md +16 -10
- package/docs/docs/cmd/spo/roledefinition/roledefinition-remove.md +36 -0
- package/package.json +12 -7
- package/dist/m365/planner/commands/task/task-details-get.js +0 -45
- package/docs/docs/cmd/planner/task/task-details-get.md +0 -24
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.aadGroup = void 0;
|
|
13
|
+
const request_1 = require("../request");
|
|
14
|
+
const odata_1 = require("./odata");
|
|
15
|
+
const graphResource = 'https://graph.microsoft.com';
|
|
16
|
+
exports.aadGroup = {
|
|
17
|
+
/**
|
|
18
|
+
* Retrieve a single group.
|
|
19
|
+
* @param id Group ID.
|
|
20
|
+
*/
|
|
21
|
+
getGroupById(id) {
|
|
22
|
+
const requestOptions = {
|
|
23
|
+
url: `${graphResource}/v1.0/groups/${id}`,
|
|
24
|
+
headers: {
|
|
25
|
+
accept: 'application/json;odata.metadata=none'
|
|
26
|
+
},
|
|
27
|
+
responseType: 'json'
|
|
28
|
+
};
|
|
29
|
+
return request_1.default.get(requestOptions);
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* Get a list of groups by display name.
|
|
33
|
+
* @param displayName Group display name.
|
|
34
|
+
*/
|
|
35
|
+
getGroupsByDisplayName(displayName) {
|
|
36
|
+
return odata_1.odata.getAllItems(`${graphResource}/v1.0/groups?$filter=displayName eq '${encodeURIComponent(displayName)}'`);
|
|
37
|
+
},
|
|
38
|
+
/**
|
|
39
|
+
* Get a single group by its display name.
|
|
40
|
+
* @param displayName Group display name.
|
|
41
|
+
* @throws Error when group was not found.
|
|
42
|
+
* @throws Error when multiple groups with the same name were found.
|
|
43
|
+
*/
|
|
44
|
+
getGroupByDisplayName(displayName) {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
const groups = yield this.getGroupsByDisplayName(displayName);
|
|
47
|
+
if (!groups.length) {
|
|
48
|
+
throw Error(`The specified group '${displayName}' does not exist.`);
|
|
49
|
+
}
|
|
50
|
+
if (groups.length > 1) {
|
|
51
|
+
throw Error(`Multiple groups with name '${displayName}' found: ${groups.map(x => x.id).join(',')}.`);
|
|
52
|
+
}
|
|
53
|
+
return groups[0];
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=aadGroup.js.map
|
package/dist/utils/index.js
CHANGED
|
@@ -14,12 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./aadGroup"), exports);
|
|
17
18
|
__exportStar(require("./accessToken"), exports);
|
|
18
19
|
__exportStar(require("./formatting"), exports);
|
|
19
20
|
__exportStar(require("./fsUtil"), exports);
|
|
20
21
|
__exportStar(require("./md"), exports);
|
|
21
22
|
__exportStar(require("./odata"), exports);
|
|
22
23
|
__exportStar(require("./packageManager"), exports);
|
|
24
|
+
__exportStar(require("./planner"), exports);
|
|
23
25
|
__exportStar(require("./sinonUtil"), exports);
|
|
24
26
|
__exportStar(require("./spfx"), exports);
|
|
25
27
|
__exportStar(require("./spo"), exports);
|
package/dist/utils/validation.js
CHANGED
|
@@ -37,22 +37,32 @@ exports.validation = {
|
|
|
37
37
|
return dateTimeRegEx.test(date) ? true : dateOnlyRegEx.test(date);
|
|
38
38
|
},
|
|
39
39
|
isValidISODateTime(dateTime) {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
// Format: 2000-01-01T00:00:00.0000000Z
|
|
41
|
+
const withMilliSecsLongPattern = new RegExp(/^[0-9]{4}-((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01])|(0[469]|11)-(0[1-9]|[12][0-9]|30)|(02)-(0[1-9]|[12][0-9]))T(0[0-9]|1[0-9]|2[0-3]):(0[0-9]|[1-5][0-9]):(0[0-9]|[1-5][0-9])\.[0-9]{7}Z$/);
|
|
42
|
+
if (withMilliSecsLongPattern.test(dateTime)) {
|
|
42
43
|
return true;
|
|
43
44
|
}
|
|
45
|
+
// Format: 2000-01-01T00:00:00.000Z
|
|
46
|
+
const withMilliSecsShortPattern = new RegExp(/^[0-9]{4}-((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01])|(0[469]|11)-(0[1-9]|[12][0-9]|30)|(02)-(0[1-9]|[12][0-9]))T(0[0-9]|1[0-9]|2[0-3]):(0[0-9]|[1-5][0-9]):(0[0-9]|[1-5][0-9])\.[0-9]{3}Z$/);
|
|
47
|
+
if (withMilliSecsShortPattern.test(dateTime)) {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
// Format: 2000-01-01T00:00:00Z
|
|
44
51
|
const withSecsPattern = new RegExp(/^[0-9]{4}-((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01])|(0[469]|11)-(0[1-9]|[12][0-9]|30)|(02)-(0[1-9]|[12][0-9]))T(0[0-9]|1[0-9]|2[0-3]):(0[0-9]|[1-5][0-9]):(0[0-9]|[1-5][0-9])Z$/);
|
|
45
52
|
if (withSecsPattern.test(dateTime)) {
|
|
46
53
|
return true;
|
|
47
54
|
}
|
|
55
|
+
// Format: 2000-01-01T00:00Z
|
|
48
56
|
const withMinutesPattern = new RegExp(/^[0-9]{4}-((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01])|(0[469]|11)-(0[1-9]|[12][0-9]|30)|(02)-(0[1-9]|[12][0-9]))T(0[0-9]|1[0-9]|2[0-3]):(0[0-9]|[1-5][0-9])Z$/);
|
|
49
57
|
if (withMinutesPattern.test(dateTime)) {
|
|
50
58
|
return true;
|
|
51
59
|
}
|
|
60
|
+
// Format: 2000-01-01T00Z
|
|
52
61
|
const withHoursPattern = new RegExp(/^[0-9]{4}-((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01])|(0[469]|11)-(0[1-9]|[12][0-9]|30)|(02)-(0[1-9]|[12][0-9]))T(0[0-9]|1[0-9]|2[0-3])Z$/);
|
|
53
62
|
if (withHoursPattern.test(dateTime)) {
|
|
54
63
|
return true;
|
|
55
64
|
}
|
|
65
|
+
// Format: 2000-01-01
|
|
56
66
|
const withoutTimePattern = new RegExp(/^[0-9]{4}-((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01])|(0[469]|11)-(0[1-9]|[12][0-9]|30)|(02)-(0[1-9]|[12][0-9]))$/);
|
|
57
67
|
if (withoutTimePattern.test(dateTime)) {
|
|
58
68
|
return true;
|
|
@@ -17,16 +17,16 @@ m365 planner bucket set [options]
|
|
|
17
17
|
: Name of the bucket. Specify either `id` or `name` but not both.
|
|
18
18
|
|
|
19
19
|
`--planId [planId]`
|
|
20
|
-
: ID of the plan to update the bucket of.
|
|
20
|
+
: ID of the plan to update the bucket of. Specify either `planId` or `planName` when using `name`.
|
|
21
21
|
|
|
22
22
|
`--planName [planName]`
|
|
23
|
-
: Name of the plan to update the bucket of.
|
|
23
|
+
: Name of the plan to update the bucket of. Specify either `planId` or `planName` when using `name`. Always use in combination with either `ownerGroupId` or `ownerGroupName`.
|
|
24
24
|
|
|
25
25
|
`--ownerGroupId [ownerGroupId]`
|
|
26
|
-
: ID of the group to which the plan belongs.
|
|
26
|
+
: ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planName`.
|
|
27
27
|
|
|
28
28
|
`--ownerGroupName [ownerGroupName]`
|
|
29
|
-
: Name of the group to which the plan belongs.
|
|
29
|
+
: Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planName`.
|
|
30
30
|
|
|
31
31
|
`--newName [newName]`
|
|
32
32
|
: New name of the bucket.
|
|
@@ -17,10 +17,10 @@ m365 planner plan details get [options]
|
|
|
17
17
|
: Title of the plan. Specify either `planId` or `planTitle` but not both.
|
|
18
18
|
|
|
19
19
|
`--ownerGroupId [ownerGroupId]`
|
|
20
|
-
: ID of the Group that owns the plan. Specify either `ownerGroupId` or `ownerGroupName`
|
|
20
|
+
: ID of the Group that owns the plan. Specify either `ownerGroupId` or `ownerGroupName` when using `planTitle`.
|
|
21
21
|
|
|
22
22
|
`--ownerGroupName [ownerGroupName]`
|
|
23
|
-
: Name of the Group that owns the plan. Specify either `ownerGroupId` or `ownerGroupName`
|
|
23
|
+
: Name of the Group that owns the plan. Specify either `ownerGroupId` or `ownerGroupName` when using `planTitle`.
|
|
24
24
|
|
|
25
25
|
--8<-- "docs/cmd/_global.md"
|
|
26
26
|
|
|
@@ -10,17 +10,17 @@ m365 planner plan get [options]
|
|
|
10
10
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
|
-
`-i
|
|
13
|
+
`-i, --id [id]`
|
|
14
14
|
: ID of the plan. Specify either `id` or `title` but not both.
|
|
15
15
|
|
|
16
|
-
`-t
|
|
16
|
+
`-t, --title [title]`
|
|
17
17
|
: Title of the plan. Specify either `id` or `title` but not both.
|
|
18
18
|
|
|
19
19
|
`--ownerGroupId [ownerGroupId]`
|
|
20
|
-
: ID of the Group that owns the plan. Specify either `ownerGroupId` or `ownerGroupName`
|
|
20
|
+
: ID of the Group that owns the plan. Specify either `ownerGroupId` or `ownerGroupName` when using `title`.
|
|
21
21
|
|
|
22
22
|
`--ownerGroupName [ownerGroupName]`
|
|
23
|
-
: Name of the Group that owns the plan. Specify either `ownerGroupId` or `ownerGroupName`
|
|
23
|
+
: Name of the Group that owns the plan. Specify either `ownerGroupId` or `ownerGroupName` when using `title`.
|
|
24
24
|
|
|
25
25
|
--8<-- "docs/cmd/_global.md"
|
|
26
26
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# planner task checklistitem add
|
|
2
|
+
|
|
3
|
+
Adds a new checklist item to a Planner task
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 planner task checklistitem add [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-i, --taskId <taskId>`
|
|
14
|
+
: ID of the task.
|
|
15
|
+
|
|
16
|
+
`-t, --title <title>`
|
|
17
|
+
: Title of the checklist item.
|
|
18
|
+
|
|
19
|
+
`--isChecked`
|
|
20
|
+
: Mark the checklist item as checked.
|
|
21
|
+
|
|
22
|
+
--8<-- "docs/cmd/_global.md"
|
|
23
|
+
|
|
24
|
+
## Examples
|
|
25
|
+
|
|
26
|
+
Adds an unchecked checklist item with title _My checklist item_ to a Microsoft Planner task with ID _2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2_
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
m365 planner task checklistitem add --taskId 2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2 --title "My checklist item"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Adds a checked checklist item with title _My checklist item_ to a Microsoft Planner task with ID _2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2_
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
m365 planner task checklistitem add --taskId 2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2 --title "My checklist item" --isChecked
|
|
36
|
+
```
|
|
@@ -16,6 +16,9 @@ m365 planner task get [options]
|
|
|
16
16
|
`-t, --title [title]`
|
|
17
17
|
: Title of the task. Specify either `id` or `title` but not both.
|
|
18
18
|
|
|
19
|
+
`--taskId [taskId]`
|
|
20
|
+
: (deprecated. Use `id` instead) ID of the task.
|
|
21
|
+
|
|
19
22
|
`--bucketId [bucketId]`
|
|
20
23
|
: Bucket ID to which the task belongs. Specify `bucketId` or `bucketName` when using `title`.
|
|
21
24
|
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# planner task remove
|
|
2
|
+
|
|
3
|
+
Removes the Microsoft Planner task from a plan
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 planner task remove [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`--id [id]`
|
|
14
|
+
: ID of the task to remove. Specify either `id` or `title` but not both.
|
|
15
|
+
|
|
16
|
+
`--title [title]`
|
|
17
|
+
: Title of the task to remove. Specify either `id` or `title` but not both.
|
|
18
|
+
|
|
19
|
+
`--bucketId [bucketId]`
|
|
20
|
+
: ID of the bucket to which the task to remove belongs. Specify either `bucketId` or `bucketName` but not both.
|
|
21
|
+
|
|
22
|
+
`--bucketName [bucketName]`
|
|
23
|
+
: Name of the bucket to which the task to remove belongs. Specify either `bucketId` or `bucketName` but not both.
|
|
24
|
+
|
|
25
|
+
`--planId [planId]`
|
|
26
|
+
: ID of the plan to which the task to remove belongs. Specify either `planId` or `planTitle` when using `title`.
|
|
27
|
+
|
|
28
|
+
`--planTitle [planTitle]`
|
|
29
|
+
: Title of the plan to which the task to remove belongs. Specify either `planId` or `planTitle` when using `title`.
|
|
30
|
+
|
|
31
|
+
`--ownerGroupId [ownerGroupId]`
|
|
32
|
+
: ID of the group to which the plan belongs. Specify either `ownerGroupId` or `ownerGroupName` when using `planTitle`.
|
|
33
|
+
|
|
34
|
+
`--ownerGroupName [ownerGroupName]`
|
|
35
|
+
: Name of the group to which the plan belongs. Specify either `ownerGroupId` or `ownerGroupName` when using `planTitle`.
|
|
36
|
+
|
|
37
|
+
`--confirm`
|
|
38
|
+
: Don't prompt for confirmation
|
|
39
|
+
|
|
40
|
+
--8<-- "docs/cmd/_global.md"
|
|
41
|
+
|
|
42
|
+
## Examples
|
|
43
|
+
|
|
44
|
+
Removes the Microsoft Planner task by ID
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 planner task remove --id "2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2"
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Removes the Microsoft Planner task by ID without confirmation
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
m365 planner task remove --id "2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2" --confirm
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Removes the Microsoft Planner task with title _My Task_ in the bucket with ID _vncYUXCRBke28qMLB-d4xJcACtNz_
|
|
57
|
+
|
|
58
|
+
```sh
|
|
59
|
+
m365 planner task remove --title "My Task" --bucketId "vncYUXCRBke28qMLB-d4xJcACtNz"
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Removes the Microsoft Planner task with title _My Task_ in the bucket with name _My Bucket_ in the Plan with ID _oUHpnKBFekqfGE_PS6GGUZcAFY7b_
|
|
63
|
+
|
|
64
|
+
```sh
|
|
65
|
+
m365 planner task remove --title "My Task" --bucketName "My Bucket" --planId "oUHpnKBFekqfGE_PS6GGUZcAFY7b"
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Removes the Microsoft Planner task with title _My Task_ in the bucket with name _My Bucket_ in the Plan _My Plan_ owned by group _My Group_
|
|
69
|
+
|
|
70
|
+
```sh
|
|
71
|
+
m365 planner task remove --title "My Task" --bucketName "My Bucket" --planTitle "My Plan" --ownerGroupName "My Group"
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Removes the Microsoft Planner task with title _My Task_ in the bucket with name _My Bucket_ in the Plan _My Plan_ owned by group with ID _00000000-0000-0000-0000-000000000000_
|
|
75
|
+
|
|
76
|
+
```sh
|
|
77
|
+
m365 planner task remove --title "My Task" --bucketName "My Bucket" --planTitle "My Plan" --ownerGroupId "00000000-0000-0000-0000-000000000000"
|
|
78
|
+
```
|
|
@@ -17,10 +17,10 @@ m365 planner task set [options]
|
|
|
17
17
|
: New title of the task.
|
|
18
18
|
|
|
19
19
|
`--bucketId [bucketId]`
|
|
20
|
-
: ID of the bucket to move the task to. Specify either `bucketId` or `bucketName`
|
|
20
|
+
: ID of the bucket to move the task to. Specify either `bucketId` or `bucketName` when using `title`.
|
|
21
21
|
|
|
22
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`
|
|
23
|
+
: Name of the bucket to move the task to. The bucket needs to exist in the selected plan. Specify either `bucketId` or `bucketName` when using `title`.
|
|
24
24
|
|
|
25
25
|
`--planId [planId]`
|
|
26
26
|
: ID of the plan to which the bucket belongs to. Specify either `planId` or `planName` when using `bucketName`.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# planner tenant settings list
|
|
2
|
+
|
|
3
|
+
Lists the Microsoft Planner configuration of the tenant
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 planner tenant settings list [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
--8<-- "docs/cmd/_global.md"
|
|
14
|
+
|
|
15
|
+
## Remarks
|
|
16
|
+
|
|
17
|
+
!!! important
|
|
18
|
+
To use this command you must be a global administrator.
|
|
19
|
+
|
|
20
|
+
After executing the command `planner tenant settings set`, it can take some time for all changes to propagate across the tenant. Because of this, executing this command right away can return some unexpected results.
|
|
21
|
+
|
|
22
|
+
## Examples
|
|
23
|
+
|
|
24
|
+
Lists the Microsoft Planner settings of the tenant
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
m365 planner tenant settings list
|
|
28
|
+
```
|
|
@@ -32,5 +32,5 @@ m365 spo file checkout --webUrl https://contoso.sharepoint.com/sites/project-x -
|
|
|
32
32
|
Checks out file with server-relative url _/sites/project-x/documents/Test1.docx_ located in site _https://contoso.sharepoint.com/sites/project-x_
|
|
33
33
|
|
|
34
34
|
```sh
|
|
35
|
-
m365 spo file checkout --webUrl https://contoso.sharepoint.com/sites/project-x --
|
|
35
|
+
m365 spo file checkout --webUrl https://contoso.sharepoint.com/sites/project-x --fileUrl '/sites/project-x/documents/Test1.docx'
|
|
36
36
|
```
|
|
@@ -13,11 +13,17 @@ m365 spo listitem list [options]
|
|
|
13
13
|
`-u, --webUrl <webUrl>`
|
|
14
14
|
: URL of the site from which the item should be retrieved
|
|
15
15
|
|
|
16
|
-
`-i, --
|
|
17
|
-
: ID of the list to retrieve items from. Specify `
|
|
16
|
+
`-i, --listId [listId]`
|
|
17
|
+
: ID of the list to retrieve items from. Specify `listId` or `listTitle` but not both
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
:
|
|
19
|
+
`--id [id]`
|
|
20
|
+
: (deprecated. Use `listId` instead) ID of the list to retrieve items from. Specify `id` or `title` but not both
|
|
21
|
+
|
|
22
|
+
`-t, --listTitle [listTitle]`
|
|
23
|
+
: Title of the list to retrieve items from. Specify `listId` or `listTitle` but not both
|
|
24
|
+
|
|
25
|
+
`--title [title]`
|
|
26
|
+
: (deprecated. Use `listTitle` instead) Title of the list to retrieve items from. Specify `id` or `title` but not both
|
|
21
27
|
|
|
22
28
|
`-q, --camlQuery [camlQuery]`
|
|
23
29
|
: CAML query to use to query the list of items with
|
|
@@ -45,35 +51,35 @@ m365 spo listitem list [options]
|
|
|
45
51
|
Get all items from a list named Demo List
|
|
46
52
|
|
|
47
53
|
```sh
|
|
48
|
-
m365 spo listitem list --
|
|
54
|
+
m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x
|
|
49
55
|
```
|
|
50
56
|
|
|
51
57
|
From a list named _Demo List_ get all items with title _Demo list item_ using a CAML query
|
|
52
58
|
|
|
53
59
|
```sh
|
|
54
|
-
m365 spo listitem list --
|
|
60
|
+
m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --camlQuery "<View><Query><Where><Eq><FieldRef Name='Title' /><Value Type='Text'>Demo list item</Value></Eq></Where></Query></View>"
|
|
55
61
|
```
|
|
56
62
|
|
|
57
63
|
Get all items from a list with ID _935c13a0-cc53-4103-8b48-c1d0828eaa7f_
|
|
58
64
|
|
|
59
65
|
```sh
|
|
60
|
-
m365 spo listitem list --
|
|
66
|
+
m365 spo listitem list --listId 935c13a0-cc53-4103-8b48-c1d0828eaa7f --webUrl https://contoso.sharepoint.com/sites/project-x
|
|
61
67
|
```
|
|
62
68
|
|
|
63
69
|
Get all items from list named _Demo List_. For each item, retrieve the value of the _ID_, _Title_ and _Modified_ fields
|
|
64
70
|
|
|
65
71
|
```sh
|
|
66
|
-
m365 spo listitem list --
|
|
72
|
+
m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --fields "ID,Title,Modified"
|
|
67
73
|
```
|
|
68
74
|
|
|
69
75
|
From a list named _Demo List_ get all items with title _Demo list item_ using an OData filter
|
|
70
76
|
|
|
71
77
|
```sh
|
|
72
|
-
m365 spo listitem list --
|
|
78
|
+
m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --filter "Title eq 'Demo list item'"
|
|
73
79
|
```
|
|
74
80
|
|
|
75
81
|
From a list named _Demo List_ get the second batch of 10 items
|
|
76
82
|
|
|
77
83
|
```sh
|
|
78
|
-
m365 spo listitem list --
|
|
84
|
+
m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --pageSize 10 --pageNumber 2
|
|
79
85
|
```
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# spo roledefinition remove
|
|
2
|
+
|
|
3
|
+
Removes the role definition from the specified site
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo roledefinition remove [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: URL of the site from which role should be removed
|
|
15
|
+
|
|
16
|
+
`-i, --id <id>`
|
|
17
|
+
: ID of the role definition to remove
|
|
18
|
+
|
|
19
|
+
`--confirm`
|
|
20
|
+
: Don't prompt for confirming removing the role definition
|
|
21
|
+
|
|
22
|
+
--8<-- "docs/cmd/_global.md"
|
|
23
|
+
|
|
24
|
+
## Examples
|
|
25
|
+
|
|
26
|
+
Remove the role definition from site _https://contoso.sharepoint.com/sites/project-x_ with id _1_
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
m365 spo roledefinition remove --webUrl https://contoso.sharepoint.com/sites/project-x --id 1
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Remove the role definition from site _https://contoso.sharepoint.com/sites/project-x_ with id _1_ and don't prompt for confirmation
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
m365 spo roledefinition remove --webUrl https://contoso.sharepoint.com/sites/project-x --id 1 --confirm
|
|
36
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365",
|
|
3
|
-
"version": "5.4.0-beta.
|
|
3
|
+
"version": "5.4.0-beta.d09de0f",
|
|
4
4
|
"description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/api.js",
|
|
@@ -52,11 +52,6 @@
|
|
|
52
52
|
"email": "waldek@mastykarz.nl",
|
|
53
53
|
"web": "https://blog.mastykarz.nl"
|
|
54
54
|
},
|
|
55
|
-
{
|
|
56
|
-
"name": "Velin Georgiev",
|
|
57
|
-
"email": "velin.georgiev@gmail.com",
|
|
58
|
-
"web": "https://blog.velingeorgiev.com"
|
|
59
|
-
},
|
|
60
55
|
{
|
|
61
56
|
"name": "Garry Trinder",
|
|
62
57
|
"email": "garry.trinder@live.com",
|
|
@@ -81,6 +76,16 @@
|
|
|
81
76
|
"name": "Arjun Menon",
|
|
82
77
|
"email": "arjun.umenon@gmail.com",
|
|
83
78
|
"web": "https://arjunumenon.com/"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "Adam Wojcik",
|
|
82
|
+
"email": "adam.wojcik.it@gmail.com",
|
|
83
|
+
"web": "https://github.com/Adam-it/"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "Martin Lingstuyl",
|
|
87
|
+
"email": "mlingstuyl@live.com",
|
|
88
|
+
"web": "https://www.blimped.nl/"
|
|
84
89
|
}
|
|
85
90
|
],
|
|
86
91
|
"contributors": [
|
|
@@ -128,7 +133,7 @@
|
|
|
128
133
|
"Laskewitz, Daniel <daniel@laskewitz.nl>",
|
|
129
134
|
"Lengelle, Veronique <25181757+veronicageek@users.noreply.github.com>",
|
|
130
135
|
"Levert, Sebastien <slevert@outlook.com>",
|
|
131
|
-
"Lingstuyl, Martin <
|
|
136
|
+
"Lingstuyl, Martin <mlingstuyl@live.com>",
|
|
132
137
|
"Maillot, Michaël <battosaimykle@gmail.com>",
|
|
133
138
|
"Mastykarz, Waldek <waldek@mastykarz.nl>",
|
|
134
139
|
"McDonnell, Kevin <kevin@mcd79.com>",
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const utils_1 = require("../../../../utils");
|
|
4
|
-
const Auth_1 = require("../../../../Auth");
|
|
5
|
-
const request_1 = require("../../../../request");
|
|
6
|
-
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
7
|
-
const commands_1 = require("../../commands");
|
|
8
|
-
class PlannerTaskDetailsGetCommand extends GraphCommand_1.default {
|
|
9
|
-
get name() {
|
|
10
|
-
return commands_1.default.TASK_DETAILS_GET;
|
|
11
|
-
}
|
|
12
|
-
get description() {
|
|
13
|
-
return 'Retrieve the details of the specified planner task';
|
|
14
|
-
}
|
|
15
|
-
commandAction(logger, args, cb) {
|
|
16
|
-
if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
|
|
17
|
-
this.handleError('This command does not support application permissions.', logger, cb);
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
const requestOptions = {
|
|
21
|
-
url: `${this.resource}/v1.0/planner/tasks/${encodeURIComponent(args.options.taskId)}/details`,
|
|
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, --taskId <taskId>'
|
|
38
|
-
}
|
|
39
|
-
];
|
|
40
|
-
const parentOptions = super.options();
|
|
41
|
-
return options.concat(parentOptions);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
module.exports = new PlannerTaskDetailsGetCommand();
|
|
45
|
-
//# sourceMappingURL=task-details-get.js.map
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
-
```
|