@alwaysmeticulous/sdk-bundles-api 2.139.0 → 2.141.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.
package/dist/index.d.ts CHANGED
@@ -6,3 +6,4 @@ export { ExecuteScheduledTestRunOptions } from "./replay-orchestrator/sdk-to-bun
6
6
  export { ExecuteTestRunResult, TestRunExecution, RunningTestRunExecution, FinishedTestRunExecution, TestRunProgress, DetailedTestCaseResult, } from "./replay-orchestrator/bundle-to-sdk/execute-test-run";
7
7
  export { InProgressTestRun } from "./replay-orchestrator/bundle-to-sdk/execute-scheduled-test-run";
8
8
  export { ReplayAndStoreResultsResult, ReplayExecution, BeforeUserEventResult, } from "./replay-orchestrator/bundle-to-sdk/execute-replay";
9
+ export { ScreenshotDiffData } from "./replay-orchestrator/bundle-to-sdk/execute-replay";
@@ -1,4 +1,4 @@
1
- import { Replay, ReplayableEvent, ScreenshotDiffResult } from "@alwaysmeticulous/api";
1
+ import { Divergence, Replay, ReplayableEvent, ScreenshotDiffResult } from "@alwaysmeticulous/api";
2
2
  export interface ReplayExecution {
3
3
  /**
4
4
  * Promise resolves when the replay is complete.
@@ -19,7 +19,7 @@ export interface ReplayAndStoreResultsResult {
19
19
  /**
20
20
  * Empty if screenshottingOptions.enabled was false.
21
21
  */
22
- screenshotDiffResultsByBaseReplayId: Record<string, ScreenshotDiffResult[]>;
22
+ screenshotDiffDataByBaseReplayId: Record<string, ScreenshotDiffData>;
23
23
  /**
24
24
  * The total number of screenshots taken during the replay.
25
25
  * This will be 0 if `screenshottingOptions.enabled` was false.
@@ -39,3 +39,7 @@ export interface BeforeUserEventResult {
39
39
  */
40
40
  nextEventIndexToPauseBefore?: number;
41
41
  }
42
+ export interface ScreenshotDiffData {
43
+ results: ScreenshotDiffResult[];
44
+ divergences?: Divergence[];
45
+ }
@@ -1,4 +1,5 @@
1
- import { Project, ScreenshotDiffResult, TestCaseResult, TestRunStatus } from "@alwaysmeticulous/api";
1
+ import { Project, TestCaseResult, TestRunStatus } from "@alwaysmeticulous/api";
2
+ import { ScreenshotDiffData } from "./execute-replay";
2
3
  export interface ExecuteTestRunResult {
3
4
  testRun: FinishedTestRunExecution;
4
5
  testCaseResults: DetailedTestCaseResult[];
@@ -23,6 +24,6 @@ export interface TestRunProgress {
23
24
  runningTestCases: number;
24
25
  }
25
26
  export interface DetailedTestCaseResult extends TestCaseResult {
26
- screenshotDiffResultsByBaseReplayId: Record<string, ScreenshotDiffResult[]>;
27
+ screenshotDiffDataByBaseReplayId: Record<string, ScreenshotDiffData>;
27
28
  totalNumberOfScreenshots: number;
28
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/sdk-bundles-api",
3
- "version": "2.139.0",
3
+ "version": "2.141.0",
4
4
  "description": "Meticulous common types",
5
5
  "license": "ISC",
6
6
  "main": "dist/index.js",
@@ -19,7 +19,7 @@
19
19
  "depcheck": "depcheck --ignore-patterns=dist"
20
20
  },
21
21
  "devDependencies": {
22
- "@alwaysmeticulous/api": "^2.139.0"
22
+ "@alwaysmeticulous/api": "^2.141.0"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "loglevel": "^1.8.0"
@@ -46,5 +46,5 @@
46
46
  "bugs": {
47
47
  "url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
48
48
  },
49
- "gitHead": "229466d734551b1a13c242e83a7e0d5782461eb8"
49
+ "gitHead": "891f9e4bdaf42f2f0ca8eb9e875a0ac43e63c4e7"
50
50
  }