glitch-javascript-sdk 3.2.28 → 3.2.29
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 +17 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/TwitchReporting.d.ts +11 -0
- package/dist/esm/index.js +17 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +11 -0
- package/package.json +1 -1
- package/src/api/TwitchReporting.ts +15 -1
- package/src/routes/TwitchReportingRoute.ts +5 -1
package/dist/cjs/index.js
CHANGED
|
@@ -29874,6 +29874,10 @@ var TwitchReportingRoute = /** @class */ (function () {
|
|
|
29874
29874
|
url: '/reporting/twitch/games/most-active',
|
|
29875
29875
|
method: HTTP_METHODS.GET
|
|
29876
29876
|
},
|
|
29877
|
+
discoverActiveGames: {
|
|
29878
|
+
url: '/reporting/twitch/games/discovery',
|
|
29879
|
+
method: HTTP_METHODS.GET
|
|
29880
|
+
},
|
|
29877
29881
|
getTopStreamers: {
|
|
29878
29882
|
url: '/reporting/twitch/streamers/top',
|
|
29879
29883
|
method: HTTP_METHODS.GET
|
|
@@ -29946,6 +29950,19 @@ var TwitchReporting = /** @class */ (function () {
|
|
|
29946
29950
|
TwitchReporting.getMostActiveGames = function (params) {
|
|
29947
29951
|
return Requests.processRoute(TwitchReportingRoute.routes.getMostActiveGames, undefined, undefined, params);
|
|
29948
29952
|
};
|
|
29953
|
+
/**
|
|
29954
|
+
* Discover the most active Twitch games with Steam/IGDB genre, category,
|
|
29955
|
+
* theme, live snapshot, and trend metrics.
|
|
29956
|
+
*
|
|
29957
|
+
* @see https://api.glitch.fun/api/documentation#/Twitch%20Reporting/discoverActiveTwitchGames
|
|
29958
|
+
*
|
|
29959
|
+
* @param params Optional query parameters (e.g., genres, categories, match_mode, trend_days, sort_by, limit).
|
|
29960
|
+
*
|
|
29961
|
+
* @returns promise
|
|
29962
|
+
*/
|
|
29963
|
+
TwitchReporting.discoverActiveGames = function (params) {
|
|
29964
|
+
return Requests.processRoute(TwitchReportingRoute.routes.discoverActiveGames, undefined, undefined, params);
|
|
29965
|
+
};
|
|
29949
29966
|
/**
|
|
29950
29967
|
* Get top streamers by performance (average or peak CCV).
|
|
29951
29968
|
*
|