@pnp/cli-microsoft365 5.9.0-beta.1e08e6c → 5.9.0-beta.1f313f7

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.
Files changed (89) hide show
  1. package/dist/Command.js +16 -2
  2. package/dist/m365/commands/status.js +6 -1
  3. package/dist/m365/spfx/commands/project/project-doctor.js +4 -1
  4. package/dist/m365/spfx/commands/project/project-externalize.js +4 -1
  5. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010001_YORC_version.js +2 -1
  6. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010002_YORC_isCreatingSolution.js +2 -1
  7. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010003_YORC_packageManager.js +2 -1
  8. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010004_YORC_componentType.js +2 -1
  9. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010005_YORC_environment.js +2 -1
  10. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010006_YORC_framework.js +3 -2
  11. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010007_YORC_isDomainIsolated.js +2 -1
  12. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010008_YORC_nodeVersion.js +2 -1
  13. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010009_YORC_sdkVersions_microsoft_graph_client.js +56 -0
  14. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010010_YORC_sdkVersions_teams_js.js +56 -0
  15. package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.16.0-beta.1.js → upgrade-1.16.0-beta.2.js} +44 -28
  16. package/dist/m365/spfx/commands/project/project-upgrade.js +1 -1
  17. package/dist/m365/spfx/commands/spfx-doctor.js +3 -3
  18. package/dist/m365/spo/commands/contenttype/contenttype-add.js +82 -43
  19. package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +53 -21
  20. package/dist/m365/spo/commands/contenttype/contenttype-get.js +35 -14
  21. package/dist/m365/spo/commands/field/field-add.js +26 -1
  22. package/dist/m365/spo/commands/field/field-set.js +23 -13
  23. package/dist/m365/spo/commands/list/list-roleassignment-add.js +1 -1
  24. package/dist/m365/spo/commands/list/list-webhook-get.js +2 -3
  25. package/dist/m365/spo/commands/listitem/listitem-add.js +24 -14
  26. package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +18 -8
  27. package/dist/m365/spo/commands/listitem/listitem-get.js +18 -8
  28. package/dist/m365/spo/commands/listitem/listitem-isrecord.js +20 -10
  29. package/dist/m365/spo/commands/listitem/listitem-list.js +27 -11
  30. package/dist/m365/spo/commands/listitem/listitem-record-declare.js +19 -12
  31. package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +24 -21
  32. package/dist/m365/spo/commands/listitem/listitem-remove.js +19 -11
  33. package/dist/m365/spo/commands/listitem/listitem-roleassignment-add.js +239 -0
  34. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +13 -5
  35. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +14 -6
  36. package/dist/m365/spo/commands/listitem/listitem-set.js +52 -44
  37. package/dist/m365/spo/commands/web/web-roleinheritance-break.js +100 -0
  38. package/dist/m365/spo/commands.js +2 -0
  39. package/dist/m365/todo/commands/list/list-get.js +89 -0
  40. package/dist/m365/todo/commands/task/task-get.js +108 -0
  41. package/dist/m365/todo/commands.js +2 -0
  42. package/docs/docs/cmd/planner/bucket/bucket-add.md +29 -0
  43. package/docs/docs/cmd/planner/bucket/bucket-get.md +29 -0
  44. package/docs/docs/cmd/planner/bucket/bucket-list.md +30 -0
  45. package/docs/docs/cmd/planner/bucket/bucket-remove.md +4 -0
  46. package/docs/docs/cmd/planner/bucket/bucket-set.md +4 -0
  47. package/docs/docs/cmd/planner/plan/plan-add.md +123 -0
  48. package/docs/docs/cmd/planner/plan/plan-get.md +75 -0
  49. package/docs/docs/cmd/planner/plan/plan-list.md +45 -0
  50. package/docs/docs/cmd/planner/plan/plan-remove.md +4 -0
  51. package/docs/docs/cmd/spfx/project/project-rename.md +1 -14
  52. package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
  53. package/docs/docs/cmd/spo/contenttype/contenttype-add.md +20 -2
  54. package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.md +22 -4
  55. package/docs/docs/cmd/spo/contenttype/contenttype-get.md +21 -3
  56. package/docs/docs/cmd/spo/field/field-add.md +20 -2
  57. package/docs/docs/cmd/spo/field/field-set.md +11 -2
  58. package/docs/docs/cmd/spo/list/list-webhook-get.md +1 -1
  59. package/docs/docs/cmd/spo/list/list-webhook-set.md +2 -2
  60. package/docs/docs/cmd/spo/listitem/listitem-add.md +11 -2
  61. package/docs/docs/cmd/spo/listitem/listitem-attachment-list.md +11 -2
  62. package/docs/docs/cmd/spo/listitem/listitem-get.md +11 -2
  63. package/docs/docs/cmd/spo/listitem/listitem-isrecord.md +12 -2
  64. package/docs/docs/cmd/spo/listitem/listitem-list.md +12 -3
  65. package/docs/docs/cmd/spo/listitem/listitem-record-declare.md +7 -4
  66. package/docs/docs/cmd/spo/listitem/listitem-record-undeclare.md +11 -2
  67. package/docs/docs/cmd/spo/listitem/listitem-remove.md +11 -2
  68. package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.md +81 -0
  69. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.md +7 -4
  70. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-reset.md +11 -2
  71. package/docs/docs/cmd/spo/listitem/listitem-set.md +7 -4
  72. package/docs/docs/cmd/spo/web/web-roleinheritance-break.md +44 -0
  73. package/docs/docs/cmd/tenant/id/id-get.md +20 -0
  74. package/docs/docs/cmd/tenant/report/report-activeusercounts.md +35 -0
  75. package/docs/docs/cmd/tenant/report/report-activeuserdetail.md +49 -0
  76. package/docs/docs/cmd/tenant/report/report-office365activationcounts.md +32 -0
  77. package/docs/docs/cmd/tenant/report/report-office365activationsusercounts.md +30 -0
  78. package/docs/docs/cmd/tenant/report/report-office365activationsuserdetail.md +36 -0
  79. package/docs/docs/cmd/tenant/report/report-servicesusercounts.md +41 -0
  80. package/docs/docs/cmd/tenant/security/security-alerts-list.md +105 -0
  81. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.md +87 -0
  82. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-list.md +91 -0
  83. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-get.md +62 -0
  84. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-list.md +51 -0
  85. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-get.md +64 -0
  86. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-list.md +52 -0
  87. package/docs/docs/cmd/todo/list/list-get.md +61 -0
  88. package/docs/docs/cmd/todo/task/task-get.md +75 -0
  89. package/package.json +9 -6
@@ -0,0 +1,100 @@
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
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
13
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
14
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15
+ };
16
+ var _SpoWebRoleInheritanceBreakCommand_instances, _SpoWebRoleInheritanceBreakCommand_initTelemetry, _SpoWebRoleInheritanceBreakCommand_initOptions, _SpoWebRoleInheritanceBreakCommand_initValidators;
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const Cli_1 = require("../../../../cli/Cli");
19
+ const SpoCommand_1 = require("../../../base/SpoCommand");
20
+ const commands_1 = require("../../commands");
21
+ const request_1 = require("../../../../request");
22
+ const validation_1 = require("../../../../utils/validation");
23
+ class SpoWebRoleInheritanceBreakCommand extends SpoCommand_1.default {
24
+ constructor() {
25
+ super();
26
+ _SpoWebRoleInheritanceBreakCommand_instances.add(this);
27
+ __classPrivateFieldGet(this, _SpoWebRoleInheritanceBreakCommand_instances, "m", _SpoWebRoleInheritanceBreakCommand_initTelemetry).call(this);
28
+ __classPrivateFieldGet(this, _SpoWebRoleInheritanceBreakCommand_instances, "m", _SpoWebRoleInheritanceBreakCommand_initOptions).call(this);
29
+ __classPrivateFieldGet(this, _SpoWebRoleInheritanceBreakCommand_instances, "m", _SpoWebRoleInheritanceBreakCommand_initValidators).call(this);
30
+ }
31
+ get name() {
32
+ return commands_1.default.WEB_ROLEINHERITANCE_BREAK;
33
+ }
34
+ get description() {
35
+ return 'Break role inheritance of subsite';
36
+ }
37
+ commandAction(logger, args) {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ if (this.verbose) {
40
+ logger.logToStderr(`Break role inheritance of subsite with URL ${args.options.webUrl}...`);
41
+ }
42
+ const breakroleInheritance = () => __awaiter(this, void 0, void 0, function* () {
43
+ const requestOptions = {
44
+ url: `${args.options.webUrl}/_api/web/breakroleinheritance(${!args.options.clearExistingPermissions})`,
45
+ headers: {
46
+ 'accept': 'application/json;odata=nometadata',
47
+ 'content-type': 'application/json'
48
+ },
49
+ responseType: 'json'
50
+ };
51
+ try {
52
+ yield request_1.default.post(requestOptions);
53
+ }
54
+ catch (err) {
55
+ this.handleRejectedODataJsonPromise(err);
56
+ }
57
+ });
58
+ if (args.options.confirm) {
59
+ yield breakroleInheritance();
60
+ }
61
+ else {
62
+ const result = yield Cli_1.Cli.prompt({
63
+ type: 'confirm',
64
+ name: 'continue',
65
+ default: false,
66
+ message: `Are you sure you want to break the role inheritance of subsite ${args.options.webUrl}`
67
+ });
68
+ if (result.continue) {
69
+ yield breakroleInheritance();
70
+ }
71
+ }
72
+ });
73
+ }
74
+ }
75
+ _SpoWebRoleInheritanceBreakCommand_instances = new WeakSet(), _SpoWebRoleInheritanceBreakCommand_initTelemetry = function _SpoWebRoleInheritanceBreakCommand_initTelemetry() {
76
+ this.telemetry.push((args) => {
77
+ Object.assign(this.telemetryProperties, {
78
+ clearExistingPermissions: !!args.options.clearExistingPermissions,
79
+ confirm: !!args.options.confirm
80
+ });
81
+ });
82
+ }, _SpoWebRoleInheritanceBreakCommand_initOptions = function _SpoWebRoleInheritanceBreakCommand_initOptions() {
83
+ this.options.unshift({
84
+ option: '-u, --webUrl <webUrl>'
85
+ }, {
86
+ option: '-c, --clearExistingPermissions'
87
+ }, {
88
+ option: '--confirm'
89
+ });
90
+ }, _SpoWebRoleInheritanceBreakCommand_initValidators = function _SpoWebRoleInheritanceBreakCommand_initValidators() {
91
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
92
+ const isValidSharePointUrl = validation_1.validation.isValidSharePointUrl(args.options.webUrl);
93
+ if (isValidSharePointUrl !== true) {
94
+ return isValidSharePointUrl;
95
+ }
96
+ return true;
97
+ }));
98
+ };
99
+ module.exports = new SpoWebRoleInheritanceBreakCommand();
100
+ //# sourceMappingURL=web-roleinheritance-break.js.map
@@ -137,6 +137,7 @@ exports.default = {
137
137
  LISTITEM_RECORD_DECLARE: `${prefix} listitem record declare`,
138
138
  LISTITEM_RECORD_UNDECLARE: `${prefix} listitem record undeclare`,
139
139
  LISTITEM_REMOVE: `${prefix} listitem remove`,
140
+ LISTITEM_ROLEASSIGNMENT_ADD: `${prefix} listitem roleassignment add`,
140
141
  LISTITEM_ROLEASSIGNMENT_REMOVE: `${prefix} listitem roleassignment remove`,
141
142
  LISTITEM_ROLEINHERITANCE_BREAK: `${prefix} listitem roleinheritance break`,
142
143
  LISTITEM_ROLEINHERITANCE_RESET: `${prefix} listitem roleinheritance reset`,
@@ -283,6 +284,7 @@ exports.default = {
283
284
  WEB_REMOVE: `${prefix} web remove`,
284
285
  WEB_ROLEASSIGNMENT_REMOVE: `${prefix} web roleassignment remove`,
285
286
  WEB_ROLEASSIGNMENT_ADD: `${prefix} web roleassignment add`,
287
+ WEB_ROLEINHERITANCE_BREAK: `${prefix} web roleinheritance break`,
286
288
  WEB_ROLEINHERITANCE_RESET: `${prefix} web roleinheritance reset`,
287
289
  WEB_SET: `${prefix} web set`
288
290
  };
@@ -0,0 +1,89 @@
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
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
13
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
14
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15
+ };
16
+ var _TodoListGetCommand_instances, _TodoListGetCommand_initTelemetry, _TodoListGetCommand_initOptions, _TodoListGetCommand_initOptionSets;
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const request_1 = require("../../../../request");
19
+ const formatting_1 = require("../../../../utils/formatting");
20
+ const GraphCommand_1 = require("../../../base/GraphCommand");
21
+ const commands_1 = require("../../commands");
22
+ class TodoListGetCommand extends GraphCommand_1.default {
23
+ constructor() {
24
+ super();
25
+ _TodoListGetCommand_instances.add(this);
26
+ __classPrivateFieldGet(this, _TodoListGetCommand_instances, "m", _TodoListGetCommand_initTelemetry).call(this);
27
+ __classPrivateFieldGet(this, _TodoListGetCommand_instances, "m", _TodoListGetCommand_initOptions).call(this);
28
+ __classPrivateFieldGet(this, _TodoListGetCommand_instances, "m", _TodoListGetCommand_initOptionSets).call(this);
29
+ }
30
+ get name() {
31
+ return commands_1.default.LIST_GET;
32
+ }
33
+ get description() {
34
+ return 'Gets a specific list of Microsoft To Do task lists';
35
+ }
36
+ defaultProperties() {
37
+ return ['displayName', 'id'];
38
+ }
39
+ commandAction(logger, args) {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ try {
42
+ const item = yield this.getList(args.options);
43
+ logger.log(item);
44
+ }
45
+ catch (err) {
46
+ this.handleRejectedODataJsonPromise(err);
47
+ }
48
+ });
49
+ }
50
+ getList(options) {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ const requestOptions = {
53
+ headers: {
54
+ accept: 'application/json;odata.metadata=none'
55
+ },
56
+ responseType: 'json'
57
+ };
58
+ if (options.id) {
59
+ requestOptions.url = `${this.resource}/v1.0/me/todo/lists/${options.id}`;
60
+ const result = yield request_1.default.get(requestOptions);
61
+ return result;
62
+ }
63
+ requestOptions.url = `${this.resource}/v1.0/me/todo/lists?$filter=displayName eq '${formatting_1.formatting.encodeQueryParameter(options.name)}'`;
64
+ const result = yield request_1.default.get(requestOptions);
65
+ if (result.value.length === 0) {
66
+ throw `The specified list '${options.name}' does not exist.`;
67
+ }
68
+ return result.value[0];
69
+ });
70
+ }
71
+ }
72
+ _TodoListGetCommand_instances = new WeakSet(), _TodoListGetCommand_initTelemetry = function _TodoListGetCommand_initTelemetry() {
73
+ this.telemetry.push((args) => {
74
+ Object.assign(this.telemetryProperties, {
75
+ id: typeof args.options.id !== 'undefined',
76
+ name: typeof args.options.name !== 'undefined'
77
+ });
78
+ });
79
+ }, _TodoListGetCommand_initOptions = function _TodoListGetCommand_initOptions() {
80
+ this.options.unshift({
81
+ option: '-i, --id [id]'
82
+ }, {
83
+ option: '-n, --name [name]'
84
+ });
85
+ }, _TodoListGetCommand_initOptionSets = function _TodoListGetCommand_initOptionSets() {
86
+ this.optionSets.push(['id', 'name']);
87
+ };
88
+ module.exports = new TodoListGetCommand();
89
+ //# sourceMappingURL=list-get.js.map
@@ -0,0 +1,108 @@
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
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
13
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
14
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15
+ };
16
+ var _TodoTaskGetCommand_instances, _TodoTaskGetCommand_initTelemetry, _TodoTaskGetCommand_initOptions, _TodoTaskGetCommand_initOptionSets;
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const request_1 = require("../../../../request");
19
+ const GraphCommand_1 = require("../../../base/GraphCommand");
20
+ const commands_1 = require("../../commands");
21
+ class TodoTaskGetCommand extends GraphCommand_1.default {
22
+ constructor() {
23
+ super();
24
+ _TodoTaskGetCommand_instances.add(this);
25
+ __classPrivateFieldGet(this, _TodoTaskGetCommand_instances, "m", _TodoTaskGetCommand_initTelemetry).call(this);
26
+ __classPrivateFieldGet(this, _TodoTaskGetCommand_instances, "m", _TodoTaskGetCommand_initOptions).call(this);
27
+ __classPrivateFieldGet(this, _TodoTaskGetCommand_instances, "m", _TodoTaskGetCommand_initOptionSets).call(this);
28
+ }
29
+ get name() {
30
+ return commands_1.default.TASK_GET;
31
+ }
32
+ get description() {
33
+ return 'Get a specific task from a Microsoft To Do task list';
34
+ }
35
+ defaultProperties() {
36
+ return ['id', 'title', 'status', 'createdDateTime', 'lastModifiedDateTime'];
37
+ }
38
+ getTodoListId(args) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ if (args.options.listId) {
41
+ return args.options.listId;
42
+ }
43
+ const requestOptions = {
44
+ url: `${this.resource}/v1.0/me/todo/lists?$filter=displayName eq '${escape(args.options.listName)}'`,
45
+ headers: {
46
+ accept: 'application/json;odata.metadata=none'
47
+ },
48
+ responseType: 'json'
49
+ };
50
+ const response = yield request_1.default.get(requestOptions);
51
+ const taskList = response.value[0];
52
+ if (!taskList) {
53
+ throw `The specified task list does not exist`;
54
+ }
55
+ return taskList.id;
56
+ });
57
+ }
58
+ commandAction(logger, args) {
59
+ return __awaiter(this, void 0, void 0, function* () {
60
+ try {
61
+ const listId = yield this.getTodoListId(args);
62
+ const requestOptions = {
63
+ url: `${this.resource}/v1.0/me/todo/lists/${listId}/tasks/${args.options.id}`,
64
+ headers: {
65
+ accept: 'application/json;odata.metadata=none'
66
+ },
67
+ responseType: 'json'
68
+ };
69
+ const item = yield request_1.default.get(requestOptions);
70
+ if (args.options.output === 'json') {
71
+ logger.log(item);
72
+ }
73
+ else {
74
+ logger.log({
75
+ id: item.id,
76
+ title: item.title,
77
+ status: item.status,
78
+ createdDateTime: item.createdDateTime,
79
+ lastModifiedDateTime: item.lastModifiedDateTime
80
+ });
81
+ }
82
+ }
83
+ catch (err) {
84
+ this.handleRejectedODataJsonPromise(err);
85
+ }
86
+ });
87
+ }
88
+ }
89
+ _TodoTaskGetCommand_instances = new WeakSet(), _TodoTaskGetCommand_initTelemetry = function _TodoTaskGetCommand_initTelemetry() {
90
+ this.telemetry.push((args) => {
91
+ Object.assign(this.telemetryProperties, {
92
+ listId: typeof args.options.listId !== 'undefined',
93
+ listName: typeof args.options.listName !== 'undefined'
94
+ });
95
+ });
96
+ }, _TodoTaskGetCommand_initOptions = function _TodoTaskGetCommand_initOptions() {
97
+ this.options.unshift({
98
+ option: '-i, --id <id>'
99
+ }, {
100
+ option: '--listName [listName]'
101
+ }, {
102
+ option: '--listId [listId]'
103
+ });
104
+ }, _TodoTaskGetCommand_initOptionSets = function _TodoTaskGetCommand_initOptionSets() {
105
+ this.optionSets.push(['listId', 'listName']);
106
+ };
107
+ module.exports = new TodoTaskGetCommand();
108
+ //# sourceMappingURL=task-get.js.map
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const prefix = 'todo';
4
4
  exports.default = {
5
5
  LIST_ADD: `${prefix} list add`,
6
+ LIST_GET: `${prefix} list get`,
6
7
  LIST_LIST: `${prefix} list list`,
7
8
  LIST_REMOVE: `${prefix} list remove`,
8
9
  LIST_SET: `${prefix} list set`,
9
10
  TASK_ADD: `${prefix} task add`,
11
+ TASK_GET: `${prefix} task get`,
10
12
  TASK_LIST: `${prefix} task list`,
11
13
  TASK_REMOVE: `${prefix} task remove`,
12
14
  TASK_SET: `${prefix} task set`
@@ -46,3 +46,32 @@ Adds a Microsoft Planner bucket with the name _My Planner Bucket_ for plan with
46
46
  ```sh
47
47
  m365 planner bucket add --name "My Planner Bucket" --planTitle "My Planner Plan" --ownerGroupName "My Planner Group"
48
48
  ```
49
+
50
+ ## Response
51
+
52
+ === "JSON"
53
+
54
+ ```json
55
+ {
56
+ "name": "My Planner Bucket",
57
+ "planId": "xqQg5FS2LkCp935s-FIFm2QAFkHM",
58
+ "orderHint": "8585363889524958496",
59
+ "id": "ttEB_Uj690STdR3GC1MIDZgANq1U"
60
+ }
61
+ ```
62
+
63
+ === "Text"
64
+
65
+ ```text
66
+ id : ttEB_Uj690STdR3GC1MIDZgANq1U
67
+ name : My Planner Bucket
68
+ orderHint: 8585363889524958496
69
+ planId : xqQg5FS2LkCp935s-FIFm2QAFkHM
70
+ ```
71
+
72
+ === "CSV"
73
+
74
+ ```csv
75
+ id,name,planId,orderHint
76
+ ttEB_Uj690STdR3GC1MIDZgANq1U,My Planner Bucket,xqQg5FS2LkCp935s-FIFm2QAFkHM,8585363889524958496
77
+ ```
@@ -58,3 +58,32 @@ Gets the Microsoft Planner bucket in the Plan _My Plan_ owned by groupId ee0f40f
58
58
  ```sh
59
59
  m365 planner bucket get --name "Planner Bucket A" --planTitle "My Plan" --ownerGroupId "ee0f40fc-b2f7-45c7-b62d-11b90dd2ea8e"
60
60
  ```
61
+
62
+ ## Response
63
+
64
+ === "JSON"
65
+
66
+ ```json
67
+ {
68
+ "name": "My Planner Bucket",
69
+ "planId": "xqQg5FS2LkCp935s-FIFm2QAFkHM",
70
+ "orderHint": "8585363889524958496",
71
+ "id": "ttEB_Uj690STdR3GC1MIDZgANq1U"
72
+ }
73
+ ```
74
+
75
+ === "Text"
76
+
77
+ ```text
78
+ id : ttEB_Uj690STdR3GC1MIDZgANq1U
79
+ name : My Planner Bucket
80
+ orderHint: 8585363889524958496
81
+ planId : xqQg5FS2LkCp935s-FIFm2QAFkHM
82
+ ```
83
+
84
+ === "CSV"
85
+
86
+ ```csv
87
+ id,name,planId,orderHint
88
+ ttEB_Uj690STdR3GC1MIDZgANq1U,My Planner Bucket,xqQg5FS2LkCp935s-FIFm2QAFkHM,8585363889524958496
89
+ ```
@@ -40,3 +40,33 @@ Lists the Microsoft Planner buckets in the Plan _My Plan_ owned by group _My Gro
40
40
  ```sh
41
41
  m365 planner bucket list --planTitle "My Plan" --ownerGroupName "My Group"
42
42
  ```
43
+
44
+ ## Response
45
+
46
+ === "JSON"
47
+
48
+ ```json
49
+ [
50
+ {
51
+ "name": "My Planner Bucket",
52
+ "planId": "xqQg5FS2LkCp935s-FIFm2QAFkHM",
53
+ "orderHint": "8585363889524958496",
54
+ "id": "ttEB_Uj690STdR3GC1MIDZgANq1U"
55
+ }
56
+ ]
57
+ ```
58
+
59
+ === "Text"
60
+
61
+ ```text
62
+ id name planId orderHint
63
+ ---------------------------- ----------------- ---------------------------- -------------------
64
+ ttEB_Uj690STdR3GC1MIDZgANq1U My Planner Bucket xqQg5FS2LkCp935s-FIFm2QAFkHM 8585363889524958496
65
+ ```
66
+
67
+ === "CSV"
68
+
69
+ ```csv
70
+ id,name,planId,orderHint
71
+ ttEB_Uj690STdR3GC1MIDZgANq1U,My Planner Bucket,xqQg5FS2LkCp935s-FIFm2QAFkHM,8585363889524958496
72
+ ```
@@ -61,3 +61,7 @@ Removes the Microsoft Planner bucket with name _My Bucket_ in the Plan _My Plan_
61
61
  ```sh
62
62
  m365 planner bucket remove --name "My Bucket" --planTitle "My Plan" --ownerGroupName "My Group"
63
63
  ```
64
+
65
+ ## Response
66
+
67
+ The command won't return a response on success.
@@ -58,3 +58,7 @@ Updates the Microsoft Planner bucket named _My Bucket_ in the Plan _My Plan_ own
58
58
  ```sh
59
59
  m365 planner bucket set --name "My Bucket" --planTitle "My Plan" --ownerGroupId 00000000-0000-0000-0000-000000000000 --newName "New bucket name"
60
60
  ```
61
+
62
+ ## Response
63
+
64
+ The command won't return a response on success.
@@ -50,3 +50,126 @@ Adds a Microsoft Planner plan with the name _My Planner Plan_ for Group _My Plan
50
50
  ```sh
51
51
  m365 planner plan add --title 'My Planner Plan' --ownerGroupName 'My Planner Group' --shareWithUserNames 'Allan.Carroll@contoso.com,Ida.Stevens@contoso.com'
52
52
  ```
53
+
54
+ ## Response
55
+
56
+ ### Standard response
57
+
58
+ === "JSON"
59
+
60
+ ``` json
61
+ {
62
+ "createdDateTime": "2015-03-30T18:36:49.2407981Z",
63
+ "owner": "ebf3b108-5234-4e22-b93d-656d7dae5874",
64
+ "title": "My Planner Plan",
65
+ "id": "xqQg5FS2LkCp935s-FIFm2QAFkHM",
66
+ "createdBy": {
67
+ "user": {
68
+ "displayName": null,
69
+ "id": "95e27074-6c4a-447a-aa24-9d718a0b86fa"
70
+ },
71
+ "application": {
72
+ "displayName": null,
73
+ "id": "ebf3b108-5234-4e22-b93d-656d7dae5874"
74
+ }
75
+ },
76
+ "container": {
77
+ "containerId": "ebf3b108-5234-4e22-b93d-656d7dae5874",
78
+ "type": "group",
79
+ "url": "https://graph.microsoft.com/v1.0/groups/ebf3b108-5234-4e22-b93d-656d7dae5874"
80
+ }
81
+ }
82
+ ```
83
+
84
+ === "Text"
85
+
86
+ ``` text
87
+ createdDateTime: 2015-03-30T18:36:49.2407981Z
88
+ id : xqQg5FS2LkCp935s-FIFm2QAFkHM
89
+ owner : ebf3b108-5234-4e22-b93d-656d7dae5874
90
+ title : My Planner Plan
91
+ ```
92
+
93
+ === "CSV"
94
+
95
+ ``` text
96
+ id,title,createdDateTime,owner
97
+ xqQg5FS2LkCp935s-FIFm2QAFkHM,My Planner Plan,2015-03-30T18:36:49.2407981Z,ebf3b108-5234-4e22-b93d-656d7dae5874
98
+ ```
99
+
100
+ ### `shareWithUserIds`, `shareWithUserNames` response
101
+
102
+ When we make use of the option `shareWithUserIds` or `shareWithUserNames` the response will differ.
103
+
104
+ === "JSON"
105
+
106
+ ```json
107
+ {
108
+ "createdDateTime": "2015-03-30T18:36:49.2407981Z",
109
+ "owner": "ebf3b108-5234-4e22-b93d-656d7dae5874",
110
+ "title": "My Planner Plan",
111
+ "id": "xqQg5FS2LkCp935s-FIFm2QAFkHM",
112
+ "createdBy": {
113
+ "user": {
114
+ "displayName": null,
115
+ "id": "95e27074-6c4a-447a-aa24-9d718a0b86fa"
116
+ },
117
+ "application": {
118
+ "displayName": null,
119
+ "id": "ebf3b108-5234-4e22-b93d-656d7dae5874"
120
+ }
121
+ },
122
+ "container": {
123
+ "containerId": "ebf3b108-5234-4e22-b93d-656d7dae5874",
124
+ "type": "group",
125
+ "url": "https://graph.microsoft.com/v1.0/groups/ebf3b108-5234-4e22-b93d-656d7dae5874"
126
+ },
127
+ "sharedWith": {
128
+ "ebf3b108-5234-4e22-b93d-656d7dae5874": true,
129
+ "6463a5ce-2119-4198-9f2a-628761df4a62": true
130
+ },
131
+ "categoryDescriptions": {
132
+ "category1": null,
133
+ "category2": null,
134
+ "category3": null,
135
+ "category4": null,
136
+ "category5": null,
137
+ "category6": null,
138
+ "category7": null,
139
+ "category8": null,
140
+ "category9": null,
141
+ "category10": null,
142
+ "category11": null,
143
+ "category12": null,
144
+ "category13": null,
145
+ "category14": null,
146
+ "category15": null,
147
+ "category16": null,
148
+ "category17": null,
149
+ "category18": null,
150
+ "category19": null,
151
+ "category20": null,
152
+ "category21": null,
153
+ "category22": null,
154
+ "category23": null,
155
+ "category24": null,
156
+ "category25": null
157
+ }
158
+ }
159
+ ```
160
+
161
+ === "Text"
162
+
163
+ ```text
164
+ createdDateTime: 2015-03-30T18:36:49.2407981Z
165
+ id : xqQg5FS2LkCp935s-FIFm2QAFkHM
166
+ owner : ebf3b108-5234-4e22-b93d-656d7dae5874
167
+ title : My Planner Plan
168
+ ```
169
+
170
+ === "CSV"
171
+
172
+ ```csv
173
+ id,title,createdDateTime,owner
174
+ xqQg5FS2LkCp935s-FIFm2QAFkHM,My Planner Plan,2015-03-30T18:36:49.2407981Z,ebf3b108-5234-4e22-b93d-656d7dae5874
175
+ ```
@@ -55,3 +55,78 @@ Returns the Microsoft Planner plan with title _MyPlan_ for Group _My Planner Gro
55
55
  ```sh
56
56
  m365 planner plan get --title "MyPlan" --ownerGroupName "My Planner Group"
57
57
  ```
58
+
59
+ ## Response
60
+
61
+ === "JSON"
62
+
63
+ ```json
64
+ {
65
+ "createdDateTime": "2015-03-30T18:36:49.2407981Z",
66
+ "owner": "ebf3b108-5234-4e22-b93d-656d7dae5874",
67
+ "title": "My Planner Plan",
68
+ "id": "xqQg5FS2LkCp935s-FIFm2QAFkHM",
69
+ "createdBy": {
70
+ "user": {
71
+ "displayName": null,
72
+ "id": "95e27074-6c4a-447a-aa24-9d718a0b86fa"
73
+ },
74
+ "application": {
75
+ "displayName": null,
76
+ "id": "ebf3b108-5234-4e22-b93d-656d7dae5874"
77
+ }
78
+ },
79
+ "container": {
80
+ "containerId": "ebf3b108-5234-4e22-b93d-656d7dae5874",
81
+ "type": "group",
82
+ "url": "https://graph.microsoft.com/v1.0/groups/ebf3b108-5234-4e22-b93d-656d7dae5874"
83
+ },
84
+ "sharedWith": {
85
+ "ebf3b108-5234-4e22-b93d-656d7dae5874": true,
86
+ "6463a5ce-2119-4198-9f2a-628761df4a62": true
87
+ },
88
+ "categoryDescriptions": {
89
+ "category1": null,
90
+ "category2": null,
91
+ "category3": null,
92
+ "category4": null,
93
+ "category5": null,
94
+ "category6": null,
95
+ "category7": null,
96
+ "category8": null,
97
+ "category9": null,
98
+ "category10": null,
99
+ "category11": null,
100
+ "category12": null,
101
+ "category13": null,
102
+ "category14": null,
103
+ "category15": null,
104
+ "category16": null,
105
+ "category17": null,
106
+ "category18": null,
107
+ "category19": null,
108
+ "category20": null,
109
+ "category21": null,
110
+ "category22": null,
111
+ "category23": null,
112
+ "category24": null,
113
+ "category25": null
114
+ }
115
+ }
116
+ ```
117
+
118
+ === "Text"
119
+
120
+ ```text
121
+ createdDateTime: 2015-03-30T18:36:49.2407981Z
122
+ id : xqQg5FS2LkCp935s-FIFm2QAFkHM
123
+ owner : ebf3b108-5234-4e22-b93d-656d7dae5874
124
+ title : My Planner Plan
125
+ ```
126
+
127
+ === "CSV"
128
+
129
+ ```csv
130
+ id,title,createdDateTime,owner
131
+ xqQg5FS2LkCp935s-FIFm2QAFkHM,My Planner Plan,2015-03-30T18:36:49.2407981Z,ebf3b108-5234-4e22-b93d-656d7dae5874
132
+ ```