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/index.d.ts
CHANGED
|
@@ -8101,6 +8101,17 @@ declare class TwitchReporting {
|
|
|
8101
8101
|
* @returns promise
|
|
8102
8102
|
*/
|
|
8103
8103
|
static getMostActiveGames<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
8104
|
+
/**
|
|
8105
|
+
* Discover the most active Twitch games with Steam/IGDB genre, category,
|
|
8106
|
+
* theme, live snapshot, and trend metrics.
|
|
8107
|
+
*
|
|
8108
|
+
* @see https://api.glitch.fun/api/documentation#/Twitch%20Reporting/discoverActiveTwitchGames
|
|
8109
|
+
*
|
|
8110
|
+
* @param params Optional query parameters (e.g., genres, categories, match_mode, trend_days, sort_by, limit).
|
|
8111
|
+
*
|
|
8112
|
+
* @returns promise
|
|
8113
|
+
*/
|
|
8114
|
+
static discoverActiveGames<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
8104
8115
|
/**
|
|
8105
8116
|
* Get top streamers by performance (average or peak CCV).
|
|
8106
8117
|
*
|
package/package.json
CHANGED
|
@@ -58,6 +58,20 @@ class TwitchReporting {
|
|
|
58
58
|
return Requests.processRoute(TwitchReportingRoute.routes.getMostActiveGames, undefined, undefined, params);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
/**
|
|
62
|
+
* Discover the most active Twitch games with Steam/IGDB genre, category,
|
|
63
|
+
* theme, live snapshot, and trend metrics.
|
|
64
|
+
*
|
|
65
|
+
* @see https://api.glitch.fun/api/documentation#/Twitch%20Reporting/discoverActiveTwitchGames
|
|
66
|
+
*
|
|
67
|
+
* @param params Optional query parameters (e.g., genres, categories, match_mode, trend_days, sort_by, limit).
|
|
68
|
+
*
|
|
69
|
+
* @returns promise
|
|
70
|
+
*/
|
|
71
|
+
public static discoverActiveGames<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
72
|
+
return Requests.processRoute(TwitchReportingRoute.routes.discoverActiveGames, undefined, undefined, params);
|
|
73
|
+
}
|
|
74
|
+
|
|
61
75
|
/**
|
|
62
76
|
* Get top streamers by performance (average or peak CCV).
|
|
63
77
|
*
|
|
@@ -107,4 +121,4 @@ class TwitchReporting {
|
|
|
107
121
|
|
|
108
122
|
}
|
|
109
123
|
|
|
110
|
-
export default TwitchReporting;
|
|
124
|
+
export default TwitchReporting;
|
|
@@ -20,6 +20,10 @@ class TwitchReportingRoute {
|
|
|
20
20
|
url: '/reporting/twitch/games/most-active',
|
|
21
21
|
method: HTTP_METHODS.GET
|
|
22
22
|
},
|
|
23
|
+
discoverActiveGames: {
|
|
24
|
+
url: '/reporting/twitch/games/discovery',
|
|
25
|
+
method: HTTP_METHODS.GET
|
|
26
|
+
},
|
|
23
27
|
getTopStreamers: {
|
|
24
28
|
url: '/reporting/twitch/streamers/top',
|
|
25
29
|
method: HTTP_METHODS.GET
|
|
@@ -40,4 +44,4 @@ class TwitchReportingRoute {
|
|
|
40
44
|
|
|
41
45
|
}
|
|
42
46
|
|
|
43
|
-
export default TwitchReportingRoute;
|
|
47
|
+
export default TwitchReportingRoute;
|