glitch-javascript-sdk 3.3.1 → 3.3.2
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/cjs/index.js +11 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/PlayTests.d.ts +8 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
- package/src/api/PlayTests.ts +11 -0
- package/src/routes/PlayTestsRoute.ts +1 -0
|
@@ -99,5 +99,13 @@ declare class PlayTests {
|
|
|
99
99
|
* @returns Promise
|
|
100
100
|
*/
|
|
101
101
|
static mine<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
102
|
+
/**
|
|
103
|
+
* Get aggregated results for a play test (publisher view).
|
|
104
|
+
*
|
|
105
|
+
* @param title_id The ID of the title.
|
|
106
|
+
* @param playtest_id The ID of the play test.
|
|
107
|
+
* @returns Promise
|
|
108
|
+
*/
|
|
109
|
+
static getResults<T>(title_id: string, playtest_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
102
110
|
}
|
|
103
111
|
export default PlayTests;
|
package/dist/esm/index.js
CHANGED
|
@@ -15476,6 +15476,7 @@ var PlayTestsRoute = /** @class */ (function () {
|
|
|
15476
15476
|
cancelRequest: { url: '/playtests/{title_id}/cancel/{playtest_id}', method: HTTP_METHODS.POST },
|
|
15477
15477
|
show: { url: '/playtests/{title_id}/view/{playtest_id}', method: HTTP_METHODS.GET },
|
|
15478
15478
|
mine: { url: '/playtests/mine', method: HTTP_METHODS.GET },
|
|
15479
|
+
getResults: { url: '/playtests/{title_id}/{playtest_id}/results', method: HTTP_METHODS.GET },
|
|
15479
15480
|
};
|
|
15480
15481
|
return PlayTestsRoute;
|
|
15481
15482
|
}());
|
|
@@ -15605,6 +15606,16 @@ var PlayTests = /** @class */ (function () {
|
|
|
15605
15606
|
PlayTests.mine = function (params) {
|
|
15606
15607
|
return Requests.processRoute(PlayTestsRoute.routes.mine, {}, {}, params);
|
|
15607
15608
|
};
|
|
15609
|
+
/**
|
|
15610
|
+
* Get aggregated results for a play test (publisher view).
|
|
15611
|
+
*
|
|
15612
|
+
* @param title_id The ID of the title.
|
|
15613
|
+
* @param playtest_id The ID of the play test.
|
|
15614
|
+
* @returns Promise
|
|
15615
|
+
*/
|
|
15616
|
+
PlayTests.getResults = function (title_id, playtest_id, params) {
|
|
15617
|
+
return Requests.processRoute(PlayTestsRoute.routes.getResults, {}, { title_id: title_id, playtest_id: playtest_id }, params);
|
|
15618
|
+
};
|
|
15608
15619
|
return PlayTests;
|
|
15609
15620
|
}());
|
|
15610
15621
|
|