@alwaysmeticulous/sdk-bundles-api 2.42.0 → 2.43.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
|
@@ -2,7 +2,7 @@ export { RecordConfig, RecordSettings, RecordState } from "./record";
|
|
|
2
2
|
export { MeticulousWindowConfig, NetworkResponseSanitizer, } from "./record/record-settings";
|
|
3
3
|
export { ReplayUserInteractionsResult, ReplayUserInteractionsResultFull, ReplayUserInteractionsResultShort, BeforeUserEventOptions, } from "./replay/bundle-to-sdk/index";
|
|
4
4
|
export { BootstrapReplayUserInteractionsFn, BootstrapReplayUserInteractionsOptions, OnReplayTimelineEventFn, ReplayUserInteractionsFn, ReplayUserInteractionsOptions, VirtualTimeOptions, InstallVirtualEventLoopOpts, SetupReplayNetworkStubbingFn, NetworkStubbingOptions, BrowserContextSeedingOptions, SetupBrowserContextSeedingFn, ScreenshottingOptions, } from "./replay/sdk-to-bundle";
|
|
5
|
-
export { ReplayAndStoreResultsOptions, ReplayTarget, SnapshottedAssetsReplayTarget, URLReplayTarget, OriginalRecordedURLReplayTarget, ReplayExecutionOptions, ReplayOrchestratorScreenshottingOptions, ScreenshottingEnabledOptions, StoryboardOptions, GeneratedBy, GeneratedByNotebookRun, GeneratedByTestRun, GeneratedByReplayCommand, ScreenshotComparisonOptions, ScreenshotComparisonEnabledOptions, CompareScreenshotsTo, CompareScreenshotsToSpecificReplay, CompareScreenshotsToTestRun, DoNotCompareScreenshots, } from "./replay-orchestrator/sdk-to-bundle/execute-replay";
|
|
5
|
+
export { ReplayAndStoreResultsOptions, ReplayTarget, SnapshottedAssetsReplayTarget, URLReplayTarget, OriginalRecordedURLReplayTarget, ReplayExecutionOptions, ReplayOrchestratorScreenshottingOptions, ScreenshottingEnabledOptions, StoryboardOptions, GeneratedBy, GeneratedByNotebookRun, GeneratedByTestRun, GeneratedByReplayCommand, ScreenshotComparisonOptions, ScreenshotComparisonEnabledOptions, CompareScreenshotsTo, CompareScreenshotsToSpecificReplay, CompareScreenshotsToTestRun, DoNotCompareScreenshots, OutOfDateClientError, } from "./replay-orchestrator/sdk-to-bundle/execute-replay";
|
|
6
6
|
export { ExecuteTestRunOptions } from "./replay-orchestrator/sdk-to-bundle/execute-test-run";
|
|
7
7
|
export { ExecuteTestRunResult, TestRunExecution, RunningTestRunExecution, FinishedTestRunExecution, TestRunProgress, DetailedTestCaseResult, } from "./replay-orchestrator/bundle-to-sdk/execute-test-run";
|
|
8
8
|
export { ReplayAndStoreResultsResult, ReplayExecution, BeforeUserEventResult, } from "./replay-orchestrator/bundle-to-sdk/execute-replay";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ScreenshotDiffOptions } from "@alwaysmeticulous/api";
|
|
2
|
+
import { LogLevelNumbers } from "loglevel";
|
|
2
3
|
import { BeforeUserEventOptions } from "../../replay/bundle-to-sdk";
|
|
3
4
|
import { BeforeUserEventResult } from "../bundle-to-sdk/execute-replay";
|
|
4
5
|
export interface ReplayAndStoreResultsOptions {
|
|
@@ -12,6 +13,7 @@ export interface ReplayAndStoreResultsOptions {
|
|
|
12
13
|
commitSha: string | null | undefined;
|
|
13
14
|
sessionId: string;
|
|
14
15
|
cookiesFile: string | null | undefined;
|
|
16
|
+
logLevel: LogLevelNumbers;
|
|
15
17
|
/**
|
|
16
18
|
* Called when the user or runner closes the page or browser window
|
|
17
19
|
*/
|
|
@@ -21,6 +23,25 @@ export interface ReplayAndStoreResultsOptions {
|
|
|
21
23
|
* next event. This allows the caller to pause the replay, or control the playback.
|
|
22
24
|
*/
|
|
23
25
|
onBeforeUserEvent?: (opts: BeforeUserEventOptions) => Promise<BeforeUserEventResult>;
|
|
26
|
+
/**
|
|
27
|
+
* The maximum version of the replayAndStoreResults schema (the types in this inferface
|
|
28
|
+
* and the return type) that the caller is compatible with.
|
|
29
|
+
*
|
|
30
|
+
* This version number is bumped on every API change, and allows the replayAndStoreResults
|
|
31
|
+
* code to detect if it's being called by client that is not compatible with the latest version,
|
|
32
|
+
* and if so throw an OutOfDateClientError. It is then up to the client to display a message to ask
|
|
33
|
+
* the user to update to a newer version.
|
|
34
|
+
*
|
|
35
|
+
* Note: this is typed as a const of the latest known version, rather than a number, to ensure
|
|
36
|
+
* that all clients bump the version number passed when they upgrade to the types.
|
|
37
|
+
*/
|
|
38
|
+
maxSemanticVersionSupported: 1;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* See {@link ReplayAndStoreResultsOptions.maxSemanticVersionSupported} for more details.
|
|
42
|
+
*/
|
|
43
|
+
export interface OutOfDateClientError extends Error {
|
|
44
|
+
name: "OutOfDateClient";
|
|
24
45
|
}
|
|
25
46
|
/**
|
|
26
47
|
* Similar to ScreenshotAssertionsOptions, but also specifies the test run or base replay id
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ScreenshotAssertionsEnabledOptions, TestCaseResult, TestRunEnvironment } from "@alwaysmeticulous/api";
|
|
2
|
+
import { LogLevelNumbers } from "loglevel";
|
|
2
3
|
import { RunningTestRunExecution } from "../bundle-to-sdk/execute-test-run";
|
|
3
4
|
import { ReplayExecutionOptions } from "./execute-replay";
|
|
4
5
|
export interface ExecuteTestRunOptions {
|
|
@@ -46,6 +47,20 @@ export interface ExecuteTestRunOptions {
|
|
|
46
47
|
*/
|
|
47
48
|
environment?: TestRunEnvironment;
|
|
48
49
|
baseTestRunId: string | null;
|
|
50
|
+
logLevel: LogLevelNumbers;
|
|
49
51
|
onTestRunCreated?: (testRun: RunningTestRunExecution) => void;
|
|
50
52
|
onTestFinished?: (testRun: RunningTestRunExecution) => void;
|
|
53
|
+
/**
|
|
54
|
+
* The maximum version of the executeTestRun schema (the types in this inferface
|
|
55
|
+
* and the return type) that the caller is compatible with.
|
|
56
|
+
*
|
|
57
|
+
* This version number is bumped on every API change, and allows the executeTestRun
|
|
58
|
+
* code to detect if it's being called by client that is not compatible with the latest version,
|
|
59
|
+
* and if so throw an OutOfDateClientError. It is then up to the client to display a message to ask
|
|
60
|
+
* the user to update to a newer version.
|
|
61
|
+
*
|
|
62
|
+
* Note: this is typed as a const of the latest known version, rather than a number, to ensure
|
|
63
|
+
* that all clients bump the version number passed when they upgrade to the types.
|
|
64
|
+
*/
|
|
65
|
+
maxSemanticVersionSupported: 1;
|
|
51
66
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/sdk-bundles-api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.43.0",
|
|
4
4
|
"description": "Meticulous common types",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"bugs": {
|
|
51
51
|
"url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "7664f4dfeed3b08e5523c0acb4d98d11eee4c9ff"
|
|
54
54
|
}
|