@alwaysmeticulous/api 2.107.0 → 2.109.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, ScreenshotDiffResultDifference, ScreenshotDiffResultNoDifference, ScreenshotIdentifier, ScreenshotVariant, SingleTryScreenshotDiffResult, ScreenshotDiffRetryResult, SingleTryScreenshotDiffRetryResult, } from "./sdk-bundle-api/bundle-to-sdk/screenshot-diff-result";
3
+ export { EndStateScreenshot, ScreenshotAfterEvent, ScreenshotDiffResult, ScreenshotDiffResultCompared, ScreenshotDiffResultDifferentSize, ScreenshotDiffResultMissingBase, ScreenshotDiffResultMissingBaseAndHead, ScreenshotDiffResultMissingHead, ScreenshotDiffResultDifference, ScreenshotDiffResultNoDifference, ScreenshotIdentifier, ScreenshotVariant, SingleTryScreenshotDiffResult, ScreenshotDiffRetryResult, SingleTryScreenshotDiffRetryResult, RedactedScreenshotIncompatible, RedactedScreenshotsCompared, } 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,5 +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
+ version: "v3";
6
6
  }
@@ -78,10 +78,22 @@ export interface ScreenshotDiffResultNoDifference extends ScreenshotDiffResultCo
78
78
  * Present only if there were redacted screenshots to compare, or if the original normal
79
79
  * screenshots did not differ so there was no need to compare the redacted screenshots.
80
80
  */
81
- redactedScreenshotsComparisonResult?: {
82
- mismatchPixels: number;
83
- mismatchFraction: number;
84
- };
81
+ redactedScreenshotsComparisonResult?: RedactedScreenshotsCompared | RedactedScreenshotIncompatible;
82
+ }
83
+ /**
84
+ * The result of comparing the redacted screenshots. Note that due to thresholds even
85
+ * 'no-diff' results may have some differing pixels.
86
+ */
87
+ export interface RedactedScreenshotsCompared {
88
+ /**
89
+ * type may be undefined for old screenshots, from before Feb 2024
90
+ */
91
+ type: "no-diff" | "diff" | undefined;
92
+ mismatchPixels: number;
93
+ mismatchFraction: number;
94
+ }
95
+ export interface RedactedScreenshotIncompatible {
96
+ type: "missing-base" | "missing-head" | "different-size";
85
97
  }
86
98
  export interface ScreenshotDiffResultDifference extends ScreenshotDiffResultCompared {
87
99
  outcome: "diff";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/api",
3
- "version": "2.107.0",
3
+ "version": "2.109.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": "06535e9f7c0e28b0a552b89ef2ffe66f39976f99"
38
+ "gitHead": "80f4a08d29a9f3acbdb0900a102564bbad2220b9"
39
39
  }