@pnp/cli-microsoft365 11.1.0-beta.1420877 → 11.1.0-beta.5b5ee32

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.
@@ -1,6 +1,8 @@
1
+ import { globalOptionsZod } from '../../../../Command.js';
1
2
  import { odata } from '../../../../utils/odata.js';
2
3
  import GraphCommand from '../../../base/GraphCommand.js';
3
4
  import commands from '../../commands.js';
5
+ const options = globalOptionsZod.strict();
4
6
  class BookingBusinessListCommand extends GraphCommand {
5
7
  get name() {
6
8
  return commands.BUSINESS_LIST;
@@ -8,6 +10,9 @@ class BookingBusinessListCommand extends GraphCommand {
8
10
  get description() {
9
11
  return 'Lists all Microsoft Bookings businesses that are created for the tenant.';
10
12
  }
13
+ get schema() {
14
+ return options;
15
+ }
11
16
  defaultProperties() {
12
17
  return ['id', 'displayName'];
13
18
  }
@@ -1,6 +1,7 @@
1
1
  import auth from '../../Auth.js';
2
- import Command, { CommandError } from '../../Command.js';
2
+ import Command, { CommandError, globalOptionsZod } from '../../Command.js';
3
3
  import commands from './commands.js';
4
+ const options = globalOptionsZod.strict();
4
5
  class StatusCommand extends Command {
5
6
  get name() {
6
7
  return commands.STATUS;
@@ -8,6 +9,9 @@ class StatusCommand extends Command {
8
9
  get description() {
9
10
  return 'Shows Microsoft 365 login status';
10
11
  }
12
+ get schema() {
13
+ return options;
14
+ }
11
15
  async commandAction(logger) {
12
16
  if (auth.connection.active) {
13
17
  try {
@@ -1,7 +1,8 @@
1
1
  import assert from 'assert';
2
2
  import auth from '../../../Auth.js';
3
- import Command, { CommandError } from '../../../Command.js';
3
+ import Command, { CommandError, globalOptionsZod } from '../../../Command.js';
4
4
  import commands from '../commands.js';
5
+ const options = globalOptionsZod.strict();
5
6
  class ConnectionListCommand extends Command {
6
7
  get name() {
7
8
  return commands.LIST;
@@ -9,6 +10,9 @@ class ConnectionListCommand extends Command {
9
10
  get description() {
10
11
  return 'Show the list of available connections';
11
12
  }
13
+ get schema() {
14
+ return options;
15
+ }
12
16
  defaultProperties() {
13
17
  return ['name', 'connectedAs', 'authType', 'active'];
14
18
  }
@@ -1,6 +1,8 @@
1
1
  import { odata } from '../../../../utils/odata.js';
2
2
  import PowerAutomateCommand from '../../../base/PowerAutomateCommand.js';
3
3
  import commands from '../../commands.js';
4
+ import { globalOptionsZod } from '../../../../Command.js';
5
+ const options = globalOptionsZod.strict();
4
6
  class FlowEnvironmentListCommand extends PowerAutomateCommand {
5
7
  get name() {
6
8
  return commands.ENVIRONMENT_LIST;
@@ -8,6 +10,9 @@ class FlowEnvironmentListCommand extends PowerAutomateCommand {
8
10
  get description() {
9
11
  return 'Lists Microsoft Flow environments in the current tenant';
10
12
  }
13
+ get schema() {
14
+ return options;
15
+ }
11
16
  defaultProperties() {
12
17
  return ['name', 'displayName'];
13
18
  }
@@ -1,8 +1,10 @@
1
+ import { globalOptionsZod } from '../../../Command.js';
1
2
  import config from "../../../config.js";
2
3
  import request from "../../../request.js";
3
4
  import { spo } from "../../../utils/spo.js";
4
5
  import SpoCommand from "../../base/SpoCommand.js";
5
6
  import commands from "../commands.js";
7
+ const options = globalOptionsZod.strict();
6
8
  class OneDriveListCommand extends SpoCommand {
7
9
  get name() {
8
10
  return commands.LIST;
@@ -10,6 +12,9 @@ class OneDriveListCommand extends SpoCommand {
10
12
  get description() {
11
13
  return "Retrieves a list of OneDrive sites";
12
14
  }
15
+ get schema() {
16
+ return options;
17
+ }
13
18
  defaultProperties() {
14
19
  return ['Title', 'Url'];
15
20
  }
@@ -1,6 +1,8 @@
1
+ import { globalOptionsZod } from '../../../../Command.js';
1
2
  import { odata } from '../../../../utils/odata.js';
2
3
  import GraphCommand from '../../../base/GraphCommand.js';
3
4
  import commands from '../../commands.js';
5
+ const options = globalOptionsZod.strict();
4
6
  class OutlookRoomListListCommand extends GraphCommand {
5
7
  get name() {
6
8
  return commands.ROOMLIST_LIST;
@@ -8,6 +10,9 @@ class OutlookRoomListListCommand extends GraphCommand {
8
10
  get description() {
9
11
  return 'Get a collection of available roomlists';
10
12
  }
13
+ get schema() {
14
+ return options;
15
+ }
11
16
  defaultProperties() {
12
17
  return ['id', 'displayName', 'phone', 'emailAddress'];
13
18
  }
@@ -1,6 +1,8 @@
1
1
  import request from '../../../../request.js';
2
2
  import PowerAppsCommand from '../../../base/PowerAppsCommand.js';
3
3
  import commands from '../../commands.js';
4
+ import { globalOptionsZod } from '../../../../Command.js';
5
+ const options = globalOptionsZod.strict();
4
6
  class PaEnvironmentListCommand extends PowerAppsCommand {
5
7
  get name() {
6
8
  return commands.ENVIRONMENT_LIST;
@@ -8,6 +10,9 @@ class PaEnvironmentListCommand extends PowerAppsCommand {
8
10
  get description() {
9
11
  return 'Lists Microsoft Power Apps environments in the current tenant';
10
12
  }
13
+ get schema() {
14
+ return options;
15
+ }
11
16
  defaultProperties() {
12
17
  return ['name', 'displayName'];
13
18
  }
@@ -1,12 +1,13 @@
1
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
- 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");
4
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
- };
6
- var _PpEnvironmentListCommand_instances, _PpEnvironmentListCommand_initTelemetry, _PpEnvironmentListCommand_initOptions;
7
1
  import request from '../../../../request.js';
8
2
  import PowerPlatformCommand from '../../../base/PowerPlatformCommand.js';
9
3
  import commands from '../../commands.js';
4
+ import { z } from 'zod';
5
+ import { globalOptionsZod } from '../../../../Command.js';
6
+ const options = globalOptionsZod
7
+ .extend({
8
+ asAdmin: z.boolean().optional()
9
+ })
10
+ .strict();
10
11
  class PpEnvironmentListCommand extends PowerPlatformCommand {
11
12
  get name() {
12
13
  return commands.ENVIRONMENT_LIST;
@@ -14,15 +15,12 @@ class PpEnvironmentListCommand extends PowerPlatformCommand {
14
15
  get description() {
15
16
  return 'Lists Microsoft Power Platform environments';
16
17
  }
18
+ get schema() {
19
+ return options;
20
+ }
17
21
  defaultProperties() {
18
22
  return ['name', 'displayName'];
19
23
  }
20
- constructor() {
21
- super();
22
- _PpEnvironmentListCommand_instances.add(this);
23
- __classPrivateFieldGet(this, _PpEnvironmentListCommand_instances, "m", _PpEnvironmentListCommand_initTelemetry).call(this);
24
- __classPrivateFieldGet(this, _PpEnvironmentListCommand_instances, "m", _PpEnvironmentListCommand_initOptions).call(this);
25
- }
26
24
  async commandAction(logger, args) {
27
25
  if (this.verbose) {
28
26
  await logger.logToStderr(`Retrieving list of Microsoft Power Platform environments...`);
@@ -55,16 +53,5 @@ class PpEnvironmentListCommand extends PowerPlatformCommand {
55
53
  }
56
54
  }
57
55
  }
58
- _PpEnvironmentListCommand_instances = new WeakSet(), _PpEnvironmentListCommand_initTelemetry = function _PpEnvironmentListCommand_initTelemetry() {
59
- this.telemetry.push((args) => {
60
- Object.assign(this.telemetryProperties, {
61
- asAdmin: !!args.options.asAdmin
62
- });
63
- });
64
- }, _PpEnvironmentListCommand_initOptions = function _PpEnvironmentListCommand_initOptions() {
65
- this.options.unshift({
66
- option: '--asAdmin'
67
- });
68
- };
69
56
  export default new PpEnvironmentListCommand();
70
57
  //# sourceMappingURL=environment-list.js.map
@@ -1,6 +1,8 @@
1
+ import { globalOptionsZod } from '../../../../Command.js';
1
2
  import { odata } from '../../../../utils/odata.js';
2
3
  import GraphCommand from '../../../base/GraphCommand.js';
3
4
  import commands from '../../commands.js';
5
+ const options = globalOptionsZod.strict();
4
6
  class PurviewRetentionEventListCommand extends GraphCommand {
5
7
  get name() {
6
8
  return commands.RETENTIONEVENT_LIST;
@@ -8,6 +10,9 @@ class PurviewRetentionEventListCommand extends GraphCommand {
8
10
  get description() {
9
11
  return 'Get a list of retention events';
10
12
  }
13
+ get schema() {
14
+ return options;
15
+ }
11
16
  defaultProperties() {
12
17
  return ['id', 'displayName', 'eventTriggerDateTime'];
13
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "11.1.0-beta.1420877",
3
+ "version": "11.1.0-beta.5b5ee32",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",
@@ -102,6 +102,11 @@
102
102
  "email": "mlingstuyl@live.com",
103
103
  "web": "https://www.blimped.nl/"
104
104
  },
105
+ {
106
+ "name": "Martin Machacek",
107
+ "email": "machacek@edhouse.cz",
108
+ "web": "https://github.com/MartinM85"
109
+ },
105
110
  {
106
111
  "name": "Jasey Waegebaert",
107
112
  "email": "38426621+Jwaegebaert@users.noreply.github.com",