@alwaysmeticulous/client
Advanced tools
Comparing version 2.42.0 to 2.44.0
@@ -1,3 +0,11 @@ | ||
import { TestRun } from "@alwaysmeticulous/api"; | ||
import { Project, TestCaseResult, TestRunStatus } from "@alwaysmeticulous/api"; | ||
import { AxiosInstance } from "axios"; | ||
export interface TestRun { | ||
id: string; | ||
status: TestRunStatus; | ||
project: Project; | ||
resultData?: { | ||
results: TestCaseResult[]; | ||
}; | ||
} | ||
export interface GetLatestTestRunOptions { | ||
@@ -8,2 +16,1 @@ client: AxiosInstance; | ||
export declare const getLatestTestRunResults: ({ client, commitSha, }: GetLatestTestRunOptions) => Promise<TestRun | null>; | ||
export declare const getLatestTestRunId: (opts: GetLatestTestRunOptions) => Promise<string | null>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getLatestTestRunId = exports.getLatestTestRunResults = void 0; | ||
exports.getLatestTestRunResults = void 0; | ||
const axios_1 = require("axios"); | ||
@@ -19,6 +19,1 @@ const getLatestTestRunResults = async ({ client, commitSha, }) => { | ||
exports.getLatestTestRunResults = getLatestTestRunResults; | ||
const getLatestTestRunId = async (opts) => { | ||
var _a, _b; | ||
return (_b = (_a = (await (0, exports.getLatestTestRunResults)(opts))) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : null; | ||
}; | ||
exports.getLatestTestRunId = getLatestTestRunId; |
export { getProject } from "./api/project.api"; | ||
export { getRecordedSession, getRecordedSessionData, getRecordingCommandId, postSessionIdNotification, } from "./api/session.api"; | ||
export { getLatestTestRunId, getLatestTestRunResults, GetLatestTestRunOptions, } from "./api/test-run.api"; | ||
export { getLatestTestRunResults, GetLatestTestRunOptions, } from "./api/test-run.api"; | ||
export { getReplay, getReplayDownloadUrl } from "./api/replay.api"; | ||
export { createClient, ClientOptions } from "./client"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createClient = exports.getReplayDownloadUrl = exports.getReplay = exports.getLatestTestRunResults = exports.getLatestTestRunId = exports.postSessionIdNotification = exports.getRecordingCommandId = exports.getRecordedSessionData = exports.getRecordedSession = exports.getProject = void 0; | ||
exports.createClient = exports.getReplayDownloadUrl = exports.getReplay = exports.getLatestTestRunResults = exports.postSessionIdNotification = exports.getRecordingCommandId = exports.getRecordedSessionData = exports.getRecordedSession = exports.getProject = void 0; | ||
var project_api_1 = require("./api/project.api"); | ||
@@ -12,3 +12,2 @@ Object.defineProperty(exports, "getProject", { enumerable: true, get: function () { return project_api_1.getProject; } }); | ||
var test_run_api_1 = require("./api/test-run.api"); | ||
Object.defineProperty(exports, "getLatestTestRunId", { enumerable: true, get: function () { return test_run_api_1.getLatestTestRunId; } }); | ||
Object.defineProperty(exports, "getLatestTestRunResults", { enumerable: true, get: function () { return test_run_api_1.getLatestTestRunResults; } }); | ||
@@ -15,0 +14,0 @@ var replay_api_1 = require("./api/replay.api"); |
{ | ||
"name": "@alwaysmeticulous/client", | ||
"version": "2.42.0", | ||
"version": "2.44.0", | ||
"description": "Helper methods for using the Meticulous backend API", | ||
@@ -22,4 +22,4 @@ "license": "ISC", | ||
"dependencies": { | ||
"@alwaysmeticulous/api": "^2.42.0", | ||
"@alwaysmeticulous/common": "^2.42.0", | ||
"@alwaysmeticulous/api": "^2.44.0", | ||
"@alwaysmeticulous/common": "^2.44.0", | ||
"axios": "^1.2.6", | ||
@@ -45,3 +45,3 @@ "loglevel": "^1.8.0" | ||
}, | ||
"gitHead": "65e2410a784642674ea6c8203d5b9f8a303c33ea" | ||
"gitHead": "3895b3036d7c97609f83e8b41593995eba5062ba" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13419