@alwaysmeticulous/api 2.77.0 → 2.79.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
@@ -1,6 +1,6 @@
1
1
  export { Organization } from "./organization.types";
2
2
  export { Project, ProjectConfigurationData, ProjectSettingsScreenshottingOptions, } from "./project.types";
3
- export { EndStateScreenshot, ScreenshotAfterEvent, ScreenshotDiffResult, ScreenshotDiffResultCompared, ScreenshotDiffResultDifferentSize, ScreenshotDiffResultMissingBase, ScreenshotDiffResultMissingBaseAndHead, ScreenshotDiffResultMissingHead, ScreenshotIdentifier, SingleTryScreenshotDiffResult, } from "./sdk-bundle-api/bundle-to-sdk/screenshot-diff-result";
3
+ export { EndStateScreenshot, ScreenshotAfterEvent, ScreenshotDiffResult, ScreenshotDiffResultCompared, ScreenshotDiffResultDifferentSize, ScreenshotDiffResultMissingBase, ScreenshotDiffResultMissingBaseAndHead, ScreenshotDiffResultMissingHead, ScreenshotDiffResultDifference, ScreenshotDiffResultNoDifference, ScreenshotIdentifier, SingleTryScreenshotDiffResult, } from "./sdk-bundle-api/bundle-to-sdk/screenshot-diff-result";
4
4
  export { TestCase, TestCaseReplayOptions, TestRunStatus, TestCaseResult, TestCaseResultStatus, } from "./replay/test-run.types";
5
5
  export { TestRunEnvironment, TestRunGitHubContext, TestRunGitHubPullRequestContext, TestRunGitHubPushContext, TestRunGitHubWorkflowDispatchContext, TestRunGitLabContext, TestRunGitLabMergeRequestContext, TestRunGitLabPushContext, } from "./sdk-bundle-api/sdk-to-bundle/test-run-environment";
6
6
  export { ReplayableEvent } from "./sdk-bundle-api/bidirectional/replayable-event";
@@ -2,4 +2,5 @@ import { Project } from "../project.types";
2
2
  export interface Replay {
3
3
  id: string;
4
4
  project: Project;
5
+ version: "v1" | "v2" | "v3";
5
6
  }
@@ -1,4 +1,4 @@
1
- export type SingleTryScreenshotDiffResult = ScreenshotDiffResultMissingBase | ScreenshotDiffResultMissingHead | ScreenshotDiffResultDifferentSize | ScreenshotDiffResultCompared;
1
+ export type SingleTryScreenshotDiffResult = ScreenshotDiffResultMissingBase | ScreenshotDiffResultMissingHead | ScreenshotDiffResultDifferentSize | ScreenshotDiffResultNoDifference | ScreenshotDiffResultDifference;
2
2
  /** Represents the result of comparing two screenshots */
3
3
  export type ScreenshotDiffResult = {
4
4
  identifier: ScreenshotIdentifier;
@@ -47,7 +47,6 @@ export interface ScreenshotDiffResultDifferentSize {
47
47
  headHeight: number;
48
48
  }
49
49
  export interface ScreenshotDiffResultCompared {
50
- outcome: "no-diff" | "diff";
51
50
  /** Relative path to the replay archive */
52
51
  headScreenshotFile: string;
53
52
  /** Relative path to the replay archive */
@@ -57,6 +56,17 @@ export interface ScreenshotDiffResultCompared {
57
56
  mismatchPixels: number;
58
57
  mismatchFraction: number;
59
58
  }
59
+ export interface ScreenshotDiffResultNoDifference extends ScreenshotDiffResultCompared {
60
+ outcome: "no-diff";
61
+ }
62
+ export interface ScreenshotDiffResultDifference extends ScreenshotDiffResultCompared {
63
+ outcome: "diff";
64
+ /**
65
+ * The hash of the set of all class names within the DOM sections that have differences.
66
+ * This can be useful for grouping together diffs that are caused by the same change.
67
+ */
68
+ hashOfChangedSectionsClassNames?: string;
69
+ }
60
70
  /**
61
71
  * The base screenshot differed from the head screenshot, but when the head
62
72
  * screenshot was retaken one or more additional times at least one of those
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/api",
3
- "version": "2.77.0",
3
+ "version": "2.79.0",
4
4
  "description": "Meticulous API types",
5
5
  "license": "ISC",
6
6
  "main": "dist/index.js",
@@ -35,5 +35,5 @@
35
35
  "bugs": {
36
36
  "url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
37
37
  },
38
- "gitHead": "0e434accc42eceb323078977344cb6298dfb5b4e"
38
+ "gitHead": "1a61e72a72c3f53cd08218ef7e5fcd1ce55dc1b6"
39
39
  }