@alwaysmeticulous/client 2.192.0 → 2.194.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/api/github-cloud-replay.api.d.ts +0 -7
- package/dist/api/github-cloud-replay.api.js +1 -10
- package/dist/api/github-cloud-replay.api.js.map +1 -1
- package/dist/api/project.api.d.ts +7 -0
- package/dist/api/project.api.js +17 -1
- package/dist/api/project.api.js.map +1 -1
- package/package.json +2 -2
|
@@ -8,11 +8,4 @@ export interface GitHubBaseTestRunResponse {
|
|
|
8
8
|
baseCommitSha: string;
|
|
9
9
|
baseTestRun: TestRun | null;
|
|
10
10
|
}
|
|
11
|
-
export interface GetRepoUrlOptions {
|
|
12
|
-
client: AxiosInstance;
|
|
13
|
-
}
|
|
14
|
-
export interface GitHubRepoUrlResponse {
|
|
15
|
-
repoUrl: string;
|
|
16
|
-
}
|
|
17
11
|
export declare const getGitHubCloudReplayBaseTestRun: ({ client, headCommitSha, }: GetBaseTestRunOptions) => Promise<GitHubBaseTestRunResponse>;
|
|
18
|
-
export declare const getGitHubCloudReplayRepoUrl: ({ client, }: GetRepoUrlOptions) => Promise<GitHubRepoUrlResponse>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getGitHubCloudReplayBaseTestRun = void 0;
|
|
4
4
|
const errors_1 = require("../errors");
|
|
5
5
|
const getGitHubCloudReplayBaseTestRun = async ({ client, headCommitSha, }) => {
|
|
6
6
|
const { data } = await client
|
|
@@ -13,13 +13,4 @@ const getGitHubCloudReplayBaseTestRun = async ({ client, headCommitSha, }) => {
|
|
|
13
13
|
return data;
|
|
14
14
|
};
|
|
15
15
|
exports.getGitHubCloudReplayBaseTestRun = getGitHubCloudReplayBaseTestRun;
|
|
16
|
-
const getGitHubCloudReplayRepoUrl = async ({ client, }) => {
|
|
17
|
-
const { data } = await client
|
|
18
|
-
.get("github-cloud-replay/repo-url")
|
|
19
|
-
.catch((error) => {
|
|
20
|
-
throw (0, errors_1.maybeEnrichAxiosError)(error);
|
|
21
|
-
});
|
|
22
|
-
return data;
|
|
23
|
-
};
|
|
24
|
-
exports.getGitHubCloudReplayRepoUrl = getGitHubCloudReplayRepoUrl;
|
|
25
16
|
//# sourceMappingURL=github-cloud-replay.api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github-cloud-replay.api.js","sourceRoot":"","sources":["../../src/api/github-cloud-replay.api.ts"],"names":[],"mappings":";;;AACA,sCAAkD;
|
|
1
|
+
{"version":3,"file":"github-cloud-replay.api.js","sourceRoot":"","sources":["../../src/api/github-cloud-replay.api.ts"],"names":[],"mappings":";;;AACA,sCAAkD;AAa3C,MAAM,+BAA+B,GAAG,KAAK,EAAE,EACpD,MAAM,EACN,aAAa,GACS,EAAsC,EAAE;IAC9D,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM;SAC1B,GAAG,CACF,mCAAmC,EACnC;QACE,MAAM,EAAE,EAAE,aAAa,EAAE;KAC1B,CACF;SACA,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACf,MAAM,IAAA,8BAAqB,EAAC,KAAK,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IAEL,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAhBW,QAAA,+BAA+B,mCAgB1C"}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import { Project } from "@alwaysmeticulous/api";
|
|
2
2
|
import { AxiosInstance } from "axios";
|
|
3
|
+
export interface GetRepoUrlOptions {
|
|
4
|
+
client: AxiosInstance;
|
|
5
|
+
}
|
|
6
|
+
export interface RepoUrlResponse {
|
|
7
|
+
repoUrl: string;
|
|
8
|
+
}
|
|
3
9
|
export declare const getProject: (client: AxiosInstance) => Promise<Project | null>;
|
|
10
|
+
export declare const getRepoUrl: ({ client, }: GetRepoUrlOptions) => Promise<RepoUrlResponse>;
|
package/dist/api/project.api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getProject = void 0;
|
|
3
|
+
exports.getRepoUrl = exports.getProject = void 0;
|
|
4
4
|
const axios_1 = require("axios");
|
|
5
5
|
const errors_1 = require("../errors");
|
|
6
6
|
const getProject = async (client) => {
|
|
@@ -16,4 +16,20 @@ const getProject = async (client) => {
|
|
|
16
16
|
return data;
|
|
17
17
|
};
|
|
18
18
|
exports.getProject = getProject;
|
|
19
|
+
const getRepoUrl = async ({ client, }) => {
|
|
20
|
+
const { data } = await client
|
|
21
|
+
.get("projects/repo-url")
|
|
22
|
+
.catch((error) => {
|
|
23
|
+
var _a, _b;
|
|
24
|
+
if ((0, axios_1.isAxiosError)(error)) {
|
|
25
|
+
const errorMessage = (_b = (_a = error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.message;
|
|
26
|
+
if (errorMessage) {
|
|
27
|
+
throw new Error(errorMessage);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
throw error;
|
|
31
|
+
});
|
|
32
|
+
return data;
|
|
33
|
+
};
|
|
34
|
+
exports.getRepoUrl = getRepoUrl;
|
|
19
35
|
//# sourceMappingURL=project.api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.api.js","sourceRoot":"","sources":["../../src/api/project.api.ts"],"names":[],"mappings":";;;AACA,iCAAoD;AACpD,sCAAkD;
|
|
1
|
+
{"version":3,"file":"project.api.js","sourceRoot":"","sources":["../../src/api/project.api.ts"],"names":[],"mappings":";;;AACA,iCAAoD;AACpD,sCAAkD;AAU3C,MAAM,UAAU,GAEQ,KAAK,EAAE,MAAM,EAAE,EAAE;IAC9C,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM;SAC1B,GAAG,CAAU,qBAAqB,CAAC;SACnC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;;QACf,IAAI,IAAA,oBAAY,EAAC,KAAK,CAAC,IAAI,CAAA,MAAA,KAAK,CAAC,QAAQ,0CAAE,MAAM,MAAK,GAAG,EAAE;YACzD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;SACvB;QAED,MAAM,IAAA,8BAAqB,EAAC,KAAK,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IACL,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAbW,QAAA,UAAU,cAarB;AAEK,MAAM,UAAU,GAAG,KAAK,EAAE,EAC/B,MAAM,GACY,EAA4B,EAAE;IAChD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM;SAC1B,GAAG,CAAqC,mBAAmB,CAAC;SAC5D,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;;QACf,IAAI,IAAA,oBAAY,EAAC,KAAK,CAAC,EAAE;YACvB,MAAM,YAAY,GAAG,MAAA,MAAA,KAAK,CAAC,QAAQ,0CAAE,IAAI,0CAAE,OAAO,CAAC;YAEnD,IAAI,YAAY,EAAE;gBAChB,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC;aAC/B;SACF;QAED,MAAM,KAAK,CAAC;IACd,CAAC,CAAC,CAAC;IAEL,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAlBW,QAAA,UAAU,cAkBrB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.194.0",
|
|
4
4
|
"description": "Helper methods for using the Meticulous backend API",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"bugs": {
|
|
43
43
|
"url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "517c2f50a456c655e2aa2450d4e84b657962acc7"
|
|
46
46
|
}
|