@alwaysmeticulous/api 2.201.0 → 2.206.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.
@@ -1,6 +1,7 @@
1
1
  import { ScreenshotDiffOptions } from "../sdk-bundle-api/sdk-to-bundle/screenshotting-options";
2
2
  export interface TestCase {
3
3
  sessionId: string;
4
+ selected?: boolean;
4
5
  title?: string;
5
6
  options?: TestCaseReplayOptions;
6
7
  }
@@ -203,12 +203,24 @@ export declare enum CustomDataSingletonInternalKey {
203
203
  * https://datatracker.ietf.org/doc/html/rfc5646
204
204
  * Present on recordings since ~Feb 2025.
205
205
  */
206
- Languages = "met-languages"
206
+ Languages = "met-languages",
207
+ /**
208
+ * The id of the logged in user (e.g. a user id from a database for the application Meticulous is testing).
209
+ * This must be set by the recording application by calling `window.Meticulous.record.recordUserId(userId)`.
210
+ */
211
+ UserId = "met-user-id",
212
+ /**
213
+ * The email address of the logged in user. This must be set by the recording application
214
+ * by calling `window.Meticulous.record.recordUserEmail(email)`.
215
+ */
216
+ UserEmail = "met-user-email"
207
217
  }
208
218
  export type CustomDataSingletonInternalValues = {
209
219
  [CustomDataSingletonInternalKey.SystemThemePreferredColor]: "light" | "dark";
210
220
  [CustomDataSingletonInternalKey.TimezoneName]: string;
211
221
  [CustomDataSingletonInternalKey.Languages]: string;
222
+ [CustomDataSingletonInternalKey.UserId]: string;
223
+ [CustomDataSingletonInternalKey.UserEmail]: string;
212
224
  };
213
225
  export type CustomData = {
214
226
  singletons: Record<string, string> & Partial<CustomDataSingletonInternalValues>;
@@ -18,5 +18,15 @@ var CustomDataSingletonInternalKey;
18
18
  * Present on recordings since ~Feb 2025.
19
19
  */
20
20
  CustomDataSingletonInternalKey["Languages"] = "met-languages";
21
+ /**
22
+ * The id of the logged in user (e.g. a user id from a database for the application Meticulous is testing).
23
+ * This must be set by the recording application by calling `window.Meticulous.record.recordUserId(userId)`.
24
+ */
25
+ CustomDataSingletonInternalKey["UserId"] = "met-user-id";
26
+ /**
27
+ * The email address of the logged in user. This must be set by the recording application
28
+ * by calling `window.Meticulous.record.recordUserEmail(email)`.
29
+ */
30
+ CustomDataSingletonInternalKey["UserEmail"] = "met-user-email";
21
31
  })(CustomDataSingletonInternalKey = exports.CustomDataSingletonInternalKey || (exports.CustomDataSingletonInternalKey = {}));
22
32
  //# 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":";;;AAuNA,IAAY,8BAkBX;AAlBD,WAAY,8BAA8B;IACxC,gGAA8D,CAAA;IAE9D;;;;;OAKG;IACH,oEAAkC,CAAA;IAElC;;;;;OAKG;IACH,6DAA2B,CAAA;AAC7B,CAAC,EAlBW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAkBzC"}
1
+ {"version":3,"file":"session-data.js","sourceRoot":"","sources":["../../../src/sdk-bundle-api/sdk-to-bundle/session-data.ts"],"names":[],"mappings":";;;AAuNA,IAAY,8BA8BX;AA9BD,WAAY,8BAA8B;IACxC,gGAA8D,CAAA;IAE9D;;;;;OAKG;IACH,oEAAkC,CAAA;IAElC;;;;;OAKG;IACH,6DAA2B,CAAA;IAE3B;;;OAGG;IACH,wDAAsB,CAAA;IAEtB;;;OAGG;IACH,8DAA4B,CAAA;AAC9B,CAAC,EA9BW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QA8BzC"}
@@ -15,11 +15,11 @@ export interface TestRunGitHubPullRequestContext {
15
15
  htmlUrl: string;
16
16
  /** Base commit hash */
17
17
  baseSha: string;
18
- /** Base ref (usually /refs/head/<branch>) */
18
+ /** Base ref (usually /refs/heads/<branch>) */
19
19
  baseRef?: string;
20
20
  /** Head commit hash */
21
21
  headSha: string;
22
- /** Head ref (usually /refs/head/<branch>) */
22
+ /** Head ref (usually /refs/heads/<branch>) */
23
23
  headRef?: string;
24
24
  /** GitHub Actions run ID that triggered this test run */
25
25
  runId?: number;
@@ -31,7 +31,7 @@ export interface TestRunGitHubPushContext {
31
31
  beforeSha: string;
32
32
  /** Commit hash after the push event */
33
33
  afterSha: string;
34
- /** Git ref (usually /refs/head/<branch>) */
34
+ /** Git ref (usually /refs/heads/<branch>) */
35
35
  ref: string;
36
36
  /** GitHub Actions run ID that triggered this test run */
37
37
  runId?: number;
@@ -45,7 +45,7 @@ export interface TestRunGitHubPushContext {
45
45
  export interface TestRunGitHubWorkflowDispatchContext {
46
46
  type: "github";
47
47
  event: "workflow-dispatch";
48
- /** Git ref (usually /refs/head/<branch>) */
48
+ /** Git ref (usually /refs/heads/<branch>) */
49
49
  ref: string;
50
50
  /** Workflow dispatch inputs */
51
51
  inputs: {
@@ -70,9 +70,9 @@ export interface TestRunGitLabMergeRequestContext {
70
70
  headSha: string;
71
71
  /** Merge request URL (web page) */
72
72
  webUrl: string;
73
- /** Git ref for the target branch (/refs/head/<target_branch>). Not defined for merge requests prior to July 2024. */
73
+ /** Git ref for the target branch (/refs/heads/<target_branch>). Not defined for merge requests prior to July 2024. */
74
74
  baseRef?: string;
75
- /** Git ref for the source branch (/refs/head/<source_branch>). Not defined for merge requests prior to July 2024. */
75
+ /** Git ref for the source branch (/refs/heads/<source_branch>). Not defined for merge requests prior to July 2024. */
76
76
  headRef?: string;
77
77
  }
78
78
  export interface TestRunGitLabPushContext {
@@ -82,7 +82,7 @@ export interface TestRunGitLabPushContext {
82
82
  beforeSha: string;
83
83
  /** Commit hash after the push event */
84
84
  afterSha: string;
85
- /** Git ref for the branch (/refs/head/<branch>). Not defined for pushes prior to July 2024. */
85
+ /** Git ref for the branch (/refs/heads/<branch>). Not defined for pushes prior to July 2024. */
86
86
  ref?: string;
87
87
  }
88
88
  export type TestRunBitbucketContext = {
@@ -98,11 +98,11 @@ export interface TestRunBitbucketPullRequestContext {
98
98
  htmlUrl: string;
99
99
  /** Base commit hash */
100
100
  baseSha: string;
101
- /** Base ref (usually /refs/head/<branch>) */
101
+ /** Base ref (usually /refs/heads/<branch>) */
102
102
  baseRef: string;
103
103
  /** Head commit hash */
104
104
  headSha: string;
105
- /** Head ref (usually /refs/head/<branch>) */
105
+ /** Head ref (usually /refs/heads/<branch>) */
106
106
  headRef: string;
107
107
  }
108
108
  export interface TestRunBitbucketPushContext {
@@ -111,7 +111,7 @@ export interface TestRunBitbucketPushContext {
111
111
  beforeSha: string;
112
112
  /** Commit hash after the push event */
113
113
  afterSha: string;
114
- /** Git ref for the branch (/refs/head/<branch>) */
114
+ /** Git ref for the branch (/refs/heads/<branch>) */
115
115
  ref: string;
116
116
  }
117
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" | "commit-is-already-on-base-branch";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/api",
3
- "version": "2.201.0",
3
+ "version": "2.206.2",
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": "febc97c342ee826171aff37a12df09e2a70a12bd"
38
+ "gitHead": "49f1744bf7100a39c45cb0c6ee3247e7d607330d"
39
39
  }