@alwaysmeticulous/api 2.42.0 → 2.44.1

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,9 +1,11 @@
1
1
  export { Organization } from "./organization.types";
2
2
  export { Project, ProjectConfigurationData } from "./project.types";
3
- export { EndStateScreenshot, ReplayDiff, ReplayDiffData, ScreenshotAfterEvent, ScreenshotAssertionsEnabledOptions, ScreenshotAssertionsOptions, ScreenshotDiffOptions, ScreenshotDiffResult, ScreenshotDiffResultCompared, ScreenshotDiffResultDifferentSize, ScreenshotDiffResultMissingBase, ScreenshotDiffResultMissingBaseAndHead, ScreenshotDiffResultMissingHead, ScreenshotIdentifier, ScreenshottingEnabledOptions, SingleTryScreenshotDiffResult, StoryboardOptions, } from "./replay/replay-diff.types";
4
- export { TestCase, TestCaseReplayOptions, TestRunArguments, TestRunConfigData, TestRunEnvironment, TestRun, TestRunStatus, TestCaseResult, TestCaseResultStatus, } from "./replay/test-run.types";
3
+ export { EndStateScreenshot, ScreenshotAfterEvent, ScreenshotDiffResult, ScreenshotDiffResultCompared, ScreenshotDiffResultDifferentSize, ScreenshotDiffResultMissingBase, ScreenshotDiffResultMissingBaseAndHead, ScreenshotDiffResultMissingHead, ScreenshotIdentifier, SingleTryScreenshotDiffResult, } from "./sdk-bundle-api/bundle-to-sdk/screenshot-diff-result";
4
+ export { TestCase, TestCaseReplayOptions, TestRunStatus, TestCaseResult, TestCaseResultStatus, } from "./replay/test-run.types";
5
+ export { TestRunEnvironment, TestRunGitHubContext, TestRunGitHubPullRequestContext, TestRunGitHubPushContext, TestRunGitHubWorkflowDispatchContext, } from "./sdk-bundle-api/sdk-to-bundle/test-run-environment";
5
6
  export { ReplayableEvent } from "./sdk-bundle-api/bidirectional/replayable-event";
6
7
  export { SDKReplayTimelineEntry, SDKReplayTimelineData, } from "./sdk-bundle-api/bundle-to-sdk/timeline.types";
7
8
  export { HarEntry, HarLog, HarRequest, HarResponse, } from "./sdk-bundle-api/sdk-to-bundle/har-log";
8
9
  export { Cookie, SessionData, UrlHistoryEvent, WindowData, } from "./sdk-bundle-api/sdk-to-bundle/session-data";
9
10
  export { Replay } from "./replay/replay.types";
11
+ export { ScreenshotAssertionsOptions, ScreenshotAssertionsEnabledOptions, ScreenshottingEnabledOptions, StoryboardOptions, ScreenshotDiffOptions, } from "./sdk-bundle-api/sdk-to-bundle/screenshotting-options";
@@ -1,12 +1,4 @@
1
- import { Project } from "../project.types";
2
- import { ScreenshotDiffOptions } from "./replay-diff.types";
3
- /** Represents the configuration used for a test run */
4
- export interface TestRunConfigData {
5
- testCases?: TestCase[];
6
- arguments?: TestRunArguments;
7
- environment?: TestRunEnvironment;
8
- [key: string]: unknown;
9
- }
1
+ import { ScreenshotDiffOptions } from "../sdk-bundle-api/sdk-to-bundle/screenshotting-options";
10
2
  export interface TestCase {
11
3
  sessionId: string;
12
4
  title?: string;
@@ -21,70 +13,7 @@ export interface TestCaseReplayOptions extends Partial<ScreenshotDiffOptions> {
21
13
  simulationIdForAssets?: string | undefined;
22
14
  moveBeforeClick?: boolean;
23
15
  }
24
- export interface TestRunArguments {
25
- executionOptions?: unknown;
26
- screenshottingOptions?: unknown;
27
- commitSha?: string;
28
- baseCommitSha?: string | null;
29
- appUrl?: string | null;
30
- parallelTasks?: number | null;
31
- githubSummary?: boolean;
32
- [key: string]: unknown;
33
- }
34
- export interface TestRunEnvironment {
35
- ci?: boolean;
36
- context?: TestRunGitHubContext;
37
- [key: string]: unknown;
38
- }
39
- export type TestRunGitHubContext = TestRunGitHubPullRequestContext | TestRunGitHubPushContext | TestRunGitHubWorkflowDispatchContext;
40
- export interface TestRunGitHubPullRequestContext {
41
- type: "github";
42
- event: "pull-request";
43
- /** Pull request title */
44
- title: string;
45
- /** Pull request number */
46
- number: number;
47
- /** Pull request URL (web page) */
48
- htmlUrl: string;
49
- /** Base commit hash */
50
- baseSha: string;
51
- /** Head commit hash */
52
- headSha: string;
53
- }
54
- export interface TestRunGitHubPushContext {
55
- type: "github";
56
- event: "push";
57
- /** Commit hash before the push event */
58
- beforeSha: string;
59
- /** Commit hash after the push event */
60
- afterSha: string;
61
- /** Git ref (usually /refs/head/<branch>) */
62
- ref: string;
63
- }
64
- export interface TestRunGitHubWorkflowDispatchContext {
65
- type: "github";
66
- event: "workflow-dispatch";
67
- /** Git ref (usually /refs/head/<branch>) */
68
- ref: string;
69
- /** Workflow dispatch inputs */
70
- inputs: {
71
- [key: string]: unknown;
72
- };
73
- /** Resolved head commit hash */
74
- headSha: string;
75
- }
76
16
  export type TestRunStatus = "Running" | "Success" | "Failure";
77
- export interface TestRun {
78
- id: string;
79
- status: TestRunStatus;
80
- project: Project;
81
- configData: TestRunConfigData;
82
- resultData?: {
83
- results: TestCaseResult[];
84
- [key: string]: any;
85
- };
86
- [key: string]: any;
87
- }
88
17
  export type TestCaseResultStatus = "pass" | "fail" | "flake";
89
18
  export interface TestCaseResult extends TestCase {
90
19
  headReplayId: string;
@@ -1,49 +1,3 @@
1
- export interface ReplayDiff {
2
- id: string;
3
- project: {
4
- [key: string]: any;
5
- };
6
- headReplay: {
7
- [key: string]: any;
8
- };
9
- baseReplay: {
10
- [key: string]: any;
11
- };
12
- testRun: {
13
- [key: string]: any;
14
- };
15
- data: ReplayDiffData;
16
- createdAt: string;
17
- updatedAt: string;
18
- }
19
- export interface ReplayDiffData {
20
- screenshotAssertionsOptions?: ScreenshotAssertionsOptions;
21
- screenshotDiffResults?: ScreenshotDiffResult[];
22
- }
23
- /**
24
- * Differs from ScreenshotComparisonOptions in that
25
- * ScreenshotComparisonOptions specifies the test run or base replay id
26
- * to compare to, while ScreenshotAssertionsOptions does not.
27
- */
28
- export type ScreenshotAssertionsOptions = {
29
- enabled: false;
30
- } | ScreenshotAssertionsEnabledOptions;
31
- export interface ScreenshotAssertionsEnabledOptions extends ScreenshottingEnabledOptions {
32
- diffOptions: ScreenshotDiffOptions;
33
- }
34
- export interface ScreenshottingEnabledOptions {
35
- enabled: true;
36
- storyboardOptions: StoryboardOptions;
37
- }
38
- export declare type StoryboardOptions = {
39
- enabled: false;
40
- } | {
41
- enabled: true;
42
- };
43
- export interface ScreenshotDiffOptions {
44
- diffThreshold: number;
45
- diffPixelThreshold: number;
46
- }
47
1
  export type SingleTryScreenshotDiffResult = ScreenshotDiffResultMissingBase | ScreenshotDiffResultMissingHead | ScreenshotDiffResultDifferentSize | ScreenshotDiffResultCompared;
48
2
  /** Represents the result of comparing two screenshots */
49
3
  export type ScreenshotDiffResult = {
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Differs from ScreenshotComparisonOptions in that
3
+ * ScreenshotComparisonOptions specifies the test run or base replay id
4
+ * to compare to, while ScreenshotAssertionsOptions does not.
5
+ */
6
+ export type ScreenshotAssertionsOptions = {
7
+ enabled: false;
8
+ } | ScreenshotAssertionsEnabledOptions;
9
+ export interface ScreenshotAssertionsEnabledOptions extends ScreenshottingEnabledOptions {
10
+ diffOptions: ScreenshotDiffOptions;
11
+ }
12
+ export interface ScreenshottingEnabledOptions {
13
+ enabled: true;
14
+ storyboardOptions: StoryboardOptions;
15
+ }
16
+ export declare type StoryboardOptions = {
17
+ enabled: false;
18
+ } | {
19
+ enabled: true;
20
+ };
21
+ export interface ScreenshotDiffOptions {
22
+ diffThreshold: number;
23
+ diffPixelThreshold: number;
24
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,46 @@
1
+ export interface TestRunEnvironment {
2
+ ci?: boolean;
3
+ context?: TestRunGitHubContext;
4
+ [key: string]: unknown;
5
+ }
6
+ export type TestRunGitHubContext = TestRunGitHubPullRequestContext | TestRunGitHubPushContext | TestRunGitHubWorkflowDispatchContext;
7
+ export interface TestRunGitHubPullRequestContext {
8
+ type: "github";
9
+ event: "pull-request";
10
+ /** Pull request title */
11
+ title: string;
12
+ /** Pull request number */
13
+ number: number;
14
+ /** Pull request URL (web page) */
15
+ htmlUrl: string;
16
+ /** Base commit hash */
17
+ baseSha: string;
18
+ /** Base ref (usually /refs/head/<branch>) */
19
+ baseRef?: string;
20
+ /** Head commit hash */
21
+ headSha: string;
22
+ /** Head ref (usually /refs/head/<branch>) */
23
+ headRef?: string;
24
+ }
25
+ export interface TestRunGitHubPushContext {
26
+ type: "github";
27
+ event: "push";
28
+ /** Commit hash before the push event */
29
+ beforeSha: string;
30
+ /** Commit hash after the push event */
31
+ afterSha: string;
32
+ /** Git ref (usually /refs/head/<branch>) */
33
+ ref: string;
34
+ }
35
+ export interface TestRunGitHubWorkflowDispatchContext {
36
+ type: "github";
37
+ event: "workflow-dispatch";
38
+ /** Git ref (usually /refs/head/<branch>) */
39
+ ref: string;
40
+ /** Workflow dispatch inputs */
41
+ inputs: {
42
+ [key: string]: unknown;
43
+ };
44
+ /** Resolved head commit hash */
45
+ headSha: string;
46
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/api",
3
- "version": "2.42.0",
3
+ "version": "2.44.1",
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": "65e2410a784642674ea6c8203d5b9f8a303c33ea"
38
+ "gitHead": "1fd294cb699681672742e566ccc9ae0f4cb75b02"
39
39
  }