@autifyhq/autify-sdk 0.31.0 → 0.32.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.
@@ -37,6 +37,8 @@ exports.BrowserTypeEnum = {
37
37
  Edge: "edge",
38
38
  EdgeLegacy: "edge_legacy",
39
39
  Ie: "ie",
40
+ Chromium: "chromium",
41
+ Webkit: "webkit",
40
42
  };
41
43
  /**
42
44
  * mobile is deprecated and will be replaced by smartphone
@@ -44,7 +46,7 @@ exports.BrowserTypeEnum = {
44
46
  * @enum {string}
45
47
  */
46
48
  exports.DeviceTypeEnum = {
47
- Desktop: "desktop",
49
+ Computer: "computer",
48
50
  Mobile: "mobile",
49
51
  Smartphone: "smartphone",
50
52
  Tablet: "tablet",
@@ -910,11 +912,11 @@ exports.ProjectApi = ProjectApi;
910
912
  const ResultApiAxiosParamCreator = function (configuration) {
911
913
  return {
912
914
  /**
913
- * Get a test result.
915
+ * To see a test case\'s steps, call `describeTestCaseResult` with its `test_plan_capability_results[].test_case_results[].id`.
914
916
  * @summary Get a test result.
915
917
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
916
918
  * @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
917
- * @param {boolean} [getDetails] The flag to get details of the test case result.
919
+ * @param {boolean} [getDetails] The flag to get details of the test case result. Each test case result then carries its `steps`, which is `null` when the test case has no detailed output, for example one that ended in an internal error before uploading it, is still running, or is past its retention period.
918
920
  * @param {Array<'failed' | 'internal_error' | 'review_needed'>} [statuses] Return only the test case results matching any of these filters, the same ones the result page offers. &#x60;failed&#x60; matches failed and internal-error test cases, &#x60;internal_error&#x60; only internal errors, and &#x60;review_needed&#x60; test cases with element warnings to review. For example &#x60;statuses&#x3D;failed,review_needed&#x60;. Omit to return every test case result.
919
921
  * @param {*} [options] Override http request option.
920
922
  * @throws {RequiredError}
@@ -962,7 +964,7 @@ const ResultApiAxiosParamCreator = function (configuration) {
962
964
  };
963
965
  },
964
966
  /**
965
- * Get the step-by-step breakdown of a single test case result, including the element locators Autify resolved for each step. A "test case result" is the execution of one scenario on one capability. You can obtain its ID from the `test_plan_capability_results[].test_case_results[].id` field returned by `describeResult`. Use this to see which step failed and why, and to read back the locators Autify generated for an element, which are usually better than a selector you would write by hand. To see what the page looked like, fetch a step\'s `screenshot_url`. On a failed step, compare its screenshot with the one from the step before it. Note: a step reports its keyword as `action_type`, the same enum `listStepKeywords` and `describeScenario` use, rather than as a name. The localized label the UI shows appears only in `describeResult` (`get_details`). Values typed into a password field are returned as `******`.
967
+ * Get the step-by-step breakdown of a single test case result, including the element locators Autify resolved for each step. A "test case result" is the execution of one scenario on one capability. You can obtain its ID from the `test_plan_capability_results[].test_case_results[].id` field returned by `describeResult`. Use this to see which step failed and why, and to read back the locators Autify generated for an element, which are usually better than a selector you would write by hand. To see what the page looked like, fetch a step\'s `screenshot_url`. On a failed step, compare its screenshot with the one from the step before it. Note: a step reports its keyword as `action_type`, the same enum `listStepKeywords` and `describeScenario` use, rather than as a name. This response doesn\'t include the localized label the UI shows. Values typed into a password field are returned as `******`.
966
968
  * @summary Get the steps and element locators of a test case result.
967
969
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
968
970
  * @param {number} testCaseResultId The ID of the test case result. Obtainable from the &#x60;test_case_results[].id&#x60; field of &#x60;describeResult&#x60;.
@@ -1057,7 +1059,7 @@ const ResultApiAxiosParamCreator = function (configuration) {
1057
1059
  };
1058
1060
  },
1059
1061
  /**
1060
- * List the test results of a single scenario, newest first. Each entry is one execution of that scenario on one capability, so a scenario run against three browsers contributes three entries. Use this to see how one scenario has been doing over time, which `listResults` cannot answer: that endpoint returns whole test plan executions and is filterable only by test plan. `review_needed` is the number of "Review needed" element warnings raised by that execution. A count that climbs over recent results means the scenario\'s element locators are drifting.
1062
+ * List the test results of a single scenario, newest first. Each entry is one execution of that scenario on one capability, so a scenario run against three browsers contributes three entries. Use this to see how one scenario has been doing over time, which `listResults` cannot answer: that endpoint returns whole test plan executions and is filterable only by test plan. `review_needed` is the number of "Review needed" element warnings raised by that execution. A count that climbs over recent results means the scenario\'s element locators are drifting. To see an entry\'s steps, call `describeTestCaseResult` with its `id`.
1061
1063
  * @summary List the test results of one scenario.
1062
1064
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
1063
1065
  * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
@@ -1163,11 +1165,11 @@ const ResultApiFp = function (configuration) {
1163
1165
  const localVarAxiosParamCreator = (0, exports.ResultApiAxiosParamCreator)(configuration);
1164
1166
  return {
1165
1167
  /**
1166
- * Get a test result.
1168
+ * To see a test case\'s steps, call `describeTestCaseResult` with its `test_plan_capability_results[].test_case_results[].id`.
1167
1169
  * @summary Get a test result.
1168
1170
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
1169
1171
  * @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
1170
- * @param {boolean} [getDetails] The flag to get details of the test case result.
1172
+ * @param {boolean} [getDetails] The flag to get details of the test case result. Each test case result then carries its &#x60;steps&#x60;, which is &#x60;null&#x60; when the test case has no detailed output, for example one that ended in an internal error before uploading it, is still running, or is past its retention period.
1171
1173
  * @param {Array<'failed' | 'internal_error' | 'review_needed'>} [statuses] Return only the test case results matching any of these filters, the same ones the result page offers. &#x60;failed&#x60; matches failed and internal-error test cases, &#x60;internal_error&#x60; only internal errors, and &#x60;review_needed&#x60; test cases with element warnings to review. For example &#x60;statuses&#x3D;failed,review_needed&#x60;. Omit to return every test case result.
1172
1174
  * @param {*} [options] Override http request option.
1173
1175
  * @throws {RequiredError}
@@ -1177,7 +1179,7 @@ const ResultApiFp = function (configuration) {
1177
1179
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1178
1180
  },
1179
1181
  /**
1180
- * Get the step-by-step breakdown of a single test case result, including the element locators Autify resolved for each step. A "test case result" is the execution of one scenario on one capability. You can obtain its ID from the `test_plan_capability_results[].test_case_results[].id` field returned by `describeResult`. Use this to see which step failed and why, and to read back the locators Autify generated for an element, which are usually better than a selector you would write by hand. To see what the page looked like, fetch a step\'s `screenshot_url`. On a failed step, compare its screenshot with the one from the step before it. Note: a step reports its keyword as `action_type`, the same enum `listStepKeywords` and `describeScenario` use, rather than as a name. The localized label the UI shows appears only in `describeResult` (`get_details`). Values typed into a password field are returned as `******`.
1182
+ * Get the step-by-step breakdown of a single test case result, including the element locators Autify resolved for each step. A "test case result" is the execution of one scenario on one capability. You can obtain its ID from the `test_plan_capability_results[].test_case_results[].id` field returned by `describeResult`. Use this to see which step failed and why, and to read back the locators Autify generated for an element, which are usually better than a selector you would write by hand. To see what the page looked like, fetch a step\'s `screenshot_url`. On a failed step, compare its screenshot with the one from the step before it. Note: a step reports its keyword as `action_type`, the same enum `listStepKeywords` and `describeScenario` use, rather than as a name. This response doesn\'t include the localized label the UI shows. Values typed into a password field are returned as `******`.
1181
1183
  * @summary Get the steps and element locators of a test case result.
1182
1184
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
1183
1185
  * @param {number} testCaseResultId The ID of the test case result. Obtainable from the &#x60;test_case_results[].id&#x60; field of &#x60;describeResult&#x60;.
@@ -1203,7 +1205,7 @@ const ResultApiFp = function (configuration) {
1203
1205
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1204
1206
  },
1205
1207
  /**
1206
- * List the test results of a single scenario, newest first. Each entry is one execution of that scenario on one capability, so a scenario run against three browsers contributes three entries. Use this to see how one scenario has been doing over time, which `listResults` cannot answer: that endpoint returns whole test plan executions and is filterable only by test plan. `review_needed` is the number of "Review needed" element warnings raised by that execution. A count that climbs over recent results means the scenario\'s element locators are drifting.
1208
+ * List the test results of a single scenario, newest first. Each entry is one execution of that scenario on one capability, so a scenario run against three browsers contributes three entries. Use this to see how one scenario has been doing over time, which `listResults` cannot answer: that endpoint returns whole test plan executions and is filterable only by test plan. `review_needed` is the number of "Review needed" element warnings raised by that execution. A count that climbs over recent results means the scenario\'s element locators are drifting. To see an entry\'s steps, call `describeTestCaseResult` with its `id`.
1207
1209
  * @summary List the test results of one scenario.
1208
1210
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
1209
1211
  * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
@@ -1239,11 +1241,11 @@ const ResultApiFactory = function (configuration, basePath, axios) {
1239
1241
  const localVarFp = (0, exports.ResultApiFp)(configuration);
1240
1242
  return {
1241
1243
  /**
1242
- * Get a test result.
1244
+ * To see a test case\'s steps, call `describeTestCaseResult` with its `test_plan_capability_results[].test_case_results[].id`.
1243
1245
  * @summary Get a test result.
1244
1246
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
1245
1247
  * @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
1246
- * @param {boolean} [getDetails] The flag to get details of the test case result.
1248
+ * @param {boolean} [getDetails] The flag to get details of the test case result. Each test case result then carries its &#x60;steps&#x60;, which is &#x60;null&#x60; when the test case has no detailed output, for example one that ended in an internal error before uploading it, is still running, or is past its retention period.
1247
1249
  * @param {Array<'failed' | 'internal_error' | 'review_needed'>} [statuses] Return only the test case results matching any of these filters, the same ones the result page offers. &#x60;failed&#x60; matches failed and internal-error test cases, &#x60;internal_error&#x60; only internal errors, and &#x60;review_needed&#x60; test cases with element warnings to review. For example &#x60;statuses&#x3D;failed,review_needed&#x60;. Omit to return every test case result.
1248
1250
  * @param {*} [options] Override http request option.
1249
1251
  * @throws {RequiredError}
@@ -1254,7 +1256,7 @@ const ResultApiFactory = function (configuration, basePath, axios) {
1254
1256
  .then((request) => request(axios, basePath));
1255
1257
  },
1256
1258
  /**
1257
- * Get the step-by-step breakdown of a single test case result, including the element locators Autify resolved for each step. A "test case result" is the execution of one scenario on one capability. You can obtain its ID from the `test_plan_capability_results[].test_case_results[].id` field returned by `describeResult`. Use this to see which step failed and why, and to read back the locators Autify generated for an element, which are usually better than a selector you would write by hand. To see what the page looked like, fetch a step\'s `screenshot_url`. On a failed step, compare its screenshot with the one from the step before it. Note: a step reports its keyword as `action_type`, the same enum `listStepKeywords` and `describeScenario` use, rather than as a name. The localized label the UI shows appears only in `describeResult` (`get_details`). Values typed into a password field are returned as `******`.
1259
+ * Get the step-by-step breakdown of a single test case result, including the element locators Autify resolved for each step. A "test case result" is the execution of one scenario on one capability. You can obtain its ID from the `test_plan_capability_results[].test_case_results[].id` field returned by `describeResult`. Use this to see which step failed and why, and to read back the locators Autify generated for an element, which are usually better than a selector you would write by hand. To see what the page looked like, fetch a step\'s `screenshot_url`. On a failed step, compare its screenshot with the one from the step before it. Note: a step reports its keyword as `action_type`, the same enum `listStepKeywords` and `describeScenario` use, rather than as a name. This response doesn\'t include the localized label the UI shows. Values typed into a password field are returned as `******`.
1258
1260
  * @summary Get the steps and element locators of a test case result.
1259
1261
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
1260
1262
  * @param {number} testCaseResultId The ID of the test case result. Obtainable from the &#x60;test_case_results[].id&#x60; field of &#x60;describeResult&#x60;.
@@ -1282,7 +1284,7 @@ const ResultApiFactory = function (configuration, basePath, axios) {
1282
1284
  .then((request) => request(axios, basePath));
1283
1285
  },
1284
1286
  /**
1285
- * List the test results of a single scenario, newest first. Each entry is one execution of that scenario on one capability, so a scenario run against three browsers contributes three entries. Use this to see how one scenario has been doing over time, which `listResults` cannot answer: that endpoint returns whole test plan executions and is filterable only by test plan. `review_needed` is the number of "Review needed" element warnings raised by that execution. A count that climbs over recent results means the scenario\'s element locators are drifting.
1287
+ * List the test results of a single scenario, newest first. Each entry is one execution of that scenario on one capability, so a scenario run against three browsers contributes three entries. Use this to see how one scenario has been doing over time, which `listResults` cannot answer: that endpoint returns whole test plan executions and is filterable only by test plan. `review_needed` is the number of "Review needed" element warnings raised by that execution. A count that climbs over recent results means the scenario\'s element locators are drifting. To see an entry\'s steps, call `describeTestCaseResult` with its `id`.
1286
1288
  * @summary List the test results of one scenario.
1287
1289
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
1288
1290
  * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
@@ -1320,11 +1322,11 @@ exports.ResultApiFactory = ResultApiFactory;
1320
1322
  */
1321
1323
  class ResultApi extends base_1.BaseAPI {
1322
1324
  /**
1323
- * Get a test result.
1325
+ * To see a test case\'s steps, call `describeTestCaseResult` with its `test_plan_capability_results[].test_case_results[].id`.
1324
1326
  * @summary Get a test result.
1325
1327
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
1326
1328
  * @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
1327
- * @param {boolean} [getDetails] The flag to get details of the test case result.
1329
+ * @param {boolean} [getDetails] The flag to get details of the test case result. Each test case result then carries its &#x60;steps&#x60;, which is &#x60;null&#x60; when the test case has no detailed output, for example one that ended in an internal error before uploading it, is still running, or is past its retention period.
1328
1330
  * @param {Array<'failed' | 'internal_error' | 'review_needed'>} [statuses] Return only the test case results matching any of these filters, the same ones the result page offers. &#x60;failed&#x60; matches failed and internal-error test cases, &#x60;internal_error&#x60; only internal errors, and &#x60;review_needed&#x60; test cases with element warnings to review. For example &#x60;statuses&#x3D;failed,review_needed&#x60;. Omit to return every test case result.
1329
1331
  * @param {*} [options] Override http request option.
1330
1332
  * @throws {RequiredError}
@@ -1336,7 +1338,7 @@ class ResultApi extends base_1.BaseAPI {
1336
1338
  .then((request) => request(this.axios, this.basePath));
1337
1339
  }
1338
1340
  /**
1339
- * Get the step-by-step breakdown of a single test case result, including the element locators Autify resolved for each step. A "test case result" is the execution of one scenario on one capability. You can obtain its ID from the `test_plan_capability_results[].test_case_results[].id` field returned by `describeResult`. Use this to see which step failed and why, and to read back the locators Autify generated for an element, which are usually better than a selector you would write by hand. To see what the page looked like, fetch a step\'s `screenshot_url`. On a failed step, compare its screenshot with the one from the step before it. Note: a step reports its keyword as `action_type`, the same enum `listStepKeywords` and `describeScenario` use, rather than as a name. The localized label the UI shows appears only in `describeResult` (`get_details`). Values typed into a password field are returned as `******`.
1341
+ * Get the step-by-step breakdown of a single test case result, including the element locators Autify resolved for each step. A "test case result" is the execution of one scenario on one capability. You can obtain its ID from the `test_plan_capability_results[].test_case_results[].id` field returned by `describeResult`. Use this to see which step failed and why, and to read back the locators Autify generated for an element, which are usually better than a selector you would write by hand. To see what the page looked like, fetch a step\'s `screenshot_url`. On a failed step, compare its screenshot with the one from the step before it. Note: a step reports its keyword as `action_type`, the same enum `listStepKeywords` and `describeScenario` use, rather than as a name. This response doesn\'t include the localized label the UI shows. Values typed into a password field are returned as `******`.
1340
1342
  * @summary Get the steps and element locators of a test case result.
1341
1343
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
1342
1344
  * @param {number} testCaseResultId The ID of the test case result. Obtainable from the &#x60;test_case_results[].id&#x60; field of &#x60;describeResult&#x60;.
@@ -1366,7 +1368,7 @@ class ResultApi extends base_1.BaseAPI {
1366
1368
  .then((request) => request(this.axios, this.basePath));
1367
1369
  }
1368
1370
  /**
1369
- * List the test results of a single scenario, newest first. Each entry is one execution of that scenario on one capability, so a scenario run against three browsers contributes three entries. Use this to see how one scenario has been doing over time, which `listResults` cannot answer: that endpoint returns whole test plan executions and is filterable only by test plan. `review_needed` is the number of "Review needed" element warnings raised by that execution. A count that climbs over recent results means the scenario\'s element locators are drifting.
1371
+ * List the test results of a single scenario, newest first. Each entry is one execution of that scenario on one capability, so a scenario run against three browsers contributes three entries. Use this to see how one scenario has been doing over time, which `listResults` cannot answer: that endpoint returns whole test plan executions and is filterable only by test plan. `review_needed` is the number of "Review needed" element warnings raised by that execution. A count that climbs over recent results means the scenario\'s element locators are drifting. To see an entry\'s steps, call `describeTestCaseResult` with its `id`.
1370
1372
  * @summary List the test results of one scenario.
1371
1373
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
1372
1374
  * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
@@ -63,4 +63,4 @@ export declare const toPathString: (url: URL) => string;
63
63
  *
64
64
  * @export
65
65
  */
66
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
66
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R extends import("axios").AxiosResponseDefault ? AxiosResponse<T, any, {}, any> : R>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autifyhq/autify-sdk",
3
- "version": "0.31.0",
3
+ "version": "0.32.0",
4
4
  "description": "Autify SDK for JavaScript",
5
5
  "author": "Autify",
6
6
  "homepage": "https://github.com/autifyhq/autify-sdk-js",
@@ -16,36 +16,36 @@
16
16
  "node": ">=22.16.0"
17
17
  },
18
18
  "dependencies": {
19
- "axios": "^1.13.2",
19
+ "axios": "^1.21.1",
20
20
  "axios-logger": "^2.8.1",
21
21
  "debug": "^4.4.3",
22
- "form-data": "^4.0.5",
23
- "tslib": "^2.8.1"
22
+ "form-data": "^4.0.6",
23
+ "tslib": "^2.9.1"
24
24
  },
25
25
  "devDependencies": {
26
- "@eslint/eslintrc": "^3.3.5",
27
- "@eslint/js": "^9.39.4",
28
- "@openapitools/openapi-generator-cli": "^2.34.0",
26
+ "@eslint/eslintrc": "^3.3.7",
27
+ "@eslint/js": "^10.0.1",
28
+ "@openapitools/openapi-generator-cli": "^2.44.0",
29
29
  "@types/debug": "^4.1.13",
30
30
  "@types/jest": "^29.5.14",
31
- "@types/node": "^22.19.20",
32
- "@typescript-eslint/eslint-plugin": "^8.60.1",
33
- "@typescript-eslint/parser": "^8.60.1",
31
+ "@types/node": "^22.20.7",
32
+ "@typescript-eslint/eslint-plugin": "^8.74.0",
33
+ "@typescript-eslint/parser": "^8.74.0",
34
34
  "axios-mock-adapter": "^2.1.0",
35
- "eslint": "^9.39.4",
36
- "eslint-config-prettier": "^10.1.8",
35
+ "eslint": "^10.16.0",
36
+ "eslint-config-prettier": "^10.1.9",
37
37
  "eslint-plugin-unused-imports": "^4.4.1",
38
38
  "husky": "^9.1.7",
39
39
  "jest": "^29.7.0",
40
40
  "lint-staged": "^16.4.0",
41
- "prettier": "^3.8.3",
41
+ "prettier": "^3.10.1",
42
42
  "shx": "^0.4.0",
43
43
  "swagger2openapi": "^7.0.8",
44
- "ts-jest": "^29.4.11",
44
+ "ts-jest": "^29.4.15",
45
45
  "ts-morph": "^26.0.0",
46
46
  "ts-node": "^10.9.2",
47
47
  "typescript": "^5.9.3",
48
- "yaml": "^2.9.0"
48
+ "yaml": "^2.9.1"
49
49
  },
50
50
  "scripts": {
51
51
  "update-swagger-web": "curl -fsSL -o swagger-web.yml https://autifyhq.github.io/autify-api/swagger.yml",