@alwaysmeticulous/client 2.281.0 → 2.283.1

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.
@@ -11,3 +11,9 @@ export declare const getPrDiffForTestRun: ({ client, testRunId, }: {
11
11
  }) => Promise<{
12
12
  content: string;
13
13
  }>;
14
+ export declare const getPrDescriptionForTestRun: ({ client, testRunId, }: {
15
+ client: MeticulousClient;
16
+ testRunId: string;
17
+ }) => Promise<{
18
+ content: string;
19
+ }>;
@@ -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]="5f18d969-6959-56ad-bdd9-d1cb36b792b3")}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]="f3e307be-0207-5a3f-a66f-b455ebf57e5d")}catch(e){}}();
3
3
 
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.getPrDiffForTestRun = exports.getPrDiff = void 0;
5
+ exports.getPrDescriptionForTestRun = exports.getPrDiffForTestRun = exports.getPrDiff = void 0;
6
6
  const getPrDiff = async ({ client, testRunId, }) => {
7
7
  const { data } = await client.post("/source-code/pr-diff", { testRunId });
8
8
  return data;
@@ -13,5 +13,10 @@ const getPrDiffForTestRun = async ({ client, testRunId, }) => {
13
13
  return data;
14
14
  };
15
15
  exports.getPrDiffForTestRun = getPrDiffForTestRun;
16
+ const getPrDescriptionForTestRun = async ({ client, testRunId, }) => {
17
+ const { data } = await client.get(`/test-runs/${testRunId}/pr-description`);
18
+ return data;
19
+ };
20
+ exports.getPrDescriptionForTestRun = getPrDescriptionForTestRun;
16
21
  //# sourceMappingURL=source-code.api.js.map
17
- //# debugId=5f18d969-6959-56ad-bdd9-d1cb36b792b3
22
+ //# debugId=f3e307be-0207-5a3f-a66f-b455ebf57e5d
@@ -1 +1 @@
1
- {"version":3,"file":"source-code.api.js","sources":["../../src/api/source-code.api.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAEO,MAAM,SAAS,GAAG,KAAK,EAAE,EAC9B,MAAM,EACN,SAAS,GAIV,EAAgC,EAAE;IACjC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAChC,sBAAsB,EACtB,EAAE,SAAS,EAAE,CACd,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAZW,QAAA,SAAS,aAYpB;AAEK,MAAM,mBAAmB,GAAG,KAAK,EAAE,EACxC,MAAM,EACN,SAAS,GAIV,EAAgC,EAAE;IACjC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,GAAG,CAC/B,cAAc,SAAS,UAAU,CAClC,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAXW,QAAA,mBAAmB,uBAW9B","debugId":"5f18d969-6959-56ad-bdd9-d1cb36b792b3"}
1
+ {"version":3,"file":"source-code.api.js","sources":["../../src/api/source-code.api.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAEO,MAAM,SAAS,GAAG,KAAK,EAAE,EAC9B,MAAM,EACN,SAAS,GAIV,EAAgC,EAAE;IACjC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAChC,sBAAsB,EACtB,EAAE,SAAS,EAAE,CACd,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAZW,QAAA,SAAS,aAYpB;AAEK,MAAM,mBAAmB,GAAG,KAAK,EAAE,EACxC,MAAM,EACN,SAAS,GAIV,EAAgC,EAAE;IACjC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,GAAG,CAC/B,cAAc,SAAS,UAAU,CAClC,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAXW,QAAA,mBAAmB,uBAW9B;AAEK,MAAM,0BAA0B,GAAG,KAAK,EAAE,EAC/C,MAAM,EACN,SAAS,GAIV,EAAgC,EAAE;IACjC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,GAAG,CAC/B,cAAc,SAAS,iBAAiB,CACzC,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAXW,QAAA,0BAA0B,8BAWrC","debugId":"f3e307be-0207-5a3f-a66f-b455ebf57e5d"}
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export { GetRepoUrlOptions, RepoUrlResponse, getProject, getRepoUrl, GetSourceAr
5
5
  export { ReplayV3UploadLocations, getReplay, getReplayDownloadUrl, getReplayV3DownloadUrls, } from "./api/replay.api";
6
6
  export { getRecordedSession, getRecordedSessionData, getRecordingCommandId, postSessionIdNotification, } from "./api/session.api";
7
7
  export { ReplayDiffResponse, getReplayDiff } from "./api/replay-diff.api";
8
- export { getPrDiff, getPrDiffForTestRun } from "./api/source-code.api";
8
+ export { getPrDescriptionForTestRun, getPrDiff, getPrDiffForTestRun, } from "./api/source-code.api";
9
9
  export { ExecuteSecureTunnelTestRunOptions, executeSecureTunnelTestRun, getTestRun, getTestRunData, getTestRunReplayDiffs, GetLatestTestRunOptions, getLatestTestRunResults, TestRun, emitTelemetry, } from "./api/test-run.api";
10
10
  export { GetIsLockedOptions, getIsLocked } from "./api/deployment-lock.api";
11
11
  export { IN_PROGRESS_TEST_RUN_STATUS } from "./api/test-run.constants";
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]="2bbe5271-0c63-5638-aadb-36057093f69d")}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]="3a5648be-fc72-523f-8e5b-13a1d1129211")}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,8 +16,8 @@ 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.downloadProjectDeployment = exports.completeContainerUpload = exports.completeAssetUpload = exports.requestGitDiffUpload = exports.requestUploadPart = exports.requestMultipartAssetUpload = exports.requestAssetUpload = exports.retryTransientUploadErrors = exports.isTransientUploadError = exports.UploadError = exports.putFileToSignedUrl = exports.getProxyAgent = exports.clearOAuthTokens = exports.getValidAccessToken = exports.performOAuthLogin = exports.makeRequest = exports.isInteractiveContext = exports.createClientWithOAuth = exports.createClient = exports.getAuthToken = exports.getApiToken = exports.IN_PROGRESS_TEST_RUN_STATUS = exports.getIsLocked = exports.emitTelemetry = exports.getLatestTestRunResults = exports.getTestRunReplayDiffs = exports.getTestRunData = exports.getTestRun = exports.executeSecureTunnelTestRun = exports.getPrDiffForTestRun = exports.getPrDiff = exports.getReplayDiff = exports.postSessionIdNotification = exports.getRecordingCommandId = exports.getRecordedSessionData = exports.getRecordedSession = exports.getReplayV3DownloadUrls = exports.getReplayDownloadUrl = exports.getReplay = exports.requestSourceCodeUploadUrl = exports.getSourceArchiveUrl = exports.getRepoUrl = exports.getProject = exports.getWhoami = exports.trackAgentFeatureUsage = exports.getTimelineDiff = exports.getScreenshotUrls = exports.getScreenshotDomDiff = exports.getTestRunDiffsSummary = exports.getStructuredSessionData = void 0;
20
- exports.getRelevantSessions = exports.isFetchError = exports.getRegistryAuth = exports.getContainerDeployment = void 0;
19
+ exports.completeContainerUpload = exports.completeAssetUpload = exports.requestGitDiffUpload = exports.requestUploadPart = exports.requestMultipartAssetUpload = exports.requestAssetUpload = exports.retryTransientUploadErrors = exports.isTransientUploadError = exports.UploadError = exports.putFileToSignedUrl = exports.getProxyAgent = exports.clearOAuthTokens = exports.getValidAccessToken = exports.performOAuthLogin = exports.makeRequest = exports.isInteractiveContext = exports.createClientWithOAuth = exports.createClient = exports.getAuthToken = exports.getApiToken = exports.IN_PROGRESS_TEST_RUN_STATUS = exports.getIsLocked = exports.emitTelemetry = exports.getLatestTestRunResults = exports.getTestRunReplayDiffs = exports.getTestRunData = exports.getTestRun = exports.executeSecureTunnelTestRun = exports.getPrDiffForTestRun = exports.getPrDiff = exports.getPrDescriptionForTestRun = exports.getReplayDiff = exports.postSessionIdNotification = exports.getRecordingCommandId = exports.getRecordedSessionData = exports.getRecordedSession = exports.getReplayV3DownloadUrls = exports.getReplayDownloadUrl = exports.getReplay = exports.requestSourceCodeUploadUrl = exports.getSourceArchiveUrl = exports.getRepoUrl = exports.getProject = exports.getWhoami = exports.trackAgentFeatureUsage = exports.getTimelineDiff = exports.getScreenshotUrls = exports.getScreenshotDomDiff = exports.getTestRunDiffsSummary = exports.getStructuredSessionData = void 0;
20
+ exports.getRelevantSessions = exports.isFetchError = exports.getRegistryAuth = exports.getContainerDeployment = exports.downloadProjectDeployment = void 0;
21
21
  var agent_api_1 = require("./api/agent.api");
22
22
  Object.defineProperty(exports, "getStructuredSessionData", { enumerable: true, get: function () { return agent_api_1.getStructuredSessionData; } });
23
23
  Object.defineProperty(exports, "getTestRunDiffsSummary", { enumerable: true, get: function () { return agent_api_1.getTestRunDiffsSummary; } });
@@ -45,6 +45,7 @@ Object.defineProperty(exports, "postSessionIdNotification", { enumerable: true,
45
45
  var replay_diff_api_1 = require("./api/replay-diff.api");
46
46
  Object.defineProperty(exports, "getReplayDiff", { enumerable: true, get: function () { return replay_diff_api_1.getReplayDiff; } });
47
47
  var source_code_api_1 = require("./api/source-code.api");
48
+ Object.defineProperty(exports, "getPrDescriptionForTestRun", { enumerable: true, get: function () { return source_code_api_1.getPrDescriptionForTestRun; } });
48
49
  Object.defineProperty(exports, "getPrDiff", { enumerable: true, get: function () { return source_code_api_1.getPrDiff; } });
49
50
  Object.defineProperty(exports, "getPrDiffForTestRun", { enumerable: true, get: function () { return source_code_api_1.getPrDiffForTestRun; } });
50
51
  var test_run_api_1 = require("./api/test-run.api");
@@ -96,4 +97,4 @@ Object.defineProperty(exports, "isFetchError", { enumerable: true, get: function
96
97
  var local_changes_api_1 = require("./api/local-changes.api");
97
98
  Object.defineProperty(exports, "getRelevantSessions", { enumerable: true, get: function () { return local_changes_api_1.getRelevantSessions; } });
98
99
  //# sourceMappingURL=index.js.map
99
- //# debugId=2bbe5271-0c63-5638-aadb-36057093f69d
100
+ //# debugId=3a5648be-fc72-523f-8e5b-13a1d1129211
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourceRoot":"","names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,6CAkByB;AANvB,qHAAA,wBAAwB,OAAA;AACxB,mHAAA,sBAAsB,OAAA;AACtB,iHAAA,oBAAoB,OAAA;AACpB,8GAAA,iBAAiB,OAAA;AACjB,4GAAA,eAAe,OAAA;AACf,mHAAA,sBAAsB,OAAA;AAExB,gEAA8C;AAC9C,6CAA4D;AAAnC,sGAAA,SAAS,OAAA;AAClC,iDAW2B;AARzB,yGAAA,UAAU,OAAA;AACV,yGAAA,UAAU,OAAA;AAGV,kHAAA,mBAAmB,OAAA;AAGnB,yHAAA,0BAA0B,OAAA;AAE5B,+CAK0B;AAHxB,uGAAA,SAAS,OAAA;AACT,kHAAA,oBAAoB,OAAA;AACpB,qHAAA,uBAAuB,OAAA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OAAA;AACpC,qDAA8D;AAArD,8GAAA,WAAW,OAAA;AAAE,+GAAA,YAAY,OAAA;AAClC,mCAMkB;AAJhB,sGAAA,YAAY,OAAA;AACZ,+GAAA,qBAAqB,OAAA;AACrB,8GAAA,oBAAoB,OAAA;AACpB,qGAAA,WAAW,OAAA;AAEb,mDAAwD;AAA/C,gHAAA,iBAAiB,OAAA;AAC1B,uDAA4D;AAAnD,oHAAA,mBAAmB,OAAA;AAC5B,+DAA6D;AAApD,qHAAA,gBAAgB,OAAA;AAEzB,2DAAwD;AAA/C,gHAAA,aAAa,OAAA;AACtB,yEAGwC;AADtC,4HAAA,kBAAkB,OAAA;AAEpB,uFAK+C;AAJ7C,4HAAA,WAAW,OAAA;AACX,uIAAA,sBAAsB,OAAA;AACtB,2IAAA,0BAA0B,OAAA;AAG5B,yEAwBuC;AArBrC,6HAAA,kBAAkB,OAAA;AAClB,sIAAA,2BAA2B,OAAA;AAI3B,4HAAA,iBAAiB,OAAA;AAGjB,+HAAA,oBAAoB,OAAA;AAGpB,8HAAA,mBAAmB,OAAA;AAGnB,kIAAA,uBAAuB,OAAA;AAGvB,oIAAA,yBAAyB,OAAA;AAEzB,iIAAA,sBAAsB,OAAA;AAGxB,mDAA8E;AAA5C,+GAAA,eAAe,OAAA;AACjD,mCAAwC;AAA/B,sGAAA,YAAY,OAAA;AACrB,6DAMiC;AAD/B,wHAAA,mBAAmB,OAAA","debugId":"3a5648be-fc72-523f-8e5b-13a1d1129211"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/client",
3
- "version": "2.281.0",
3
+ "version": "2.283.1",
4
4
  "description": "Helper methods for using the Meticulous backend API",
5
5
  "license": "ISC",
6
6
  "main": "dist/index.js",
@@ -12,8 +12,8 @@
12
12
  "loglevel": "^1.8.0",
13
13
  "proxy-agent": "^6.4.0",
14
14
  "undici": "^6.24.1",
15
- "@alwaysmeticulous/api": "2.280.0",
16
- "@alwaysmeticulous/common": "2.280.0"
15
+ "@alwaysmeticulous/api": "2.283.1",
16
+ "@alwaysmeticulous/common": "2.283.1"
17
17
  },
18
18
  "author": {
19
19
  "name": "The Meticulous Team",