@alwaysmeticulous/client
Advanced tools
Comparing version 2.151.0 to 2.152.0
import { AxiosInstance } from "axios"; | ||
export interface GetIsLockedOptions { | ||
client: AxiosInstance; | ||
url: string; | ||
deploymentId: string; | ||
} | ||
export declare const getIsLocked: ({ client, url, }: GetIsLockedOptions) => Promise<boolean>; | ||
export declare const getIsLocked: ({ client, deploymentId, }: GetIsLockedOptions) => Promise<boolean>; |
@@ -5,6 +5,6 @@ "use strict"; | ||
const axios_1 = require("axios"); | ||
const getIsLocked = async ({ client, url, }) => { | ||
const getIsLocked = async ({ client, deploymentId, }) => { | ||
const { data } = await client | ||
.get("deployment-locks/is-locked", { | ||
params: { url }, | ||
params: { deploymentId }, | ||
}) | ||
@@ -11,0 +11,0 @@ .catch((error) => { |
@@ -22,4 +22,9 @@ import { Project, TestCase, TestCaseResult, TestRunStatus } from "@alwaysmeticulous/api"; | ||
environment: string; | ||
isLockable: boolean; | ||
} | ||
export declare const executeSecureTunnelTestRun: ({ client, headSha, tunnelUrl, basicAuthUser, basicAuthPassword, environment, }: ExecuteSecureTunnelTestRunOptions) => Promise<TestRun | null>; | ||
export interface ExecuteSecureTunnelTestRunResponse { | ||
testRun?: TestRun; | ||
deploymentId: string; | ||
} | ||
export declare const executeSecureTunnelTestRun: ({ client, headSha, tunnelUrl, basicAuthUser, basicAuthPassword, environment, isLockable, }: ExecuteSecureTunnelTestRunOptions) => Promise<ExecuteSecureTunnelTestRunResponse>; | ||
export declare const getTestRun: (options: { | ||
@@ -26,0 +31,0 @@ client: AxiosInstance; |
@@ -5,6 +5,5 @@ "use strict"; | ||
const axios_1 = require("axios"); | ||
const executeSecureTunnelTestRun = async ({ client, headSha, tunnelUrl, basicAuthUser, basicAuthPassword, environment, }) => { | ||
var _a; | ||
const executeSecureTunnelTestRun = async ({ client, headSha, tunnelUrl, basicAuthUser, basicAuthPassword, environment, isLockable, }) => { | ||
const { data } = await client | ||
.post("test-runs/trigger-secure-tunnel-test-run", { | ||
.post("test-runs/trigger-secure-tunnel-test-run-v2", { | ||
headSha, | ||
@@ -15,2 +14,3 @@ tunnelUrl, | ||
environment, | ||
isLockable, | ||
}) | ||
@@ -30,3 +30,3 @@ .catch((error) => { | ||
}); | ||
return (_a = data) !== null && _a !== void 0 ? _a : null; | ||
return data; | ||
}; | ||
@@ -33,0 +33,0 @@ exports.executeSecureTunnelTestRun = executeSecureTunnelTestRun; |
{ | ||
"name": "@alwaysmeticulous/client", | ||
"version": "2.151.0", | ||
"version": "2.152.0", | ||
"description": "Helper methods for using the Meticulous backend API", | ||
@@ -22,4 +22,4 @@ "license": "ISC", | ||
"dependencies": { | ||
"@alwaysmeticulous/api": "^2.149.0", | ||
"@alwaysmeticulous/common": "^2.150.0", | ||
"@alwaysmeticulous/api": "^2.152.0", | ||
"@alwaysmeticulous/common": "^2.152.0", | ||
"axios": "^1.2.6", | ||
@@ -46,3 +46,3 @@ "axios-retry": "^4.1.0", | ||
}, | ||
"gitHead": "52612abe9266b6124578405e36999a284d95291a" | ||
"gitHead": "95717c6bee4830ff0c977ba642d6253753952481" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33815
476