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
package/dist/index.d.ts
CHANGED
|
@@ -6483,6 +6483,14 @@ declare class PlayTests {
|
|
|
6483
6483
|
* @returns Promise
|
|
6484
6484
|
*/
|
|
6485
6485
|
static mine<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6486
|
+
/**
|
|
6487
|
+
* Get aggregated results for a play test (publisher view).
|
|
6488
|
+
*
|
|
6489
|
+
* @param title_id The ID of the title.
|
|
6490
|
+
* @param playtest_id The ID of the play test.
|
|
6491
|
+
* @returns Promise
|
|
6492
|
+
*/
|
|
6493
|
+
static getResults<T>(title_id: string, playtest_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6486
6494
|
}
|
|
6487
6495
|
|
|
6488
6496
|
interface SteamCapsuleCropRequest {
|
package/package.json
CHANGED
package/src/api/PlayTests.ts
CHANGED
|
@@ -137,6 +137,17 @@ class PlayTests {
|
|
|
137
137
|
public static mine<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
138
138
|
return Requests.processRoute(PlayTestsRoute.routes.mine, {}, {}, params);
|
|
139
139
|
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Get aggregated results for a play test (publisher view).
|
|
143
|
+
*
|
|
144
|
+
* @param title_id The ID of the title.
|
|
145
|
+
* @param playtest_id The ID of the play test.
|
|
146
|
+
* @returns Promise
|
|
147
|
+
*/
|
|
148
|
+
public static getResults<T>(title_id: string, playtest_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
149
|
+
return Requests.processRoute(PlayTestsRoute.routes.getResults, {}, { title_id, playtest_id }, params);
|
|
150
|
+
}
|
|
140
151
|
}
|
|
141
152
|
|
|
142
153
|
export default PlayTests;
|
|
@@ -15,6 +15,7 @@ class PlayTestsRoute {
|
|
|
15
15
|
cancelRequest: { url: '/playtests/{title_id}/cancel/{playtest_id}', method: HTTP_METHODS.POST },
|
|
16
16
|
show: { url: '/playtests/{title_id}/view/{playtest_id}', method: HTTP_METHODS.GET },
|
|
17
17
|
mine: { url: '/playtests/mine', method: HTTP_METHODS.GET },
|
|
18
|
+
getResults: { url: '/playtests/{title_id}/{playtest_id}/results', method: HTTP_METHODS.GET },
|
|
18
19
|
|
|
19
20
|
};
|
|
20
21
|
}
|