@pnp/cli-microsoft365 5.3.0 → 5.4.0-beta.3879fc9
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/dist/m365/planner/commands/bucket/bucket-get.js +1 -1
- package/dist/m365/planner/commands/bucket/bucket-remove.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-set.js +1 -1
- package/dist/m365/planner/commands/task/task-get.js +22 -6
- package/dist/m365/planner/commands/task/task-remove.js +201 -0
- package/dist/m365/planner/commands.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002009_DEVDEP_microsoft_sp_tslint_rules.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002018_DEVDEP_microsoft_rush_stack_compiler_3_9.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002020_DEVDEP_microsoft_rush_stack_compiler_4_5.js +17 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002021_DEVDEP_rushstack_eslint_config.js +14 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx.js +14 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002023_DEVDEP_microsoft_eslint_config_spfx.js +14 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002024_DEVDEP_eslint.js +14 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002025_DEVDEP_eslint_plugin_react_hooks.js +18 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015008_FILE_eslintrc_js.js +14 -0
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.15.0-beta.6.js → upgrade-1.15.0-rc.0.js} +49 -25
- package/dist/m365/spfx/commands/project/project-upgrade.js +1 -1
- 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 +6 -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 +2 -2
- 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/utils/validation.js +12 -2
- package/docs/docs/cmd/planner/bucket/bucket-get.md +1 -1
- package/docs/docs/cmd/planner/bucket/bucket-remove.md +2 -2
- package/docs/docs/cmd/planner/bucket/bucket-set.md +5 -5
- 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-get.md +4 -9
- package/docs/docs/cmd/planner/task/task-list.md +2 -2
- 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/spfx/project/project-upgrade.md +1 -1
- package/docs/docs/cmd/spo/file/file-checkout.md +1 -1
- package/docs/docs/cmd/spo/list/list-view-add.md +13 -4
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.md +2 -2
- package/npm-shrinkwrap.json +257 -1104
- package/package.json +25 -21
|
@@ -24,8 +24,8 @@ class SpoListItemGetCommand extends SpoCommand_1.default {
|
|
|
24
24
|
const listIdArgument = args.options.listId || '';
|
|
25
25
|
const listTitleArgument = args.options.listTitle || '';
|
|
26
26
|
const listRestUrl = (args.options.listId ?
|
|
27
|
-
`${args.options.webUrl}/_api/web/lists(guid'${
|
|
28
|
-
: `${args.options.webUrl}/_api/web/lists/getByTitle('${
|
|
27
|
+
`${args.options.webUrl}/_api/web/lists(guid'${utils_1.formatting.encodeQueryParameter(listIdArgument)}')`
|
|
28
|
+
: `${args.options.webUrl}/_api/web/lists/getByTitle('${utils_1.formatting.encodeQueryParameter(listTitleArgument)}')`);
|
|
29
29
|
const propertiesSelect = args.options.properties ?
|
|
30
30
|
`?$select=${encodeURIComponent(args.options.properties)}` :
|
|
31
31
|
((!args.options.output || args.options.output === 'text') ?
|
|
@@ -25,8 +25,8 @@ class SpoListItemIsRecordCommand extends SpoCommand_1.default {
|
|
|
25
25
|
const listIdArgument = args.options.listId || '';
|
|
26
26
|
const listTitleArgument = args.options.listTitle || '';
|
|
27
27
|
const listRestUrl = (args.options.listId ?
|
|
28
|
-
`${args.options.webUrl}/_api/web/lists(guid'${
|
|
29
|
-
: `${args.options.webUrl}/_api/web/lists/getByTitle('${
|
|
28
|
+
`${args.options.webUrl}/_api/web/lists(guid'${utils_1.formatting.encodeQueryParameter(listIdArgument)}')`
|
|
29
|
+
: `${args.options.webUrl}/_api/web/lists/getByTitle('${utils_1.formatting.encodeQueryParameter(listTitleArgument)}')`);
|
|
30
30
|
let formDigestValue = '';
|
|
31
31
|
let listId = '';
|
|
32
32
|
if (this.debug) {
|
|
@@ -29,8 +29,8 @@ class SpoListItemListCommand extends SpoCommand_1.default {
|
|
|
29
29
|
const fieldsArray = args.options.fields ? args.options.fields.split(",")
|
|
30
30
|
: (!args.options.output || args.options.output === "text") ? ["Title", "Id"] : [];
|
|
31
31
|
const listRestUrl = (args.options.id ?
|
|
32
|
-
`${args.options.webUrl}/_api/web/lists(guid'${
|
|
33
|
-
: `${args.options.webUrl}/_api/web/lists/getByTitle('${
|
|
32
|
+
`${args.options.webUrl}/_api/web/lists(guid'${utils_1.formatting.encodeQueryParameter(listIdArgument)}')`
|
|
33
|
+
: `${args.options.webUrl}/_api/web/lists/getByTitle('${utils_1.formatting.encodeQueryParameter(listTitleArgument)}')`);
|
|
34
34
|
(() => {
|
|
35
35
|
if (args.options.camlQuery) {
|
|
36
36
|
if (this.debug) {
|
|
@@ -25,8 +25,8 @@ class SpoListItemRecordDeclareCommand extends SpoCommand_1.default {
|
|
|
25
25
|
let webIdentity = '';
|
|
26
26
|
let listId = '';
|
|
27
27
|
const listRestUrl = args.options.listId
|
|
28
|
-
? `${args.options.webUrl}/_api/web/lists(guid'${
|
|
29
|
-
: `${args.options.webUrl}/_api/web/lists/getByTitle('${
|
|
28
|
+
? `${args.options.webUrl}/_api/web/lists(guid'${utils_1.formatting.encodeQueryParameter(args.options.listId)}')`
|
|
29
|
+
: `${args.options.webUrl}/_api/web/lists/getByTitle('${utils_1.formatting.encodeQueryParameter(args.options.listTitle)}')`;
|
|
30
30
|
utils_1.spo
|
|
31
31
|
.getRequestDigest(args.options.webUrl)
|
|
32
32
|
.then((contextResponse) => {
|
|
@@ -22,8 +22,8 @@ class SpoListItemRecordUndeclareCommand extends SpoCommand_1.default {
|
|
|
22
22
|
const listIdArgument = args.options.listId || '';
|
|
23
23
|
const listTitleArgument = args.options.listTitle || '';
|
|
24
24
|
const listRestUrl = (args.options.listId ?
|
|
25
|
-
`${args.options.webUrl}/_api/web/lists(guid'${
|
|
26
|
-
: `${args.options.webUrl}/_api/web/lists/getByTitle('${
|
|
25
|
+
`${args.options.webUrl}/_api/web/lists(guid'${utils_1.formatting.encodeQueryParameter(listIdArgument)}')`
|
|
26
|
+
: `${args.options.webUrl}/_api/web/lists/getByTitle('${utils_1.formatting.encodeQueryParameter(listTitleArgument)}')`);
|
|
27
27
|
let formDigestValue = '';
|
|
28
28
|
let environmentListId = '';
|
|
29
29
|
(() => {
|
|
@@ -27,10 +27,10 @@ class SpoListItemRemoveCommand extends SpoCommand_1.default {
|
|
|
27
27
|
}
|
|
28
28
|
let requestUrl = '';
|
|
29
29
|
if (args.options.listId) {
|
|
30
|
-
requestUrl = `${args.options.webUrl}/_api/web/lists(guid'${
|
|
30
|
+
requestUrl = `${args.options.webUrl}/_api/web/lists(guid'${utils_1.formatting.encodeQueryParameter(args.options.listId)}')`;
|
|
31
31
|
}
|
|
32
32
|
else {
|
|
33
|
-
requestUrl = `${args.options.webUrl}/_api/web/lists/GetByTitle('${
|
|
33
|
+
requestUrl = `${args.options.webUrl}/_api/web/lists/GetByTitle('${utils_1.formatting.encodeQueryParameter(args.options.listTitle)}')`;
|
|
34
34
|
}
|
|
35
35
|
requestUrl += `/items(${args.options.id})`;
|
|
36
36
|
if (args.options.recycle) {
|
|
@@ -22,10 +22,10 @@ class SpoListItemRoleInheritanceBreakCommand extends SpoCommand_1.default {
|
|
|
22
22
|
}
|
|
23
23
|
let requestUrl = `${args.options.webUrl}/_api/web/lists`;
|
|
24
24
|
if (args.options.listId) {
|
|
25
|
-
requestUrl += `(guid'${
|
|
25
|
+
requestUrl += `(guid'${utils_1.formatting.encodeQueryParameter(args.options.listId)}')`;
|
|
26
26
|
}
|
|
27
27
|
else {
|
|
28
|
-
requestUrl += `/getbytitle('${
|
|
28
|
+
requestUrl += `/getbytitle('${utils_1.formatting.encodeQueryParameter(args.options.listTitle)}')`;
|
|
29
29
|
}
|
|
30
30
|
let keepExistingPermissions = true;
|
|
31
31
|
if (args.options.clearExistingPermissions) {
|
|
@@ -20,10 +20,10 @@ class SpoListItemRoleInheritanceResetCommand extends SpoCommand_1.default {
|
|
|
20
20
|
commandAction(logger, args, cb) {
|
|
21
21
|
let requestUrl = `${args.options.webUrl}/_api/web/lists`;
|
|
22
22
|
if (args.options.listId) {
|
|
23
|
-
requestUrl += `(guid'${
|
|
23
|
+
requestUrl += `(guid'${utils_1.formatting.encodeQueryParameter(args.options.listId)}')`;
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
26
|
-
requestUrl += `/getbytitle('${
|
|
26
|
+
requestUrl += `/getbytitle('${utils_1.formatting.encodeQueryParameter(args.options.listTitle)}')`;
|
|
27
27
|
}
|
|
28
28
|
const requestOptions = {
|
|
29
29
|
url: `${requestUrl}/items(${args.options.listItemId})/resetroleinheritance`,
|
|
@@ -27,8 +27,8 @@ class SpoListItemSetCommand extends SpoCommand_1.default {
|
|
|
27
27
|
const listIdArgument = args.options.listId || '';
|
|
28
28
|
const listTitleArgument = args.options.listTitle || '';
|
|
29
29
|
const listRestUrl = (args.options.listId ?
|
|
30
|
-
`${args.options.webUrl}/_api/web/lists(guid'${
|
|
31
|
-
: `${args.options.webUrl}/_api/web/lists/getByTitle('${
|
|
30
|
+
`${args.options.webUrl}/_api/web/lists(guid'${utils_1.formatting.encodeQueryParameter(listIdArgument)}')`
|
|
31
|
+
: `${args.options.webUrl}/_api/web/lists/getByTitle('${utils_1.formatting.encodeQueryParameter(listTitleArgument)}')`);
|
|
32
32
|
let contentTypeName = '';
|
|
33
33
|
let formDigestValue = '';
|
|
34
34
|
let environmentListId = '';
|
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;
|
|
@@ -13,7 +13,7 @@ m365 planner bucket get [options]
|
|
|
13
13
|
`-i, --id [id]`
|
|
14
14
|
: ID of the bucket to retrieve details. Specify either `id` or `name` but not both.
|
|
15
15
|
|
|
16
|
-
`-
|
|
16
|
+
`-n, --name [name]`
|
|
17
17
|
: Name of the bucket to retrieve details. Specify either `id` or `name` but not both.
|
|
18
18
|
|
|
19
19
|
`--planId [planId]`
|
|
@@ -10,10 +10,10 @@ m365 planner bucket remove [options]
|
|
|
10
10
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
`-i, --id [id]`
|
|
14
14
|
: ID of the bucket to remove. Specify either `id` or `name` but not both.
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
`-n, --name [name]`
|
|
17
17
|
: Name of the bucket to remove. Specify either `id` or `name` but not both.
|
|
18
18
|
|
|
19
19
|
`--planId [planId]`
|
|
@@ -13,20 +13,20 @@ m365 planner bucket set [options]
|
|
|
13
13
|
`-i, --id [id]`
|
|
14
14
|
: ID of the bucket. Specify either `id` or `name` but not both.
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
`-n, --name [name]`
|
|
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
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# planner task get
|
|
2
2
|
|
|
3
|
-
Retrieve the
|
|
3
|
+
Retrieve the specified planner task
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
@@ -36,20 +36,15 @@ m365 planner task get [options]
|
|
|
36
36
|
|
|
37
37
|
--8<-- "docs/cmd/_global.md"
|
|
38
38
|
|
|
39
|
-
## Remarks
|
|
40
|
-
|
|
41
|
-
!!! attention
|
|
42
|
-
This command uses an API that is currently in preview to enrich the results with the `priority` field. Keep in mind that this preview API is subject to change once the API reached general availability.
|
|
43
|
-
|
|
44
39
|
## Examples
|
|
45
40
|
|
|
46
|
-
Retrieve the
|
|
41
|
+
Retrieve the specified planner task by id
|
|
47
42
|
|
|
48
43
|
```sh
|
|
49
|
-
m365 planner task get --id
|
|
44
|
+
m365 planner task get --id "vzCcZoOv-U27PwydxHB8opcADJo-"
|
|
50
45
|
```
|
|
51
46
|
|
|
52
|
-
Retrieve the
|
|
47
|
+
Retrieve the specified planner task with the title _My Planner Task_ from the bucket named _My Planner Bucket_ based on the plan with the name _My Planner Plan_ owned by the group _My Planner Group_
|
|
53
48
|
|
|
54
49
|
```sh
|
|
55
50
|
m365 planner task get --title "My Planner Task" --bucketName "My Planner Bucket" --planName "My Planner Plan" --ownerGroupName "My Planner Group"
|
|
@@ -17,10 +17,10 @@ m365 planner task list [options]
|
|
|
17
17
|
: Name of the bucket to list the tasks of. To retrieve tasks from a bucket, specify `bucketId` or `bucketName`, but not both.
|
|
18
18
|
|
|
19
19
|
`--planId [planId]`
|
|
20
|
-
: ID of
|
|
20
|
+
: ID of a plan to list the tasks of. To retrieve all tasks from a plan, specify either `planId` or `planName` but not both. Use in combination with `bucketName` to retrieve tasks from a specific bucket.
|
|
21
21
|
|
|
22
22
|
`--planName [planName]`
|
|
23
|
-
: Name of
|
|
23
|
+
: Name of a plan to list the tasks of. To retrieve all tasks from a plan, specify either `planId` or `planName` but not both. Always use in combination with either `ownerGroupId` or `ownerGroupName`. Use in combination with `bucketName` to retrieve tasks from a specific bucket.
|
|
24
24
|
|
|
25
25
|
`--ownerGroupId [ownerGroupId]`
|
|
26
26
|
: ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planName`.
|
|
@@ -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`.
|
|
@@ -32,7 +32,7 @@ m365 spfx project upgrade [options]
|
|
|
32
32
|
|
|
33
33
|
## Remarks
|
|
34
34
|
|
|
35
|
-
The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.14.0). If you specify the `preview` option without a specific version, the command will upgrade your project to the latest preview version v1.15.0-
|
|
35
|
+
The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.14.0). If you specify the `preview` option without a specific version, the command will upgrade your project to the latest preview version v1.15.0-rc.0.
|
|
36
36
|
|
|
37
37
|
This command doesn't change your project files. Instead, it gives you a report with all steps necessary to upgrade your project to the specified version of the SharePoint Framework. Changing project files is error-prone, especially when it comes to updating your solution's code. This is why at this moment, this command produces a report that you can use yourself to perform the necessary updates and verify that everything is working as expected.
|
|
38
38
|
|
|
@@ -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
|
```
|
|
@@ -26,7 +26,10 @@ m365 spo list view add [options]
|
|
|
26
26
|
: Title of the view to be created for the list.
|
|
27
27
|
|
|
28
28
|
`--fields <fields>`
|
|
29
|
-
: Comma-separated list of **case-sensitive** internal names of the fields to add to the view.
|
|
29
|
+
: Comma-separated list of **case-sensitive** internal names of the fields to add to the view.
|
|
30
|
+
|
|
31
|
+
`--viewQuery [viewQuery]`
|
|
32
|
+
: XML representation of the list query for the underlying view.
|
|
30
33
|
|
|
31
34
|
`--personal`
|
|
32
35
|
: View will be created as personal view, if specified.
|
|
@@ -51,17 +54,23 @@ We recommend using the `paged` option. When specified, the view supports display
|
|
|
51
54
|
Add a view called _All events_ to a list with specific title.
|
|
52
55
|
|
|
53
56
|
```sh
|
|
54
|
-
spo list view add --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle "My List" --title "All events" --fields "FieldName1,FieldName2,Created,Author,Modified,Editor" --paged
|
|
57
|
+
m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle "My List" --title "All events" --fields "FieldName1,FieldName2,Created,Author,Modified,Editor" --paged
|
|
55
58
|
```
|
|
56
59
|
|
|
57
60
|
Add a view as default view with title _All events_ to a list with a specific URL.
|
|
58
61
|
|
|
59
62
|
```sh
|
|
60
|
-
spo list view add --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl "/Lists/MyList" --title "All events" --fields "FieldName1,Created" --paged --default
|
|
63
|
+
m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl "/Lists/MyList" --title "All events" --fields "FieldName1,Created" --paged --default
|
|
61
64
|
```
|
|
62
65
|
|
|
63
66
|
Add a personal view called _All events_ to a list with a specific ID.
|
|
64
67
|
|
|
65
68
|
```sh
|
|
66
|
-
spo list view add --webUrl https://contoso.sharepoint.com/sites/project-x --listId 00000000-0000-0000-0000-000000000000 --title "All events" --fields "FieldName1,Created" --paged --personal
|
|
69
|
+
m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/project-x --listId 00000000-0000-0000-0000-000000000000 --title "All events" --fields "FieldName1,Created" --paged --personal
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Add a view called _All events_ with defined filter and sorting.
|
|
73
|
+
|
|
74
|
+
```sh
|
|
75
|
+
m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle "My List" --title "All events" --fields "FieldName1" --viewQuery "<OrderBy><FieldRef Name='Created' Ascending='FALSE' /></OrderBy><Where><Eq><FieldRef Name='TextFieldName' /><Value Type='Text'>Field value</Value></Eq></Where>" --paged
|
|
67
76
|
```
|
|
@@ -20,7 +20,7 @@ m365 spo listitem roleinheritance break [options]
|
|
|
20
20
|
: ID of the list. Specify listId or listTitle but not both
|
|
21
21
|
|
|
22
22
|
`-t, --listTitle [listTitle]`
|
|
23
|
-
Title of the list. Specify listId or listTitle but not both
|
|
23
|
+
: Title of the list. Specify listId or listTitle but not both
|
|
24
24
|
|
|
25
25
|
`-c, --clearExistingPermissions`
|
|
26
26
|
: Set to clear existing roles from the list item
|
|
@@ -55,4 +55,4 @@ Break inheritance of list item _1_ in list with ID _202b8199-b9de-43fd-9737-7f21
|
|
|
55
55
|
|
|
56
56
|
```sh
|
|
57
57
|
m365 spo listitem roleinheritance break --webUrl https://contoso.sharepoint.com/sites/project-x --listId 202b8199-b9de-43fd-9737-7f213f51c991 --id 1 --clearExistingPermissions
|
|
58
|
-
```
|
|
58
|
+
```
|