@alwaysmeticulous/api 2.289.1 → 2.290.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/custom-checks.types.d.ts +30 -0
- package/dist/custom-checks.types.js +15 -3
- package/dist/custom-checks.types.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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]="
|
|
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=
|
|
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":"
|
|
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
|
@@ -21,4 +21,4 @@ export { AssetUploadMetadata } from "./sdk-bundle-api/sdk-to-bundle/asset-upload
|
|
|
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]="
|
|
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]="fd6dbc11-c00d-5240-9c3d-1ca64e77b08e")}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=
|
|
32
|
+
//# debugId=fd6dbc11-c00d-5240-9c3d-1ca64e77b08e
|
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,
|
|
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,6DAiB+B;AAN7B,qIAAA,8BAA8B,OAAA;AAC9B,sIAAA,+BAA+B,OAAA;AAC/B,oIAAA,6BAA6B,OAAA","debugId":"fd6dbc11-c00d-5240-9c3d-1ca64e77b08e"}
|