@alwaysmeticulous/api 2.108.0 → 2.110.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";
@@ -68,9 +68,6 @@ export interface ScreenshotDiffResultCompared {
68
68
  height: number;
69
69
  mismatchPixels: number;
70
70
  mismatchFraction: number;
71
- }
72
- export interface ScreenshotDiffResultNoDifference extends ScreenshotDiffResultCompared {
73
- outcome: "no-diff";
74
71
  /**
75
72
  * The result of comparing the redacted screenshots (i.e. screenshots taken after elements
76
73
  * to ignore have been hidden/removed).
@@ -78,10 +75,25 @@ export interface ScreenshotDiffResultNoDifference extends ScreenshotDiffResultCo
78
75
  * Present only if there were redacted screenshots to compare, or if the original normal
79
76
  * screenshots did not differ so there was no need to compare the redacted screenshots.
80
77
  */
81
- redactedScreenshotsComparisonResult?: {
82
- mismatchPixels: number;
83
- mismatchFraction: number;
84
- };
78
+ redactedScreenshotsComparisonResult?: RedactedScreenshotsCompared | RedactedScreenshotIncompatible;
79
+ }
80
+ export interface ScreenshotDiffResultNoDifference extends ScreenshotDiffResultCompared {
81
+ outcome: "no-diff";
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.108.0",
3
+ "version": "2.110.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": "6ebfdd576b48150f0587afb269c3d5c14a0e68bb"
38
+ "gitHead": "40503f160d772a272af67e2a615c2cea990b8c9d"
39
39
  }