@alwaysmeticulous/client 2.77.0 → 2.78.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/replay.api.d.ts +11 -0
- package/dist/api/replay.api.js +16 -1
- package/dist/api/replay.api.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/api/replay.api.d.ts
CHANGED
|
@@ -6,3 +6,14 @@ export interface ReplayDownloadUrlOutput {
|
|
|
6
6
|
dowloadUrl: string;
|
|
7
7
|
}
|
|
8
8
|
export declare const getReplayDownloadUrl: (client: AxiosInstance, replayId: string) => Promise<ReplayDownloadUrlOutput | null>;
|
|
9
|
+
export interface S3UploadLocation {
|
|
10
|
+
filePath: string;
|
|
11
|
+
signedUrl: string;
|
|
12
|
+
}
|
|
13
|
+
export type ReplayV3UploadLocations = Record<string, S3UploadLocation> & {
|
|
14
|
+
screenshots: Record<string, {
|
|
15
|
+
image: S3UploadLocation;
|
|
16
|
+
metadata: S3UploadLocation;
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
19
|
+
export declare const getReplayV3DownloadUrls: (client: AxiosInstance, replayId: string) => Promise<ReplayV3UploadLocations | null>;
|
package/dist/api/replay.api.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getReplayDownloadUrl = exports.getReplay = void 0;
|
|
6
|
+
exports.getReplayV3DownloadUrls = exports.getReplayDownloadUrl = exports.getReplay = void 0;
|
|
7
7
|
const axios_1 = __importDefault(require("axios"));
|
|
8
8
|
const getReplay = async (client, replayId) => {
|
|
9
9
|
const { data } = await client.get(`replays/${replayId}`).catch((error) => {
|
|
@@ -33,4 +33,19 @@ const getReplayDownloadUrl = async (client, replayId) => {
|
|
|
33
33
|
return data;
|
|
34
34
|
};
|
|
35
35
|
exports.getReplayDownloadUrl = getReplayDownloadUrl;
|
|
36
|
+
const getReplayV3DownloadUrls = async (client, replayId) => {
|
|
37
|
+
const { data } = await client
|
|
38
|
+
.get(`replays/${replayId}/download-urls`)
|
|
39
|
+
.catch((error) => {
|
|
40
|
+
var _a;
|
|
41
|
+
if (axios_1.default.isAxiosError(error)) {
|
|
42
|
+
if (((_a = error.response) === null || _a === void 0 ? void 0 : _a.status) === 404) {
|
|
43
|
+
return { data: null };
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
throw error;
|
|
47
|
+
});
|
|
48
|
+
return data;
|
|
49
|
+
};
|
|
50
|
+
exports.getReplayV3DownloadUrls = getReplayV3DownloadUrls;
|
|
36
51
|
//# sourceMappingURL=replay.api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay.api.js","sourceRoot":"","sources":["../../src/api/replay.api.ts"],"names":[],"mappings":";;;;;;AACA,kDAA6C;AAEtC,MAAM,SAAS,GAAG,KAAK,EAC5B,MAAqB,EACrB,QAAgB,EACkB,EAAE;IACpC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,WAAW,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;;QACvE,IAAI,eAAK,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE;YAC7B,IAAI,CAAA,MAAA,KAAK,CAAC,QAAQ,0CAAE,MAAM,MAAK,GAAG,EAAE;gBAClC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;aACvB;SACF;QACD,MAAM,KAAK,CAAC;IACd,CAAC,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAbW,QAAA,SAAS,aAapB;AAOK,MAAM,oBAAoB,GAGc,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE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CAAC,KAAK,EAAE,EAAE;;QACf,IAAI,eAAK,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE;YAC7B,IAAI,CAAA,MAAA,KAAK,CAAC,QAAQ,0CAAE,MAAM,MAAK,GAAG,EAAE;gBAClC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;aACvB;SACF;QACD,MAAM,KAAK,CAAC;IACd,CAAC,CAAC,CAAC;IACL,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAfW,QAAA,oBAAoB,wBAe/B;AAcK,MAAM,uBAAuB,GAGW,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE;IACxE,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM;SAC1B,GAAG,CAA0B,WAAW,QAAQ,gBAAgB,CAAC;SACjE,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;;QACf,IAAI,eAAK,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE;YAC7B,IAAI,CAAA,MAAA,KAAK,CAAC,QAAQ,0CAAE,MAAM,MAAK,GAAG,EAAE;gBAClC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;aACvB;SACF;QACD,MAAM,KAAK,CAAC;IACd,CAAC,CAAC,CAAC;IACL,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAfW,QAAA,uBAAuB,2BAelC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { getProject } from "./api/project.api";
|
|
2
|
-
export { getReplay, getReplayDownloadUrl } from "./api/replay.api";
|
|
2
|
+
export { getReplay, getReplayDownloadUrl, getReplayV3DownloadUrls, } from "./api/replay.api";
|
|
3
3
|
export { getRecordedSession, getRecordedSessionData, getRecordingCommandId, postSessionIdNotification, } from "./api/session.api";
|
|
4
4
|
export { GetLatestTestRunOptions, getLatestTestRunResults, } from "./api/test-run.api";
|
|
5
5
|
export { ClientOptions, createClient } from "./client";
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createClient = exports.getLatestTestRunResults = exports.postSessionIdNotification = exports.getRecordingCommandId = exports.getRecordedSessionData = exports.getRecordedSession = exports.getReplayDownloadUrl = exports.getReplay = exports.getProject = void 0;
|
|
3
|
+
exports.createClient = exports.getLatestTestRunResults = exports.postSessionIdNotification = exports.getRecordingCommandId = exports.getRecordedSessionData = exports.getRecordedSession = exports.getReplayV3DownloadUrls = exports.getReplayDownloadUrl = exports.getReplay = exports.getProject = void 0;
|
|
4
4
|
var project_api_1 = require("./api/project.api");
|
|
5
5
|
Object.defineProperty(exports, "getProject", { enumerable: true, get: function () { return project_api_1.getProject; } });
|
|
6
6
|
var replay_api_1 = require("./api/replay.api");
|
|
7
7
|
Object.defineProperty(exports, "getReplay", { enumerable: true, get: function () { return replay_api_1.getReplay; } });
|
|
8
8
|
Object.defineProperty(exports, "getReplayDownloadUrl", { enumerable: true, get: function () { return replay_api_1.getReplayDownloadUrl; } });
|
|
9
|
+
Object.defineProperty(exports, "getReplayV3DownloadUrls", { enumerable: true, get: function () { return replay_api_1.getReplayV3DownloadUrls; } });
|
|
9
10
|
var session_api_1 = require("./api/session.api");
|
|
10
11
|
Object.defineProperty(exports, "getRecordedSession", { enumerable: true, get: function () { return session_api_1.getRecordedSession; } });
|
|
11
12
|
Object.defineProperty(exports, "getRecordedSessionData", { enumerable: true, get: function () { return session_api_1.getRecordedSessionData; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,iDAA+C;AAAtC,yGAAA,UAAU,OAAA;AACnB,+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,iDAA+C;AAAtC,yGAAA,UAAU,OAAA;AACnB,+CAI0B;AAHxB,uGAAA,SAAS,OAAA;AACT,kHAAA,oBAAoB,OAAA;AACpB,qHAAA,uBAAuB,OAAA;AAEzB,iDAK2B;AAJzB,iHAAA,kBAAkB,OAAA;AAClB,qHAAA,sBAAsB,OAAA;AACtB,oHAAA,qBAAqB,OAAA;AACrB,wHAAA,yBAAyB,OAAA;AAE3B,mDAG4B;AAD1B,uHAAA,uBAAuB,OAAA;AAEzB,mCAAuD;AAA/B,sGAAA,YAAY,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.78.0",
|
|
4
4
|
"description": "Helper methods for using the Meticulous backend API",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"depcheck": "depcheck --ignore-patterns=dist"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@alwaysmeticulous/api": "^2.
|
|
23
|
-
"@alwaysmeticulous/common": "^2.
|
|
22
|
+
"@alwaysmeticulous/api": "^2.78.0",
|
|
23
|
+
"@alwaysmeticulous/common": "^2.78.0",
|
|
24
24
|
"axios": "^1.2.6",
|
|
25
25
|
"axios-retry": "^3.5.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": "586f71337fc4cc82f56753970cf0259c54c71c8b"
|
|
46
46
|
}
|