@pnp/cli-microsoft365 11.1.0-beta.317d8bb → 11.1.0-beta.a3369ef

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
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,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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "11.1.0-beta.317d8bb",
3
+ "version": "11.1.0-beta.a3369ef",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",