@alwaysmeticulous/api 2.289.1 → 2.290.2

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.
@@ -115,3 +115,33 @@ export interface NetworkRequestSnapshotData {
115
115
  /** Whether the request was matched to a recorded request and stubbed. */
116
116
  matched: boolean;
117
117
  }
118
+ /**
119
+ * Status of the custom check results reported for a test run as a whole:
120
+ * - `complete`: the run finished and produced a verdict for every check.
121
+ * - `execution-error`: computing the custom checks failed (e.g. the script
122
+ * threw before producing results). This is a property of the run as a whole,
123
+ * not of any individual check — an individual check only ever has a
124
+ * {@link CustomCheckVerdict}.
125
+ */
126
+ export declare const CUSTOM_CHECK_RESULTS_STATUSES: readonly ["complete", "execution-error"];
127
+ export type CustomCheckResultsStatus = (typeof CUSTOM_CHECK_RESULTS_STATUSES)[number];
128
+ /**
129
+ * A single custom check's result: a {@link CustomCheckOutput} (verdict, summary
130
+ * and report) tagged with the check's id.
131
+ */
132
+ export interface ReportedCustomCheckResult extends CustomCheckOutput {
133
+ /** Stable identifier of the check, e.g. "accessibility-check". */
134
+ checkId: string;
135
+ }
136
+ /**
137
+ * The custom check results computed for a test run, reported in a single call to
138
+ * `reportCustomCheckResults`. Either every check's result (`status: "complete"`),
139
+ * or a single execution error for the run as a whole (`status: "execution-error"`).
140
+ */
141
+ export type ReportCustomCheckResultsRequest = {
142
+ status: "complete";
143
+ checks: ReportedCustomCheckResult[];
144
+ } | {
145
+ status: "execution-error";
146
+ error: string;
147
+ };
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ead46771-c69a-5d16-8a48-a04e6e5098b8")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="14a4ab8a-ebd9-5fd7-ba2b-b93055c8f39f")}catch(e){}}();
3
3
 
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.NETWORK_REQUESTS_SNAPSHOT_TYPE = exports.CUSTOM_CHECK_SUMMARY_MAX_LENGTH = void 0;
5
+ exports.CUSTOM_CHECK_RESULTS_STATUSES = exports.NETWORK_REQUESTS_SNAPSHOT_TYPE = exports.CUSTOM_CHECK_SUMMARY_MAX_LENGTH = void 0;
6
6
  /**
7
7
  * Maximum length of a custom check `summary`. The summary is rendered inline in
8
8
  * the UI, so it is truncated to this many characters when displayed rather than
@@ -14,5 +14,17 @@ exports.CUSTOM_CHECK_SUMMARY_MAX_LENGTH = 500;
14
14
  * consume it receive `Snapshot<NetworkRequestSnapshotData>` values.
15
15
  */
16
16
  exports.NETWORK_REQUESTS_SNAPSHOT_TYPE = "network-requests";
17
+ /**
18
+ * Status of the custom check results reported for a test run as a whole:
19
+ * - `complete`: the run finished and produced a verdict for every check.
20
+ * - `execution-error`: computing the custom checks failed (e.g. the script
21
+ * threw before producing results). This is a property of the run as a whole,
22
+ * not of any individual check — an individual check only ever has a
23
+ * {@link CustomCheckVerdict}.
24
+ */
25
+ exports.CUSTOM_CHECK_RESULTS_STATUSES = [
26
+ "complete",
27
+ "execution-error",
28
+ ];
17
29
  //# sourceMappingURL=custom-checks.types.js.map
18
- //# debugId=ead46771-c69a-5d16-8a48-a04e6e5098b8
30
+ //# debugId=14a4ab8a-ebd9-5fd7-ba2b-b93055c8f39f
@@ -1 +1 @@
1
- {"version":3,"file":"custom-checks.types.js","sources":["../src/custom-checks.types.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAoDA;;;;GAIG;AACU,QAAA,+BAA+B,GAAG,GAAG,CAAC;AA4DnD;;;GAGG;AACU,QAAA,8BAA8B,GAAG,kBAAkB,CAAC","debugId":"ead46771-c69a-5d16-8a48-a04e6e5098b8"}
1
+ {"version":3,"file":"custom-checks.types.js","sources":["../src/custom-checks.types.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAoDA;;;;GAIG;AACU,QAAA,+BAA+B,GAAG,GAAG,CAAC;AA4DnD;;;GAGG;AACU,QAAA,8BAA8B,GAAG,kBAAkB,CAAC;AAyBjE;;;;;;;GAOG;AACU,QAAA,6BAA6B,GAAG;IAC3C,UAAU;IACV,iBAAiB;CACT,CAAC","debugId":"14a4ab8a-ebd9-5fd7-ba2b-b93055c8f39f"}
package/dist/index.d.ts CHANGED
@@ -16,9 +16,9 @@ export { ScreenshotAssertionsOptions, ScreenshotAssertionsEnabledOptions, Screen
16
16
  export { NetworkStubbingMode, StubAllRequests, StubNonSSRRequests, PassthroughAppRequests, NoStubbing, CustomStubbing, RequestFilter, CustomTransformation, CustomTransformationWhere, } from "./sdk-bundle-api/sdk-to-bundle/network-stubbing";
17
17
  export { ConsoleMessageWithStackTracePointer, VirtualTimeChange, MeticulousConsoleMessage, ApplicationConsoleMessage, ConsoleMessageCoreData, ConsoleMessageType, ConsoleMessageLocation, } from "./sdk-bundle-api/bundle-to-sdk/console-message";
18
18
  export { InjectableRequestHeader, StaticHeaderValue, DynamicHeaderValue, AllRequests, AppUrlRequestsOnly, CustomRequests, } from "./sdk-bundle-api/sdk-to-bundle/header-injection";
19
- export { ConsoleErrorDivergenceIndicator, Divergence, DivergenceConsoleError, DivergenceIndicator, InitialNavigationDivergenceIndicator, NetworkActivityDivergenceIndicator, ScreenshotDivergenceIdentifier, UrlChangeEventDivergenceIndicator, UserEventDivergenceIndicator, } from "./sdk-bundle-api/bundle-to-sdk/replay-divergence";
19
+ export { ConsoleErrorDivergenceIndicator, Divergence, DivergenceConsoleError, DivergenceIndicator, GraphQLWebSocketActivityDivergenceIndicator, InitialNavigationDivergenceIndicator, NetworkActivityDivergenceIndicator, ScreenshotDivergenceIdentifier, UrlChangeEventDivergenceIndicator, UserEventDivergenceIndicator, } from "./sdk-bundle-api/bundle-to-sdk/replay-divergence";
20
20
  export { AssetUploadMetadata } from "./sdk-bundle-api/sdk-to-bundle/asset-upload-metadata";
21
21
  export { S3Location } from "./s3.types";
22
22
  export { CompanionAssetsInfo } from "./sdk-bundle-api/sdk-to-bundle/companion-assets";
23
23
  export { DeploymentArchiveType } from "./sdk-bundle-api/sdk-to-bundle/deployment-archive-type";
24
- export { Snapshot, CustomCheckInput, CustomCheckVerdict, CustomCheckOutput, CustomCheckReport, MarkdownReport, CustomCheck, CustomCheckPluginManifest, PluginManifest, NetworkRequestSnapshotData, NETWORK_REQUESTS_SNAPSHOT_TYPE, CUSTOM_CHECK_SUMMARY_MAX_LENGTH, } from "./custom-checks.types";
24
+ export { Snapshot, CustomCheckInput, CustomCheckVerdict, CustomCheckOutput, CustomCheckReport, MarkdownReport, CustomCheck, CustomCheckPluginManifest, PluginManifest, NetworkRequestSnapshotData, NETWORK_REQUESTS_SNAPSHOT_TYPE, CUSTOM_CHECK_SUMMARY_MAX_LENGTH, CUSTOM_CHECK_RESULTS_STATUSES, CustomCheckResultsStatus, ReportedCustomCheckResult, ReportCustomCheckResultsRequest, } from "./custom-checks.types";
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="78889a89-65b0-5901-8866-651c405305a4")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9bf7f317-42bb-584e-a02f-e30f0faf5333")}catch(e){}}();
3
3
 
4
4
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
5
  if (k2 === undefined) k2 = k;
@@ -16,7 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.CUSTOM_CHECK_SUMMARY_MAX_LENGTH = exports.NETWORK_REQUESTS_SNAPSHOT_TYPE = exports.CustomDataSingletonInternalKey = exports.isPrAuthorRelevance = exports.SessionRelevance = void 0;
19
+ exports.CUSTOM_CHECK_RESULTS_STATUSES = exports.CUSTOM_CHECK_SUMMARY_MAX_LENGTH = exports.NETWORK_REQUESTS_SNAPSHOT_TYPE = exports.CustomDataSingletonInternalKey = exports.isPrAuthorRelevance = exports.SessionRelevance = void 0;
20
20
  var test_run_types_1 = require("./replay/test-run.types");
21
21
  Object.defineProperty(exports, "SessionRelevance", { enumerable: true, get: function () { return test_run_types_1.SessionRelevance; } });
22
22
  Object.defineProperty(exports, "isPrAuthorRelevance", { enumerable: true, get: function () { return test_run_types_1.isPrAuthorRelevance; } });
@@ -27,5 +27,6 @@ __exportStar(require("./sdk-bundle-api/sdk-to-bundle/event-source-data"), export
27
27
  var custom_checks_types_1 = require("./custom-checks.types");
28
28
  Object.defineProperty(exports, "NETWORK_REQUESTS_SNAPSHOT_TYPE", { enumerable: true, get: function () { return custom_checks_types_1.NETWORK_REQUESTS_SNAPSHOT_TYPE; } });
29
29
  Object.defineProperty(exports, "CUSTOM_CHECK_SUMMARY_MAX_LENGTH", { enumerable: true, get: function () { return custom_checks_types_1.CUSTOM_CHECK_SUMMARY_MAX_LENGTH; } });
30
+ Object.defineProperty(exports, "CUSTOM_CHECK_RESULTS_STATUSES", { enumerable: true, get: function () { return custom_checks_types_1.CUSTOM_CHECK_RESULTS_STATUSES; } });
30
31
  //# sourceMappingURL=index.js.map
31
- //# debugId=78889a89-65b0-5901-8866-651c405305a4
32
+ //# debugId=9bf7f317-42bb-584e-a02f-e30f0faf5333
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourceRoot":"","names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAuBA,0DAaiC;AAZ/B,kHAAA,gBAAgB,OAAA;AAChB,qHAAA,mBAAmB,OAAA;AAsBrB,sFAAoE;AAQpE,4EAsBqD;AATnD,8HAAA,8BAA8B,OAAA;AAsBhC,mFAAiE;AA0DjE,6DAa+B;AAF7B,qIAAA,8BAA8B,OAAA;AAC9B,sIAAA,+BAA+B,OAAA","debugId":"78889a89-65b0-5901-8866-651c405305a4"}
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourceRoot":"","names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAuBA,0DAaiC;AAZ/B,kHAAA,gBAAgB,OAAA;AAChB,qHAAA,mBAAmB,OAAA;AAsBrB,sFAAoE;AAQpE,4EAsBqD;AATnD,8HAAA,8BAA8B,OAAA;AAsBhC,mFAAiE;AA2DjE,6DAiB+B;AAN7B,qIAAA,8BAA8B,OAAA;AAC9B,sIAAA,+BAA+B,OAAA;AAC/B,oIAAA,6BAA6B,OAAA","debugId":"9bf7f317-42bb-584e-a02f-e30f0faf5333"}
@@ -1,5 +1,5 @@
1
1
  import { ScreenshotDiffResult } from "./screenshot-diff-result";
2
- export type DivergenceIndicator = UserEventDivergenceIndicator | UrlChangeEventDivergenceIndicator | NetworkActivityDivergenceIndicator | InitialNavigationDivergenceIndicator | ConsoleErrorDivergenceIndicator;
2
+ export type DivergenceIndicator = UserEventDivergenceIndicator | UrlChangeEventDivergenceIndicator | NetworkActivityDivergenceIndicator | GraphQLWebSocketActivityDivergenceIndicator | InitialNavigationDivergenceIndicator | ConsoleErrorDivergenceIndicator;
3
3
  export interface UserEventDivergenceIndicator {
4
4
  type: "user-event";
5
5
  beforeEventIdx: number;
@@ -16,6 +16,19 @@ export interface NetworkActivityDivergenceIndicator {
16
16
  afterEventIndices: number[];
17
17
  kind: "completed-requests" | "pending-requests";
18
18
  }
19
+ /**
20
+ * Indicates that one or more GraphQL-over-websocket subscriptions degraded
21
+ * between the base and head replays (e.g. a subscribe frame that matched a
22
+ * recorded response exactly in the base now only matches by a relaxed strategy,
23
+ * or no longer matches at all). The event indices reference `graphQLWebSocket`
24
+ * timeline entries. Analogous to {@link NetworkActivityDivergenceIndicator} for
25
+ * HTTP requests.
26
+ */
27
+ export interface GraphQLWebSocketActivityDivergenceIndicator {
28
+ type: "graphql-websocket-activity";
29
+ beforeEventIndices?: number[] | undefined;
30
+ afterEventIndices: number[];
31
+ }
19
32
  export interface InitialNavigationDivergenceIndicator {
20
33
  type: "initial-navigation";
21
34
  beforeEventIdx: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/api",
3
- "version": "2.289.1",
3
+ "version": "2.290.2",
4
4
  "description": "Meticulous API types",
5
5
  "license": "ISC",
6
6
  "main": "dist/index.js",