@alwaysmeticulous/api 2.188.0 → 2.192.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
@@ -6,7 +6,7 @@ export { TestRunChunkStatus } from "./replay/test-run-chunk.types";
6
6
  export * from "./sdk-bundle-api/sdk-to-bundle/test-run-environment";
7
7
  export { ReplayableEvent } from "./sdk-bundle-api/bidirectional/replayable-event";
8
8
  export { HarEntry, HarLog, HarRequest, HarResponse, } from "./sdk-bundle-api/sdk-to-bundle/har-log";
9
- export { Cookie, SessionData, UrlHistoryEvent, WindowData, ApplicationSpecificData, StorageEntry, EarlyRequest, SerializedIDBValidKey, IDBObjectStoreMetadata, IDBObjectStoreSnapshot, IDBObjectStoreWithEntries, IDBIndexSnapshot, CustomData, CustomUserEvent, } from "./sdk-bundle-api/sdk-to-bundle/session-data";
9
+ export { Cookie, SessionData, UrlHistoryEvent, WindowData, ApplicationSpecificData, StorageEntry, EarlyRequest, SerializedIDBValidKey, IDBObjectStoreMetadata, IDBObjectStoreSnapshot, IDBObjectStoreWithEntries, IDBIndexSnapshot, CustomDataSingletonInternalKey, CustomDataSingletonInternalValues, CustomData, CustomUserEvent, } from "./sdk-bundle-api/sdk-to-bundle/session-data";
10
10
  export { SequenceNumber, WebSocketConnectionData, WebSocketConnectionEvent, WebSocketConnectionCreatedEvent, WebSocketConnectionOpenedEvent, EncodedArrayBuffer, EncodedBlob, WebSocketConnectionMessageEvent, WebSocketConnectionErrorEvent, WebSocketConnectionClosedEvent, } from "./sdk-bundle-api/sdk-to-bundle/websocket-data";
11
11
  export { Replay } from "./replay/replay.types";
12
12
  export { ScreenshotAssertionsOptions, ScreenshotAssertionsEnabledOptions, ScreenshottingEnabledOptions, StoryboardOptions, ScreenshotDiffOptions, ElementToIgnore, CSSSelectorToIgnore, } from "./sdk-bundle-api/sdk-to-bundle/screenshotting-options";
package/dist/index.js CHANGED
@@ -14,5 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.CustomDataSingletonInternalKey = void 0;
17
18
  __exportStar(require("./sdk-bundle-api/sdk-to-bundle/test-run-environment"), exports);
19
+ var session_data_1 = require("./sdk-bundle-api/sdk-to-bundle/session-data");
20
+ Object.defineProperty(exports, "CustomDataSingletonInternalKey", { enumerable: true, get: function () { return session_data_1.CustomDataSingletonInternalKey; } });
18
21
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA8BA,sFAAoE"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AA8BA,sFAAoE;AAQpE,4EAiBqD;AAJnD,8HAAA,8BAA8B,OAAA"}
@@ -188,8 +188,14 @@ export type CustomUserEvent = {
188
188
  timestamp: number;
189
189
  data: string;
190
190
  };
191
+ export declare enum CustomDataSingletonInternalKey {
192
+ SystemThemePreferredColor = "met-system-theme-preferred-color"
193
+ }
194
+ export type CustomDataSingletonInternalValues = {
195
+ [CustomDataSingletonInternalKey.SystemThemePreferredColor]: "light" | "dark";
196
+ };
191
197
  export type CustomData = {
192
- singletons: Record<string, string>;
198
+ singletons: Record<string, string> & Partial<CustomDataSingletonInternalValues>;
193
199
  arrays: Record<string, string[]>;
194
200
  events: CustomUserEvent[];
195
201
  };
@@ -1,3 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CustomDataSingletonInternalKey = void 0;
4
+ var CustomDataSingletonInternalKey;
5
+ (function (CustomDataSingletonInternalKey) {
6
+ CustomDataSingletonInternalKey["SystemThemePreferredColor"] = "met-system-theme-preferred-color";
7
+ })(CustomDataSingletonInternalKey = exports.CustomDataSingletonInternalKey || (exports.CustomDataSingletonInternalKey = {}));
3
8
  //# sourceMappingURL=session-data.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"session-data.js","sourceRoot":"","sources":["../../../src/sdk-bundle-api/sdk-to-bundle/session-data.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"session-data.js","sourceRoot":"","sources":["../../../src/sdk-bundle-api/sdk-to-bundle/session-data.ts"],"names":[],"mappings":";;;AAuNA,IAAY,8BAEX;AAFD,WAAY,8BAA8B;IACxC,gGAA8D,CAAA;AAChE,CAAC,EAFW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAEzC"}
@@ -35,6 +35,12 @@ export interface TestRunGitHubPushContext {
35
35
  ref: string;
36
36
  /** GitHub Actions run ID that triggered this test run */
37
37
  runId?: number;
38
+ /**
39
+ * Defined if we fell back to marking the trigger as a push, because for some reason we couldn't
40
+ * identify a single pull request to post the comments & checks on; or we don't want to post any
41
+ * comments or checks on any pull requests
42
+ */
43
+ reasonPullRequestIsNotAvailable?: ReasonPullRequestIsNotAvailable;
38
44
  }
39
45
  export interface TestRunGitHubWorkflowDispatchContext {
40
46
  type: "github";
@@ -108,3 +114,4 @@ export interface TestRunBitbucketPushContext {
108
114
  /** Git ref for the branch (/refs/head/<branch>) */
109
115
  ref: string;
110
116
  }
117
+ export type ReasonPullRequestIsNotAvailable = "no-pull-requests-found-for-commit" | "multiple-pull-requests-for-same-commit" | "all-pull-requests-had-skip-meticulous-label" | "only-found-merged-pull-requests-for-which-commit-is-the-merge-commit";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/api",
3
- "version": "2.188.0",
3
+ "version": "2.192.0",
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": "4d6aa04424e8c7438d3bc237860594030841d152"
38
+ "gitHead": "3fa1ccc14d7803319ea1f007eea51eead1085c6d"
39
39
  }