@alwaysmeticulous/client 2.41.0 → 2.44.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.
@@ -1,8 +1,15 @@
1
- import { TestRun } from "@alwaysmeticulous/api";
1
+ import { Project, TestCaseResult, TestRunStatus } from "@alwaysmeticulous/api";
2
2
  import { AxiosInstance } from "axios";
3
+ export interface TestRun {
4
+ id: string;
5
+ status: TestRunStatus;
6
+ project: Project;
7
+ resultData?: {
8
+ results: TestCaseResult[];
9
+ };
10
+ }
3
11
  export interface GetLatestTestRunOptions {
4
12
  client: AxiosInstance;
5
13
  commitSha: string;
6
14
  }
7
15
  export declare const getLatestTestRunResults: ({ client, commitSha, }: GetLatestTestRunOptions) => Promise<TestRun | null>;
8
- export declare const getLatestTestRunId: (opts: GetLatestTestRunOptions) => Promise<string | null>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getLatestTestRunId = exports.getLatestTestRunResults = void 0;
3
+ exports.getLatestTestRunResults = void 0;
4
4
  const axios_1 = require("axios");
5
5
  const getLatestTestRunResults = async ({ client, commitSha, }) => {
6
6
  var _a;
@@ -16,8 +16,3 @@ const getLatestTestRunResults = async ({ client, commitSha, }) => {
16
16
  return (_a = data) !== null && _a !== void 0 ? _a : null;
17
17
  };
18
18
  exports.getLatestTestRunResults = getLatestTestRunResults;
19
- const getLatestTestRunId = async (opts) => {
20
- var _a, _b;
21
- return (_b = (_a = (await (0, exports.getLatestTestRunResults)(opts))) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : null;
22
- };
23
- exports.getLatestTestRunId = getLatestTestRunId;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { getProject } from "./api/project.api";
2
2
  export { getRecordedSession, getRecordedSessionData, getRecordingCommandId, postSessionIdNotification, } from "./api/session.api";
3
- export { getLatestTestRunId, getLatestTestRunResults, GetLatestTestRunOptions, } from "./api/test-run.api";
3
+ export { getLatestTestRunResults, GetLatestTestRunOptions, } from "./api/test-run.api";
4
4
  export { getReplay, getReplayDownloadUrl } from "./api/replay.api";
5
5
  export { createClient, ClientOptions } from "./client";
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createClient = exports.getReplayDownloadUrl = exports.getReplay = exports.getLatestTestRunResults = exports.getLatestTestRunId = exports.postSessionIdNotification = exports.getRecordingCommandId = exports.getRecordedSessionData = exports.getRecordedSession = exports.getProject = void 0;
3
+ exports.createClient = exports.getReplayDownloadUrl = exports.getReplay = exports.getLatestTestRunResults = exports.postSessionIdNotification = exports.getRecordingCommandId = exports.getRecordedSessionData = exports.getRecordedSession = exports.getProject = void 0;
4
4
  var project_api_1 = require("./api/project.api");
5
5
  Object.defineProperty(exports, "getProject", { enumerable: true, get: function () { return project_api_1.getProject; } });
6
6
  var session_api_1 = require("./api/session.api");
@@ -9,7 +9,6 @@ Object.defineProperty(exports, "getRecordedSessionData", { enumerable: true, get
9
9
  Object.defineProperty(exports, "getRecordingCommandId", { enumerable: true, get: function () { return session_api_1.getRecordingCommandId; } });
10
10
  Object.defineProperty(exports, "postSessionIdNotification", { enumerable: true, get: function () { return session_api_1.postSessionIdNotification; } });
11
11
  var test_run_api_1 = require("./api/test-run.api");
12
- Object.defineProperty(exports, "getLatestTestRunId", { enumerable: true, get: function () { return test_run_api_1.getLatestTestRunId; } });
13
12
  Object.defineProperty(exports, "getLatestTestRunResults", { enumerable: true, get: function () { return test_run_api_1.getLatestTestRunResults; } });
14
13
  var replay_api_1 = require("./api/replay.api");
15
14
  Object.defineProperty(exports, "getReplay", { enumerable: true, get: function () { return replay_api_1.getReplay; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/client",
3
- "version": "2.41.0",
3
+ "version": "2.44.0",
4
4
  "description": "Helper methods for using the Meticulous backend API",
5
5
  "license": "ISC",
6
6
  "main": "dist/index.js",
@@ -19,8 +19,8 @@
19
19
  "depcheck": "depcheck --ignore-patterns=dist"
20
20
  },
21
21
  "dependencies": {
22
- "@alwaysmeticulous/api": "^2.41.0",
23
- "@alwaysmeticulous/common": "^2.41.0",
22
+ "@alwaysmeticulous/api": "^2.44.0",
23
+ "@alwaysmeticulous/common": "^2.44.0",
24
24
  "axios": "^1.2.6",
25
25
  "loglevel": "^1.8.0"
26
26
  },
@@ -41,5 +41,5 @@
41
41
  "bugs": {
42
42
  "url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
43
43
  },
44
- "gitHead": "778895a7cd6a010538e338f9b2da225e71c53f48"
44
+ "gitHead": "3895b3036d7c97609f83e8b41593995eba5062ba"
45
45
  }