@autifyhq/autify-cli 0.45.0 → 0.47.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.
@@ -13,7 +13,7 @@ class WebApiExecuteSchedule extends core_1.Command {
13
13
  console.log(JSON.stringify(res.data, null, 2));
14
14
  }
15
15
  }
16
- WebApiExecuteSchedule.description = '"Schedule" is called as "Test Plan" now.\\ If you want to run a test plan, use this endpoint.';
16
+ WebApiExecuteSchedule.description = '"Schedule" is called as "Test Plan" now. If you want to run a test plan, use this endpoint.';
17
17
  WebApiExecuteSchedule.examples = ["<%= config.bin %> <%= command.id %>"];
18
18
  WebApiExecuteSchedule.flags = {
19
19
  "schedule-id": core_1.Flags.integer({
@@ -21,7 +21,7 @@ WebApiExecuteSchedule.flags = {
21
21
  required: true,
22
22
  }),
23
23
  "execute-schedule-request": core_1.Flags.string({
24
- description: "The options to execute a test plan.",
24
+ description: 'A JSON object with the options to execute a test plan. e.g. {"autify_connect":{"name":"string"}}',
25
25
  required: false,
26
26
  }),
27
27
  };
@@ -11,7 +11,7 @@ class WebApiGetCreditUsage extends core_1.Command {
11
11
  console.log(JSON.stringify(res.data, null, 2));
12
12
  }
13
13
  }
14
- WebApiGetCreditUsage.description = "Get the number of credits used in the project\\ \\ Notes:\\ This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.";
14
+ WebApiGetCreditUsage.description = "Get the number of credits used in the project Notes: This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.";
15
15
  WebApiGetCreditUsage.examples = ["<%= config.bin %> <%= command.id %>"];
16
16
  WebApiGetCreditUsage.flags = {
17
17
  "project-id": core_1.Flags.integer({
@@ -19,11 +19,11 @@ WebApiGetCreditUsage.flags = {
19
19
  required: true,
20
20
  }),
21
21
  "date-from": core_1.Flags.string({
22
- description: "The date to start counting used credits from.\\ If not specified, the date will be set to 1 week ago.\\ Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago.\\ Date must follow the format YYYY-MM-DD (example: &quot;2023-09-21&quot;).",
22
+ description: 'The date to start counting used credits from. If not specified, the date will be set to 1 week ago. Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago. Date must follow the format YYYY-MM-DD (example: "2023-09-21").',
23
23
  required: false,
24
24
  }),
25
25
  "date-to": core_1.Flags.string({
26
- description: "The date to end counting used credits from.\\ If not specified, the date will be set to today.\\ Date must follow the format YYYY-MM-DD (example: &quot;2023-09-28&quot;).",
26
+ description: 'The date to end counting used credits from. If not specified, the date will be set to today. Date must follow the format YYYY-MM-DD (example: "2023-09-28").',
27
27
  required: false,
28
28
  }),
29
29
  "scenario-id": core_1.Flags.integer({
@@ -5,7 +5,9 @@ export default class WebApiListCapabilities extends Command {
5
5
  static flags: {
6
6
  "project-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces").CustomOptions>;
7
7
  os: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
8
+ "os-type": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
8
9
  browser: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
10
+ "browser-type": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
9
11
  "device-type": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
10
12
  };
11
13
  run(): Promise<void>;
@@ -7,7 +7,7 @@ class WebApiListCapabilities extends core_1.Command {
7
7
  const { flags } = await this.parse(WebApiListCapabilities);
8
8
  const { configDir, userAgent } = this.config;
9
9
  const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
10
- const res = await client.listCapabilities(flags["project-id"], flags.os, flags.browser, flags["device-type"]);
10
+ const res = await client.listCapabilities(flags["project-id"], flags.os, flags["os-type"] ? JSON.parse(flags["os-type"]) : undefined, flags.browser, flags["browser-type"] ? JSON.parse(flags["browser-type"]) : undefined, flags["device-type"] ? JSON.parse(flags["device-type"]) : undefined);
11
11
  console.log(JSON.stringify(res.data, null, 2));
12
12
  }
13
13
  }
@@ -18,13 +18,24 @@ WebApiListCapabilities.flags = {
18
18
  description: "For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities",
19
19
  required: true,
20
20
  }),
21
- os: core_1.Flags.string({ description: "os name to filter", required: false }),
21
+ os: core_1.Flags.string({
22
+ description: "os name to filter (deprecated)",
23
+ required: false,
24
+ }),
25
+ "os-type": core_1.Flags.string({
26
+ description: "Type of the os to filter",
27
+ required: false,
28
+ }),
22
29
  browser: core_1.Flags.string({
23
- description: "browser name to filter",
30
+ description: "browser name to filter (deprecated)",
31
+ required: false,
32
+ }),
33
+ "browser-type": core_1.Flags.string({
34
+ description: "Type of the browser to filter",
24
35
  required: false,
25
36
  }),
26
37
  "device-type": core_1.Flags.string({
27
- description: "device_type name to filter",
38
+ description: "device_type name to filter (mobile is deprecated)",
28
39
  required: false,
29
40
  }),
30
41
  };
@@ -23,7 +23,7 @@ WebApiUpdateTestPlanVariable.flags = {
23
23
  required: true,
24
24
  }),
25
25
  "update-test-plan-variable-request": core_1.Flags.string({
26
- description: "The variable&#39;s new key and/or default_value&#39;s value to register",
26
+ description: 'A JSON object with the variable\'s new key and/or default_value\'s value to register e.g. {"key":"string","default_value":"string"}',
27
27
  required: true,
28
28
  }),
29
29
  };
@@ -23,7 +23,7 @@ WebApiUpdateUrlReplacement.flags = {
23
23
  required: true,
24
24
  }),
25
25
  "update-url-replacement-request": core_1.Flags.string({
26
- description: "The url to replace. Either pattern_url or replacement_url is required.",
26
+ description: 'A JSON object with the url to replace. Either pattern_url or replacement_url is required. e.g. {"pattern_url":"string","replacement_url":"string"}',
27
27
  required: true,
28
28
  }),
29
29
  };