@autifyhq/autify-cli 0.27.0 → 0.28.0

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 (45) hide show
  1. package/README.md +6 -6
  2. package/dist/autify/connect/client-manager/DebugServerClient.js +1 -1
  3. package/dist/autify/connect/installClient.d.ts +1 -1
  4. package/dist/autify/connect/installClient.js +1 -1
  5. package/dist/autify/mobile/getBuildDetailUrl.js +1 -1
  6. package/dist/autify/mobile/getTestResultUrl.js +1 -1
  7. package/dist/autify/mobile/waitTestResult.js +2 -1
  8. package/dist/autify/web/getTestResultUrl.js +1 -1
  9. package/dist/autify/web/waitTestResult.js +2 -1
  10. package/dist/commands/connect/access-point/create.d.ts +3 -3
  11. package/dist/commands/connect/access-point/create.js +1 -1
  12. package/dist/commands/connect/access-point/set.d.ts +1 -1
  13. package/dist/commands/connect/client/install.d.ts +2 -4
  14. package/dist/commands/connect/client/install.js +6 -7
  15. package/dist/commands/connect/client/start.d.ts +3 -3
  16. package/dist/commands/mobile/api/describe-test-result.d.ts +2 -2
  17. package/dist/commands/mobile/api/list-test-results.d.ts +4 -4
  18. package/dist/commands/mobile/api/run-test-plan.d.ts +2 -2
  19. package/dist/commands/mobile/api/upload-build.d.ts +2 -2
  20. package/dist/commands/mobile/build/upload.d.ts +3 -5
  21. package/dist/commands/mobile/build/upload.js +4 -5
  22. package/dist/commands/mobile/test/run.d.ts +6 -8
  23. package/dist/commands/mobile/test/run.js +6 -6
  24. package/dist/commands/mobile/test/wait.d.ts +3 -5
  25. package/dist/commands/mobile/test/wait.js +4 -5
  26. package/dist/commands/web/api/create-access-point.d.ts +2 -2
  27. package/dist/commands/web/api/create-url-replacement.d.ts +2 -2
  28. package/dist/commands/web/api/delete-access-point.d.ts +2 -2
  29. package/dist/commands/web/api/delete-url-replacement.d.ts +2 -2
  30. package/dist/commands/web/api/describe-result.d.ts +2 -2
  31. package/dist/commands/web/api/describe-scenario.d.ts +2 -2
  32. package/dist/commands/web/api/execute-scenarios.d.ts +2 -2
  33. package/dist/commands/web/api/execute-schedule.d.ts +2 -2
  34. package/dist/commands/web/api/list-access-points.d.ts +2 -2
  35. package/dist/commands/web/api/list-capabilities.d.ts +4 -4
  36. package/dist/commands/web/api/list-results.d.ts +4 -4
  37. package/dist/commands/web/api/list-scenarios.d.ts +2 -2
  38. package/dist/commands/web/api/list-url-replacements.d.ts +1 -1
  39. package/dist/commands/web/api/update-url-replacement.d.ts +3 -3
  40. package/dist/commands/web/test/run.d.ts +14 -16
  41. package/dist/commands/web/test/run.js +5 -8
  42. package/dist/commands/web/test/wait.d.ts +3 -5
  43. package/dist/commands/web/test/wait.js +4 -5
  44. package/oclif.manifest.json +2 -2
  45. package/package.json +15 -13
package/README.md CHANGED
@@ -103,7 +103,7 @@ USAGE
103
103
  $ autify connect client install [VERSION]
104
104
 
105
105
  ARGUMENTS
106
- VERSION [default: v1.0.0] Specify the target version of Autify Connect Client.
106
+ VERSION [default: v1.0.2] Specify the target version of Autify Connect Client.
107
107
 
108
108
  DESCRIPTION
109
109
  Install Autify Connect Client
@@ -280,7 +280,7 @@ Upload a build file
280
280
 
281
281
  ```
282
282
  USAGE
283
- $ autify mobile build upload [BUILD-PATH] -w <value> [--json]
283
+ $ autify mobile build upload BUILD-PATH -w <value> [--json]
284
284
 
285
285
  ARGUMENTS
286
286
  BUILD-PATH File path to the iOS app (*.app) or Android app (*.apk).
@@ -312,7 +312,7 @@ Run a test plan.
312
312
 
313
313
  ```
314
314
  USAGE
315
- $ autify mobile test run [TEST-PLAN-URL] [--build-id <value> | --build-path <value>] [-w] [-t <value>] [-v]
315
+ $ autify mobile test run TEST-PLAN-URL [--build-id <value> | --build-path <value>] [-w] [-t <value>] [-v]
316
316
  [--max-retry-count <value>]
317
317
 
318
318
  ARGUMENTS
@@ -350,7 +350,7 @@ Wait a test result until it finishes.
350
350
 
351
351
  ```
352
352
  USAGE
353
- $ autify mobile test wait [TEST-RESULT-URL] [-t <value>] [-v]
353
+ $ autify mobile test wait TEST-RESULT-URL [-t <value>] [-v]
354
354
 
355
355
  ARGUMENTS
356
356
  TEST-RESULT-URL Test result URL e.g. https://mobile-app.autify.com/projects/<ID>/results/<ID>
@@ -711,7 +711,7 @@ Run a scenario or test plan.
711
711
 
712
712
  ```
713
713
  USAGE
714
- $ autify web test run [SCENARIO-OR-TEST-PLAN-URL] [-n <value>] [-r <value>] [--autify-connect <value> |
714
+ $ autify web test run SCENARIO-OR-TEST-PLAN-URL [-n <value>] [-r <value>] [--autify-connect <value> |
715
715
  --autify-connect-client] [--autify-connect-client-verbose ] [--autify-connect-client-file-logging ]
716
716
  [--autify-connect-client-debug-server-port <value> ] [--autify-connect-client-extra-arguments <value> ] [--os
717
717
  <value>] [--os-version <value>] [--browser <value>] [--device <value>] [--device-type <value>] [-w] [-t <value>]
@@ -788,7 +788,7 @@ Wait a test result until it finishes.
788
788
 
789
789
  ```
790
790
  USAGE
791
- $ autify web test wait [TEST-RESULT-URL] [-t <value>] [-v]
791
+ $ autify web test wait TEST-RESULT-URL [-t <value>] [-v]
792
792
 
793
793
  ARGUMENTS
794
794
  TEST-RESULT-URL Test result URL e.g. https://app.autify.com/projects/<ID>/results/<ID>
@@ -39,7 +39,7 @@ class DebugServerClient {
39
39
  const timeout = setTimeout(() => controller.abort(), 1000);
40
40
  let response;
41
41
  try {
42
- response = await (0, node_fetch_1.default)(`http://localhost:${this.port}${path}`, {
42
+ response = await (0, node_fetch_1.default)(`http://127.0.0.1:${this.port}${path}`, {
43
43
  method,
44
44
  signal: controller.signal,
45
45
  });
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import { CLIError } from "@oclif/errors";
3
- export declare const AUTIFY_CONNECT_CLIENT_SUPPORTED_VERSION = "v1.0.0";
3
+ export declare const AUTIFY_CONNECT_CLIENT_SUPPORTED_VERSION = "v1.0.2";
4
4
  export declare const getConnectClientSourceUrl: (configDir: string, version: string) => {
5
5
  url: URL;
6
6
  expectedVersion: string | undefined;
@@ -15,7 +15,7 @@ const node_child_process_1 = require("node:child_process");
15
15
  const tar_1 = tslib_1.__importDefault(require("tar"));
16
16
  const config_1 = require("../../config");
17
17
  // Update whenever to bump supported version.
18
- exports.AUTIFY_CONNECT_CLIENT_SUPPORTED_VERSION = "v1.0.0";
18
+ exports.AUTIFY_CONNECT_CLIENT_SUPPORTED_VERSION = "v1.0.2";
19
19
  const getMode = (configDir) => {
20
20
  const mode = (0, config_1.get)(configDir, "AUTIFY_CONNECT_CLIENT_MODE");
21
21
  if (!mode)
@@ -8,7 +8,7 @@ const getBuildDetailUrl = (configDir, workspaceId, os, buildId) => {
8
8
  var _a;
9
9
  // Currently, it's heuristic. We could provide a new API or include the URL in the response of the existing APIs.
10
10
  let basePath = (_a = (0, config_1.get)(configDir, "AUTIFY_MOBILE_BASE_PATH")) !== null && _a !== void 0 ? _a : autify_sdk_1.MOBILE_BASE_PATH;
11
- if (basePath.startsWith("http://localhost:"))
11
+ if (basePath.startsWith("http://127.0.0.1:"))
12
12
  basePath = autify_sdk_1.MOBILE_BASE_PATH; // Override if it's running integration tests.
13
13
  const endpoint = basePath.slice(0, Math.max(0, basePath.indexOf("/api/v1"))); // Assuming the UI endpoint is the same as API endpoint.
14
14
  // Currently, there is no way to know the page number via API. We assume the latest build will be shown in page 1 now.
@@ -8,7 +8,7 @@ const getMobileTestResultUrl = (configDir, workspaceId, resultId) => {
8
8
  var _a;
9
9
  // Currently, it's heuristic. We could provide a new API or include the URL in the response of the existing APIs.
10
10
  let basePath = (_a = (0, config_1.get)(configDir, "AUTIFY_MOBILE_BASE_PATH")) !== null && _a !== void 0 ? _a : autify_sdk_1.MOBILE_BASE_PATH;
11
- if (basePath.startsWith("http://localhost:"))
11
+ if (basePath.startsWith("http://127.0.0.1:"))
12
12
  basePath = autify_sdk_1.MOBILE_BASE_PATH; // Override if it's running integration tests.
13
13
  const endpoint = basePath.slice(0, Math.max(0, basePath.indexOf("/api/v1"))); // Assuming the UI endpoint is the same as API endpoint.
14
14
  return `${endpoint}/projects/${workspaceId}/results/${resultId}`;
@@ -29,7 +29,8 @@ const waitUntil = async (callback, timeoutSecond, intervalSecond, verbose) => {
29
29
  renderer: verbose ? "verbose" : "default",
30
30
  nonTTYRenderer: "verbose",
31
31
  });
32
- return (await task.run()).result;
32
+ const res = await task.run();
33
+ return res.result;
33
34
  };
34
35
  const emojiStatus = (status) => {
35
36
  if (status === "queuing")
@@ -8,7 +8,7 @@ const getWebTestResultUrl = (configDir, workspaceId, resultId) => {
8
8
  var _a;
9
9
  // Currently, it's heuristic. We could provide a new API or include the URL in the response of the existing APIs.
10
10
  let basePath = (_a = (0, config_1.get)(configDir, "AUTIFY_WEB_BASE_PATH")) !== null && _a !== void 0 ? _a : autify_sdk_1.WEB_BASE_PATH;
11
- if (basePath.startsWith("http://localhost:"))
11
+ if (basePath.startsWith("http://127.0.0.1:"))
12
12
  basePath = autify_sdk_1.WEB_BASE_PATH; // Override if it's running integration tests.
13
13
  const endpoint = basePath.slice(0, Math.max(0, basePath.indexOf("/api/v1"))); // Assuming the UI endpoint is the same as API endpoint.
14
14
  return `${endpoint}/projects/${workspaceId}/results/${resultId}`;
@@ -38,7 +38,8 @@ const waitUntil = async (callback, timeoutSecond, intervalSecond, verbose) => {
38
38
  renderer: verbose ? "verbose" : "default",
39
39
  nonTTYRenderer: "verbose",
40
40
  });
41
- return (await task.run()).result;
41
+ const res = await task.run();
42
+ return res.result;
42
43
  };
43
44
  const emojiStatus = (status) => {
44
45
  if (status === "queuing")
@@ -3,9 +3,9 @@ export default class ConnectAccessPointCreate extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- name: import("@oclif/core/lib/interfaces").OptionFlag<string>;
7
- "web-workspace-id": import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
6
+ name: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
+ "web-workspace-id": import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
8
  };
9
- static args: never[];
9
+ static args: {};
10
10
  run(): Promise<void>;
11
11
  }
@@ -35,4 +35,4 @@ ConnectAccessPointCreate.flags = {
35
35
  exactlyOne: ["web-workspace-id"],
36
36
  }),
37
37
  };
38
- ConnectAccessPointCreate.args = [];
38
+ ConnectAccessPointCreate.args = {};
@@ -3,7 +3,7 @@ export default class ConnectAccessPointSet extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- name: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ name: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
7
  };
8
8
  run(): Promise<void>;
9
9
  private readKeyFromStdin;
@@ -4,9 +4,7 @@ export default class ConnectClientInstall extends Command {
4
4
  static examples: string[];
5
5
  static flags: {};
6
6
  static args: {
7
- name: string;
8
- description: string;
9
- default: string;
10
- }[];
7
+ version: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
8
+ };
11
9
  run(): Promise<void>;
12
10
  }
@@ -7,9 +7,9 @@ class ConnectClientInstall extends core_1.Command {
7
7
  const { args } = await this.parse(ConnectClientInstall);
8
8
  const { configDir, cacheDir } = this.config;
9
9
  const { url, expectedVersion } = (0, installClient_1.getConnectClientSourceUrl)(configDir, args.version);
10
- core_1.CliUx.ux.action.start(`Installing Autify Connect Client from ${url})`, "installing", { stdout: true });
10
+ core_1.ux.action.start(`Installing Autify Connect Client from ${url})`, "installing", { stdout: true });
11
11
  const { version, path } = await (0, installClient_1.installClient)(configDir, cacheDir, url, expectedVersion);
12
- core_1.CliUx.ux.action.stop();
12
+ core_1.ux.action.stop();
13
13
  this.log(`Successfully installed Autify Connect Client (path: ${path}, version: ${version})`);
14
14
  }
15
15
  }
@@ -21,10 +21,9 @@ ConnectClientInstall.examples = [
21
21
  "Install a stable version:\n<%= config.bin %> <%= command.id %> stable",
22
22
  ];
23
23
  ConnectClientInstall.flags = {};
24
- ConnectClientInstall.args = [
25
- {
26
- name: "version",
24
+ ConnectClientInstall.args = {
25
+ version: core_1.Args.string({
27
26
  description: "Specify the target version of Autify Connect Client.",
28
27
  default: installClient_1.AUTIFY_CONNECT_CLIENT_SUPPORTED_VERSION,
29
- },
30
- ];
28
+ }),
29
+ };
@@ -5,9 +5,9 @@ export default class ConnectClientStart extends Command {
5
5
  static flags: {
6
6
  verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
7
7
  "file-logging": import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
8
- "debug-server-port": import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
9
- "web-workspace-id": import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
10
- "extra-arguments": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
8
+ "debug-server-port": import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
9
+ "web-workspace-id": import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
10
+ "extra-arguments": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
11
11
  };
12
12
  run(): Promise<void>;
13
13
  }
@@ -3,8 +3,8 @@ export default class MobileApiDescribeTestResult extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- "project-id": import("@oclif/core/lib/interfaces").OptionFlag<string>;
7
- id: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ "project-id": import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
+ id: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
8
  };
9
9
  run(): Promise<void>;
10
10
  }
@@ -3,10 +3,10 @@ export default class MobileApiListTestResults extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- "project-id": import("@oclif/core/lib/interfaces").OptionFlag<string>;
7
- page: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
8
- "per-page": import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
9
- "test-plan-id": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
6
+ "project-id": import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
+ page: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
+ "per-page": import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
9
+ "test-plan-id": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
10
10
  };
11
11
  run(): Promise<void>;
12
12
  }
@@ -3,8 +3,8 @@ export default class MobileApiRunTestPlan extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- "test-plan-id": import("@oclif/core/lib/interfaces").OptionFlag<string>;
7
- "run-test-plan-request": import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ "test-plan-id": import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
+ "run-test-plan-request": import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
8
  };
9
9
  run(): Promise<void>;
10
10
  }
@@ -3,8 +3,8 @@ export default class MobileApiUploadBuild extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- "project-id": import("@oclif/core/lib/interfaces").OptionFlag<string>;
7
- file: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ "project-id": import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
+ file: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
8
  };
9
9
  run(): Promise<void>;
10
10
  }
@@ -4,13 +4,11 @@ export default class MobileBuildUpload extends Command {
4
4
  static description: string;
5
5
  static examples: string[];
6
6
  static flags: {
7
- "workspace-id": import("@oclif/core/lib/interfaces").OptionFlag<string>;
7
+ "workspace-id": import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
8
  };
9
9
  static args: {
10
- name: string;
11
- description: string;
12
- required: boolean;
13
- }[];
10
+ "build-path": import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
11
+ };
14
12
  run(): Promise<{
15
13
  buildId: string;
16
14
  }>;
@@ -34,10 +34,9 @@ MobileBuildUpload.flags = {
34
34
  required: true,
35
35
  }),
36
36
  };
37
- MobileBuildUpload.args = [
38
- {
39
- name: "build-path",
37
+ MobileBuildUpload.args = {
38
+ "build-path": core_1.Args.string({
40
39
  description: "File path to the iOS app (*.app) or Android app (*.apk).",
41
40
  required: true,
42
- },
43
- ];
41
+ }),
42
+ };
@@ -3,17 +3,15 @@ export default class MobileTestRun extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- "build-id": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
- "build-path": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
6
+ "build-id": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
+ "build-path": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
8
  wait: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
- timeout: import("@oclif/core/lib/interfaces").OptionFlag<number>;
9
+ timeout: import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
10
10
  verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
- "max-retry-count": import("@oclif/core/lib/interfaces").OptionFlag<number>;
11
+ "max-retry-count": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
12
12
  };
13
13
  static args: {
14
- name: string;
15
- description: string;
16
- required: boolean;
17
- }[];
14
+ "test-plan-url": import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
15
+ };
18
16
  run(): Promise<void>;
19
17
  }
@@ -20,7 +20,8 @@ class MobileTestRun extends core_1.Command {
20
20
  if (buildPath) {
21
21
  const uploadArgs = ["--workspace-id", workspaceId, buildPath];
22
22
  const uploadCommand = new upload_1.default(uploadArgs, this.config);
23
- buildId = (await uploadCommand.run()).buildId;
23
+ const res = await uploadCommand.run();
24
+ buildId = res.buildId;
24
25
  }
25
26
  const runTestPlanOnce = async () => {
26
27
  const res = await client.runTestPlan(testPlanId, {
@@ -107,10 +108,9 @@ MobileTestRun.flags = {
107
108
  default: 0,
108
109
  }),
109
110
  };
110
- MobileTestRun.args = [
111
- {
112
- name: "test-plan-url",
111
+ MobileTestRun.args = {
112
+ "test-plan-url": core_1.Args.string({
113
113
  description: "Test plan URL e.g. https://mobile-app.autify.com/projects/<ID>/test_plans/<ID>",
114
114
  required: true,
115
- },
116
- ];
115
+ }),
116
+ };
@@ -3,13 +3,11 @@ export default class MobileTestWait extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- timeout: import("@oclif/core/lib/interfaces").OptionFlag<number>;
6
+ timeout: import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
7
  verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
8
8
  };
9
9
  static args: {
10
- name: string;
11
- description: string;
12
- required: boolean;
13
- }[];
10
+ "test-result-url": import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
11
+ };
14
12
  run(): Promise<void>;
15
13
  }
@@ -49,10 +49,9 @@ MobileTestWait.flags = {
49
49
  default: false,
50
50
  }),
51
51
  };
52
- MobileTestWait.args = [
53
- {
54
- name: "test-result-url",
52
+ MobileTestWait.args = {
53
+ "test-result-url": core_1.Args.string({
55
54
  description: "Test result URL e.g. https://mobile-app.autify.com/projects/<ID>/results/<ID>",
56
55
  required: true,
57
- },
58
- ];
56
+ }),
57
+ };
@@ -3,8 +3,8 @@ export default class WebApiCreateAccessPoint extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- "project-id": import("@oclif/core/lib/interfaces").OptionFlag<number>;
7
- "create-access-point-request": import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ "project-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
+ "create-access-point-request": import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
8
  };
9
9
  run(): Promise<void>;
10
10
  }
@@ -3,8 +3,8 @@ export default class WebApiCreateUrlReplacement extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- "test-plan-id": import("@oclif/core/lib/interfaces").OptionFlag<number>;
7
- "create-url-replacement-request": import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ "test-plan-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
+ "create-url-replacement-request": import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
8
  };
9
9
  run(): Promise<void>;
10
10
  }
@@ -3,8 +3,8 @@ export default class WebApiDeleteAccessPoint extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- "project-id": import("@oclif/core/lib/interfaces").OptionFlag<number>;
7
- "delete-access-point-request": import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ "project-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
+ "delete-access-point-request": import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
8
  };
9
9
  run(): Promise<void>;
10
10
  }
@@ -3,8 +3,8 @@ export default class WebApiDeleteUrlReplacement extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- "test-plan-id": import("@oclif/core/lib/interfaces").OptionFlag<number>;
7
- "url-replacement-id": import("@oclif/core/lib/interfaces").OptionFlag<number>;
6
+ "test-plan-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
+ "url-replacement-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
8
  };
9
9
  run(): Promise<void>;
10
10
  }
@@ -3,8 +3,8 @@ export default class WebApiDescribeResult extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- "project-id": import("@oclif/core/lib/interfaces").OptionFlag<number>;
7
- "result-id": import("@oclif/core/lib/interfaces").OptionFlag<number>;
6
+ "project-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
+ "result-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
8
  };
9
9
  run(): Promise<void>;
10
10
  }
@@ -3,8 +3,8 @@ export default class WebApiDescribeScenario extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- "project-id": import("@oclif/core/lib/interfaces").OptionFlag<number>;
7
- "scenario-id": import("@oclif/core/lib/interfaces").OptionFlag<number>;
6
+ "project-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
+ "scenario-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
8
  };
9
9
  run(): Promise<void>;
10
10
  }
@@ -3,8 +3,8 @@ export default class WebApiExecuteScenarios extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- "project-id": import("@oclif/core/lib/interfaces").OptionFlag<number>;
7
- "execute-scenarios-request": import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ "project-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
+ "execute-scenarios-request": import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
8
  };
9
9
  run(): Promise<void>;
10
10
  }
@@ -3,8 +3,8 @@ export default class WebApiExecuteSchedule extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- "schedule-id": import("@oclif/core/lib/interfaces").OptionFlag<number>;
7
- "execute-schedule-request": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
6
+ "schedule-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
+ "execute-schedule-request": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
8
  };
9
9
  run(): Promise<void>;
10
10
  }
@@ -3,8 +3,8 @@ export default class WebApiListAccessPoints extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- "project-id": import("@oclif/core/lib/interfaces").OptionFlag<number>;
7
- page: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
6
+ "project-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
+ page: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
8
  };
9
9
  run(): Promise<void>;
10
10
  }
@@ -3,10 +3,10 @@ export default class WebApiListCapabilities extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- "project-id": import("@oclif/core/lib/interfaces").OptionFlag<number>;
7
- os: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
8
- browser: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
9
- "device-type": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
6
+ "project-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
+ os: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
+ browser: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
9
+ "device-type": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
10
10
  };
11
11
  run(): Promise<void>;
12
12
  }
@@ -3,10 +3,10 @@ export default class WebApiListResults extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- "project-id": import("@oclif/core/lib/interfaces").OptionFlag<number>;
7
- page: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
8
- "per-page": import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
9
- "test-plan-id": import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
6
+ "project-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
+ page: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
+ "per-page": import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
9
+ "test-plan-id": import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
10
10
  };
11
11
  run(): Promise<void>;
12
12
  }
@@ -3,8 +3,8 @@ export default class WebApiListScenarios extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- "project-id": import("@oclif/core/lib/interfaces").OptionFlag<number>;
7
- page: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
6
+ "project-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
+ page: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
8
  };
9
9
  run(): Promise<void>;
10
10
  }
@@ -3,7 +3,7 @@ export default class WebApiListUrlReplacements extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- "test-plan-id": import("@oclif/core/lib/interfaces").OptionFlag<number>;
6
+ "test-plan-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
7
  };
8
8
  run(): Promise<void>;
9
9
  }
@@ -3,9 +3,9 @@ export default class WebApiUpdateUrlReplacement extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- "test-plan-id": import("@oclif/core/lib/interfaces").OptionFlag<number>;
7
- "url-replacement-id": import("@oclif/core/lib/interfaces").OptionFlag<number>;
8
- "update-url-replacement-request": import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ "test-plan-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
+ "url-replacement-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
+ "update-url-replacement-request": import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
9
9
  };
10
10
  run(): Promise<void>;
11
11
  }
@@ -3,28 +3,26 @@ export default class WebTestRun extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- name: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
- "url-replacements": import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined>;
8
- "autify-connect": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
6
+ name: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
+ "url-replacements": import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
+ "autify-connect": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
9
9
  "autify-connect-client": import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
10
  "autify-connect-client-verbose": import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  "autify-connect-client-file-logging": import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
12
- "autify-connect-client-debug-server-port": import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
13
- "autify-connect-client-extra-arguments": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
14
- os: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
15
- "os-version": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
16
- browser: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
17
- device: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
18
- "device-type": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
12
+ "autify-connect-client-debug-server-port": import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
13
+ "autify-connect-client-extra-arguments": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
14
+ os: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
15
+ "os-version": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
16
+ browser: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
17
+ device: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
18
+ "device-type": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
19
19
  wait: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
20
- timeout: import("@oclif/core/lib/interfaces").OptionFlag<number>;
20
+ timeout: import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
21
21
  verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
22
- "max-retry-count": import("@oclif/core/lib/interfaces").OptionFlag<number>;
22
+ "max-retry-count": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
23
23
  };
24
24
  static args: {
25
- name: string;
26
- description: string;
27
- required: boolean;
28
- }[];
25
+ "scenario-or-test-plan-url": import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
26
+ };
29
27
  run(): Promise<void>;
30
28
  }
@@ -18,9 +18,7 @@ const parseUrlReplacements = (urlReplacements) => {
18
18
  return { pattern_url, replacement_url };
19
19
  });
20
20
  };
21
- const urlReplacementsToString = (
22
- // eslint-disable-next-line camelcase
23
- urlReplacements) => {
21
+ const urlReplacementsToString = (urlReplacements) => {
24
22
  return urlReplacements
25
23
  .map((urlReplacement) => {
26
24
  return `${urlReplacement.pattern_url} => ${urlReplacement.replacement_url}`;
@@ -210,10 +208,9 @@ WebTestRun.flags = {
210
208
  default: 0,
211
209
  }),
212
210
  };
213
- WebTestRun.args = [
214
- {
215
- name: "scenario-or-test-plan-url",
211
+ WebTestRun.args = {
212
+ "scenario-or-test-plan-url": core_1.Args.string({
216
213
  description: "Scenario URL or Test plan URL e.g. https://app.autify.com/projects/<ID>/(scenarios|test_plans)/<ID>",
217
214
  required: true,
218
- },
219
- ];
215
+ }),
216
+ };
@@ -3,13 +3,11 @@ export default class WebTestWait extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- timeout: import("@oclif/core/lib/interfaces").OptionFlag<number>;
6
+ timeout: import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
7
  verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
8
8
  };
9
9
  static args: {
10
- name: string;
11
- description: string;
12
- required: boolean;
13
- }[];
10
+ "test-result-url": import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
11
+ };
14
12
  run(): Promise<void>;
15
13
  }
@@ -49,10 +49,9 @@ WebTestWait.flags = {
49
49
  default: false,
50
50
  }),
51
51
  };
52
- WebTestWait.args = [
53
- {
54
- name: "test-result-url",
52
+ WebTestWait.args = {
53
+ "test-result-url": core_1.Args.string({
55
54
  description: "Test result URL e.g. https://app.autify.com/projects/<ID>/results/<ID>",
56
55
  required: true,
57
- },
58
- ];
56
+ }),
57
+ };
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.27.0",
2
+ "version": "0.28.0",
3
3
  "commands": {
4
4
  "connect:access-point:create": {
5
5
  "id": "connect:access-point:create",
@@ -70,7 +70,7 @@
70
70
  "version": {
71
71
  "name": "version",
72
72
  "description": "Specify the target version of Autify Connect Client.",
73
- "default": "v1.0.0"
73
+ "default": "v1.0.2"
74
74
  }
75
75
  }
76
76
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autifyhq/autify-cli",
3
- "version": "0.27.0",
3
+ "version": "0.28.0",
4
4
  "description": "Autify Command Line Interface (CLI)",
5
5
  "author": "Autify",
6
6
  "bin": {
@@ -17,8 +17,8 @@
17
17
  "/oclif.manifest.json"
18
18
  ],
19
19
  "dependencies": {
20
- "@autifyhq/autify-sdk": "^0.11.0",
21
- "@oclif/core": "^1.26.1",
20
+ "@autifyhq/autify-sdk": "^0.12.0",
21
+ "@oclif/core": "^2.6.2",
22
22
  "@oclif/errors": "^1.3.6",
23
23
  "@oclif/plugin-help": "^5.2.4",
24
24
  "@oclif/plugin-not-found": "^2.3.18",
@@ -39,8 +39,8 @@
39
39
  "tempy": "^3.0.0",
40
40
  "tsimportlib": "^0.0.3",
41
41
  "unzip-stream": "^0.3.1",
42
- "uuid": "^8.3.2",
43
- "which": "^2.0.2",
42
+ "uuid": "^9.0.0",
43
+ "which": "^3.0.0",
44
44
  "winston": "^3.8.2",
45
45
  "xstate": "^4.35.4"
46
46
  },
@@ -51,28 +51,26 @@
51
51
  "@types/chai": "^4.3.4",
52
52
  "@types/inquirer": "^8.2.5",
53
53
  "@types/listr": "^0.14.4",
54
- "@types/mocha": "^9.1.1",
55
- "@types/node": "^16.18.12",
54
+ "@types/node": "^18.14.2",
56
55
  "@types/node-emoji": "^1.8.2",
57
56
  "@types/node-fetch": "^2.6.2",
58
57
  "@types/shell-quote": "^1.7.1",
59
58
  "@types/tar": "^6.1.3",
60
59
  "@types/unzip-stream": "^0.3.1",
61
- "@types/uuid": "^8.3.4",
60
+ "@types/uuid": "^9.0.1",
62
61
  "chai": "^4.3.7",
63
62
  "cross-env": "^7.0.3",
64
- "eslint": "^7.32.0",
63
+ "eslint": "^8.35.0",
65
64
  "eslint-config-oclif": "^4.0.0",
66
65
  "eslint-config-oclif-typescript": "^1.0.3",
67
66
  "eslint-config-prettier": "^8.6.0",
68
67
  "husky": "^8.0.3",
69
68
  "lint-staged": "^13.1.0",
70
- "mocha": "^9.2.2",
71
69
  "oclif": "^3.6.3",
72
70
  "patch-package": "^6.5.1",
73
71
  "prettier": "^2.8.3",
74
72
  "shx": "^0.3.4",
75
- "ts-morph": "^14.0.0",
73
+ "ts-morph": "^17.0.1",
76
74
  "ts-node": "^10.9.1",
77
75
  "tslib": "^2.5.0",
78
76
  "typed-emitter": "^2.1.0",
@@ -153,7 +151,6 @@
153
151
  "posttest": "npm run lint",
154
152
  "prepack": "npm run build && oclif manifest && oclif readme",
155
153
  "release": "ts-node ./scripts/release.ts",
156
- "test": "mocha --forbid-only \"test/**/*.test.ts\"",
157
154
  "test:integration": "npm run build -w integration-test && autify-cli-integration-test",
158
155
  "test:integration:dev": "npm run build -w integration-test && cross-env AUTIFY_CLI_PATH=../bin/dev autify-cli-integration-test",
159
156
  "test:integration:record": "npm run build -w integration-test && cross-env AUTIFY_CLI_INTEGRATION_TEST_RECORD=1 AUTIFY_CONNECT_CLIENT_MODE=real autify-cli-integration-test",
@@ -167,6 +164,11 @@
167
164
  "prepare:development": "husky install",
168
165
  "prepare:production": "true"
169
166
  },
167
+ "overrides": {
168
+ "eslint-plugin-unicorn": "^41.0.0",
169
+ "@typescript-eslint/parser": "^5.0.0",
170
+ "@typescript-eslint/eslint-plugin": "^5.0.0"
171
+ },
170
172
  "lint-staged": {
171
173
  "**/*.{md,json,yml,js,cjs}": "prettier --write",
172
174
  "**/*.ts": [
@@ -175,7 +177,7 @@
175
177
  ]
176
178
  },
177
179
  "engines": {
178
- "node": ">=12.0.0"
180
+ "node": ">=v18.14.2"
179
181
  },
180
182
  "bugs": "https://github.com/autifyhq/autify-cli/issues",
181
183
  "keywords": [