@pnp/cli-microsoft365 5.4.0-beta.a265e0b → 5.4.0-beta.a467afc

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.
@@ -71,8 +71,11 @@ class AadAppSetCommand extends GraphCommand_1.default {
71
71
  if (this.verbose) {
72
72
  logger.logToStderr(`Configuring Azure AD application ID URI...`);
73
73
  }
74
+ const identifierUris = args.options.uri
75
+ .split(',')
76
+ .map(u => u.trim());
74
77
  const applicationInfo = {
75
- identifierUris: [args.options.uri]
78
+ identifierUris: identifierUris
76
79
  };
77
80
  const requestOptions = {
78
81
  url: `${this.resource}/v1.0/myorganization/applications/${objectId}`,
@@ -58,9 +58,9 @@ class FlowExportCommand extends AzmgmtCommand_1.default {
58
58
  logger.logToStderr(`Initiating package export for Microsoft Flow ${args.options.id}...`);
59
59
  }
60
60
  const requestOptions = {
61
- url: `${this.resource}providers/${formatArgument === 'json' ?
62
- `Microsoft.ProcessSimple/environments/${encodeURIComponent(args.options.environment)}/flows/${encodeURIComponent(args.options.id)}?api-version=2016-11-01`
63
- : `Microsoft.BusinessAppPlatform/environments/${encodeURIComponent(args.options.environment)}/exportPackage?api-version=2016-11-01`}`,
61
+ url: formatArgument === 'json' ?
62
+ `${this.resource}providers/Microsoft.ProcessSimple/environments/${encodeURIComponent(args.options.environment)}/flows/${encodeURIComponent(args.options.id)}?api-version=2016-11-01`
63
+ : `https://api.bap.microsoft.com/providers/Microsoft.BusinessAppPlatform/environments/${encodeURIComponent(args.options.environment)}/exportPackage?api-version=2016-11-01`,
64
64
  headers: {
65
65
  accept: 'application/json'
66
66
  },
@@ -0,0 +1,53 @@
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 PlannerTaskChecklistItemListCommand extends GraphCommand_1.default {
9
+ get name() {
10
+ return commands_1.default.TASK_CHECKLISTITEM_LIST;
11
+ }
12
+ get description() {
13
+ return "Lists the checklist items of a Planner task.";
14
+ }
15
+ defaultProperties() {
16
+ return ['id', 'title', 'isChecked'];
17
+ }
18
+ commandAction(logger, args, cb) {
19
+ if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
20
+ this.handleError('This command does not support application permissions.', logger, cb);
21
+ return;
22
+ }
23
+ const requestOptions = {
24
+ url: `${this.resource}/v1.0/planner/tasks/${encodeURIComponent(args.options.taskId)}/details?$select=checklist`,
25
+ headers: {
26
+ accept: "application/json;odata.metadata=none"
27
+ },
28
+ responseType: "json"
29
+ };
30
+ request_1.default.get(requestOptions).then((res) => {
31
+ if (!args.options.output || args.options.output === 'json') {
32
+ logger.log(res.checklist);
33
+ }
34
+ else {
35
+ //converted to text friendly output
36
+ const output = Object.getOwnPropertyNames(res.checklist).map(prop => (Object.assign({ id: prop }, res.checklist[prop])));
37
+ logger.log(output);
38
+ }
39
+ cb();
40
+ }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
41
+ }
42
+ options() {
43
+ const options = [
44
+ {
45
+ option: "-i, --taskId <taskId>"
46
+ }
47
+ ];
48
+ const parentOptions = super.options();
49
+ return options.concat(parentOptions);
50
+ }
51
+ }
52
+ module.exports = new PlannerTaskChecklistItemListCommand();
53
+ //# sourceMappingURL=task-checklistitem-list.js.map
@@ -13,6 +13,7 @@ exports.default = {
13
13
  PLAN_LIST: `${prefix} plan list`,
14
14
  TASK_ADD: `${prefix} task add`,
15
15
  TASK_CHECKLISTITEM_ADD: `${prefix} task checklistitem add`,
16
+ TASK_CHECKLISTITEM_LIST: `${prefix} task checklistitem list`,
16
17
  TASK_DETAILS_GET: `${prefix} task details get`,
17
18
  TASK_GET: `${prefix} task get`,
18
19
  TASK_LIST: `${prefix} task list`,
@@ -14,12 +14,18 @@ class SpoListListCommand extends SpoCommand_1.default {
14
14
  defaultProperties() {
15
15
  return ['Title', 'Url', 'Id'];
16
16
  }
17
+ getTelemetryProperties(args) {
18
+ const telemetryProps = super.getTelemetryProperties(args);
19
+ telemetryProps.executeWithLimitedPermissions = !!args.options.executeWithLimitedPermissions;
20
+ return telemetryProps;
21
+ }
17
22
  commandAction(logger, args, cb) {
18
23
  if (this.verbose) {
19
24
  logger.logToStderr(`Retrieving all lists in site at ${args.options.webUrl}...`);
20
25
  }
26
+ const suffix = args.options.executeWithLimitedPermissions ? '&$select=RootFolder/ServerRelativeUrl,*' : '';
21
27
  const requestOptions = {
22
- url: `${args.options.webUrl}/_api/web/lists?$expand=RootFolder`,
28
+ url: `${args.options.webUrl}/_api/web/lists?$expand=RootFolder${suffix}`,
23
29
  method: 'GET',
24
30
  headers: {
25
31
  'accept': 'application/json;odata=nometadata'
@@ -40,6 +46,9 @@ class SpoListListCommand extends SpoCommand_1.default {
40
46
  const options = [
41
47
  {
42
48
  option: '-u, --webUrl <webUrl>'
49
+ },
50
+ {
51
+ option: '--executeWithLimitedPermissions'
43
52
  }
44
53
  ];
45
54
  const parentOptions = super.options();
@@ -20,7 +20,7 @@ m365 aad app set [options]
20
20
  : Name of the Azure AD application registration to update. Specify either `appId`, `objectId` or `name`
21
21
 
22
22
  `-u, --uri [uri]`
23
- : Application ID URI to update
23
+ : Comma-separated list of Application ID URIs to update
24
24
 
25
25
  `-r, --redirectUris [redirectUris]`
26
26
  : Comma-separated list of redirect URIs to add to the app registration. Requires `platform` to be specified
@@ -0,0 +1,24 @@
1
+ # planner task checklistitem list
2
+
3
+ Lists the checklist items of a Planner task.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 planner task checklistitem list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-i, --taskId <taskId>`
14
+ : ID of the task
15
+
16
+ --8<-- "docs/cmd/_global.md"
17
+
18
+ ## Examples
19
+
20
+ Lists the checklist items of a Planner task.
21
+
22
+ ```sh
23
+ m365 planner task checklistitem list --taskId 'vzCcZoOv-U27PwydxHB8opcADJo-'
24
+ ```
@@ -13,6 +13,9 @@ m365 spo list list [options]
13
13
  `-u, --webUrl <webUrl>`
14
14
  : URL of the site where the lists to retrieve are located
15
15
 
16
+ `--executeWithLimitedPermissions`
17
+ : Use this option to execute this command with site member or visitor permissions. Not specifying this option will require site owner (or admin) permissions.
18
+
16
19
  --8<-- "docs/cmd/_global.md"
17
20
 
18
21
  ## Examples
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "5.4.0-beta.a265e0b",
3
+ "version": "5.4.0-beta.a467afc",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",