@alwaysmeticulous/sdk-bundles-api 2.162.0 → 2.163.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.
|
@@ -6,6 +6,7 @@ export type MeticulousPublicApi = MeticulousPublicApiCommon & ({
|
|
|
6
6
|
replay: MeticulousPublicReplayApi;
|
|
7
7
|
} | {
|
|
8
8
|
isRunningAsTest: false;
|
|
9
|
+
record: MeticulousPublicRecordApi;
|
|
9
10
|
});
|
|
10
11
|
export interface MeticulousPublicApiCommon {
|
|
11
12
|
isRunningAsTest?: boolean;
|
|
@@ -22,4 +23,29 @@ export interface MeticulousPublicReplayApi {
|
|
|
22
23
|
* See https://app.meticulous.ai/docs/how-to/fix-false-positive-diffs#pausing-meticulous-replays
|
|
23
24
|
*/
|
|
24
25
|
resume: () => void;
|
|
26
|
+
/**
|
|
27
|
+
* Call this method to retrieve custom data that was recorded during the test run.
|
|
28
|
+
*/
|
|
29
|
+
retrieveCustomData(key: string): string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Call this method to retrieve an array of custom data that was recorded during the test run.
|
|
32
|
+
*/
|
|
33
|
+
retrieveCustomDataArray(arrayId: string): string[];
|
|
34
|
+
}
|
|
35
|
+
export interface MeticulousPublicRecordApi {
|
|
36
|
+
/**
|
|
37
|
+
* Call this method to record a single custom data value during the test run.
|
|
38
|
+
* Repeated calls to this method with the same key will overwrite the previous value.
|
|
39
|
+
*/
|
|
40
|
+
recordCustomData(key: string, value: string): {
|
|
41
|
+
success: boolean;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Call this method to push a value to an array of custom data during the test run.
|
|
45
|
+
* If the array does not exist, it will be created.
|
|
46
|
+
* If the array already exists, the value will be appended to it.
|
|
47
|
+
*/
|
|
48
|
+
pushToCustomDataArray(arrayId: string, valueToAppend: string): {
|
|
49
|
+
success: boolean;
|
|
50
|
+
};
|
|
25
51
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/sdk-bundles-api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.163.0",
|
|
4
4
|
"description": "Meticulous common types",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"depcheck": "depcheck --ignore-patterns=dist"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@alwaysmeticulous/api": "^2.
|
|
22
|
+
"@alwaysmeticulous/api": "^2.163.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"loglevel": "^1.8.0"
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"bugs": {
|
|
47
47
|
"url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "3433132494bcd861f837662603d25556521dbeac"
|
|
50
50
|
}
|