@alwaysmeticulous/client 2.149.0 → 2.151.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.
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getIsLocked = void 0;
|
|
4
|
+
const axios_1 = require("axios");
|
|
5
|
+
const getIsLocked = async ({ client, url, }) => {
|
|
6
|
+
const { data } = await client
|
|
7
|
+
.get("deployment-locks/is-locked", {
|
|
8
|
+
params: { url },
|
|
9
|
+
})
|
|
10
|
+
.catch((error) => {
|
|
11
|
+
var _a, _b;
|
|
12
|
+
if ((0, axios_1.isAxiosError)(error)) {
|
|
13
|
+
const errorMessage = (_b = (_a = error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.message;
|
|
14
|
+
if (errorMessage) {
|
|
15
|
+
throw new Error(errorMessage);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
throw error;
|
|
19
|
+
});
|
|
20
|
+
return data.trim() === "true";
|
|
21
|
+
};
|
|
22
|
+
exports.getIsLocked = getIsLocked;
|
|
23
|
+
//# sourceMappingURL=deployment-lock.api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployment-lock.api.js","sourceRoot":"","sources":["../../src/api/deployment-lock.api.ts"],"names":[],"mappings":";;;AAAA,iCAAoD;AAO7C,MAAM,WAAW,GAAG,KAAK,EAAE,EAChC,MAAM,EACN,GAAG,GACgB,EAAoB,EAAE;IACzC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM;SAC1B,GAAG,CAA4B,4BAA4B,EAAE;QAC5D,MAAM,EAAE,EAAE,GAAG,EAAE;KAChB,CAAC;SACD,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,IAAI,EAAE,KAAK,MAAM,CAAC;AAChC,CAAC,CAAC;AArBW,QAAA,WAAW,eAqBtB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { getProject } from "./api/project.api";
|
|
|
3
3
|
export { getReplay, getReplayDownloadUrl, getReplayV3DownloadUrls, } from "./api/replay.api";
|
|
4
4
|
export { getRecordedSession, getRecordedSessionData, getRecordingCommandId, postSessionIdNotification, } from "./api/session.api";
|
|
5
5
|
export { ExecuteSecureTunnelTestRunOptions, executeSecureTunnelTestRun, getTestRun, GetLatestTestRunOptions, getLatestTestRunResults, TestRun, emitTelemetry, } from "./api/test-run.api";
|
|
6
|
+
export { GetIsLockedOptions, getIsLocked } from "./api/deployment-lock.api";
|
|
6
7
|
export { IN_PROGRESS_TEST_RUN_STATUS } from "./api/test-run.constants";
|
|
7
8
|
export { getApiToken } from "./api-token.utils";
|
|
8
9
|
export { ClientOptions, createClient } from "./client";
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ 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.createClient = exports.getApiToken = exports.IN_PROGRESS_TEST_RUN_STATUS = exports.emitTelemetry = exports.getLatestTestRunResults = exports.getTestRun = exports.executeSecureTunnelTestRun = exports.postSessionIdNotification = exports.getRecordingCommandId = exports.getRecordedSessionData = exports.getRecordedSession = exports.getReplayV3DownloadUrls = exports.getReplayDownloadUrl = exports.getReplay = exports.getProject = void 0;
|
|
17
|
+
exports.createClient = exports.getApiToken = exports.IN_PROGRESS_TEST_RUN_STATUS = exports.getIsLocked = exports.emitTelemetry = exports.getLatestTestRunResults = exports.getTestRun = exports.executeSecureTunnelTestRun = exports.postSessionIdNotification = exports.getRecordingCommandId = exports.getRecordedSessionData = exports.getRecordedSession = exports.getReplayV3DownloadUrls = exports.getReplayDownloadUrl = exports.getReplay = exports.getProject = void 0;
|
|
18
18
|
__exportStar(require("./api/github-cloud-replay.api"), exports);
|
|
19
19
|
var project_api_1 = require("./api/project.api");
|
|
20
20
|
Object.defineProperty(exports, "getProject", { enumerable: true, get: function () { return project_api_1.getProject; } });
|
|
@@ -32,6 +32,8 @@ Object.defineProperty(exports, "executeSecureTunnelTestRun", { enumerable: true,
|
|
|
32
32
|
Object.defineProperty(exports, "getTestRun", { enumerable: true, get: function () { return test_run_api_1.getTestRun; } });
|
|
33
33
|
Object.defineProperty(exports, "getLatestTestRunResults", { enumerable: true, get: function () { return test_run_api_1.getLatestTestRunResults; } });
|
|
34
34
|
Object.defineProperty(exports, "emitTelemetry", { enumerable: true, get: function () { return test_run_api_1.emitTelemetry; } });
|
|
35
|
+
var deployment_lock_api_1 = require("./api/deployment-lock.api");
|
|
36
|
+
Object.defineProperty(exports, "getIsLocked", { enumerable: true, get: function () { return deployment_lock_api_1.getIsLocked; } });
|
|
35
37
|
var test_run_constants_1 = require("./api/test-run.constants");
|
|
36
38
|
Object.defineProperty(exports, "IN_PROGRESS_TEST_RUN_STATUS", { enumerable: true, get: function () { return test_run_constants_1.IN_PROGRESS_TEST_RUN_STATUS; } });
|
|
37
39
|
var api_token_utils_1 = require("./api-token.utils");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,iDAA+C;AAAtC,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waysmeticulous/client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.151.0",
|
|
4
4
|
"description": "Helper methods for using the Meticulous backend API",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alwaysmeticulous/api": "^2.149.0",
|
|
23
|
-
"@alwaysmeticulous/common": "^2.
|
|
23
|
+
"@alwaysmeticulous/common": "^2.150.0",
|
|
24
24
|
"axios": "^1.2.6",
|
|
25
25
|
"axios-retry": "^4.1.0",
|
|
26
26
|
"loglevel": "^1.8.0"
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"bugs": {
|
|
43
43
|
"url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "52612abe9266b6124578405e36999a284d95291a"
|
|
46
46
|
}
|