glitch-javascript-sdk 2.2.7 → 2.2.8

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 CHANGED
@@ -28817,6 +28817,14 @@ var TwitchReportingRoute = /** @class */ (function () {
28817
28817
  url: '/reporting/twitch/streamers/{twitch_streamer_id}/streaming-schedule',
28818
28818
  method: HTTP_METHODS.GET
28819
28819
  },
28820
+ getStreamerGameHistory: {
28821
+ url: '/reporting/twitch/streamers/{twitch_streamer_id}/games',
28822
+ method: HTTP_METHODS.GET
28823
+ },
28824
+ getStreamersForGame: {
28825
+ url: '/reporting/twitch/games/{game_name}/streamers',
28826
+ method: HTTP_METHODS.GET
28827
+ },
28820
28828
  };
28821
28829
  return TwitchReportingRoute;
28822
28830
  }());
@@ -28897,6 +28905,25 @@ var TwitchReporting = /** @class */ (function () {
28897
28905
  TwitchReporting.getCreatorStreamingSchedule = function (twitch_streamer_id) {
28898
28906
  return Requests.processRoute(TwitchReportingRoute.routes.getCreatorStreamingSchedule, undefined, { twitch_streamer_id: twitch_streamer_id });
28899
28907
  };
28908
+ /**
28909
+ * Get a list of games played by a specific streamer.
28910
+ *
28911
+ * @param twitch_streamer_id The ID of the Twitch streamer.
28912
+ * @returns promise
28913
+ */
28914
+ TwitchReporting.getStreamerGameHistory = function (twitch_streamer_id) {
28915
+ return Requests.processRoute(TwitchReportingRoute.routes.getStreamerGameHistory, undefined, { twitch_streamer_id: twitch_streamer_id });
28916
+ };
28917
+ /**
28918
+ * Get a paginated list of streamers who played a specific game.
28919
+ *
28920
+ * @param game_name The URL-encoded name of the game.
28921
+ * @param params Optional query parameters for pagination (e.g., page, per_page).
28922
+ * @returns promise
28923
+ */
28924
+ TwitchReporting.getStreamersForGame = function (game_name, params) {
28925
+ return Requests.processRoute(TwitchReportingRoute.routes.getStreamersForGame, undefined, { game_name: encodeURIComponent(game_name) }, params);
28926
+ };
28900
28927
  return TwitchReporting;
28901
28928
  }());
28902
28929