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.
@@ -62,5 +62,20 @@ declare class TwitchReporting {
62
62
  * @returns promise
63
63
  */
64
64
  static getCreatorStreamingSchedule<T>(twitch_streamer_id: string): AxiosPromise<Response<T>>;
65
+ /**
66
+ * Get a list of games played by a specific streamer.
67
+ *
68
+ * @param twitch_streamer_id The ID of the Twitch streamer.
69
+ * @returns promise
70
+ */
71
+ static getStreamerGameHistory<T>(twitch_streamer_id: string): AxiosPromise<Response<T>>;
72
+ /**
73
+ * Get a paginated list of streamers who played a specific game.
74
+ *
75
+ * @param game_name The URL-encoded name of the game.
76
+ * @param params Optional query parameters for pagination (e.g., page, per_page).
77
+ * @returns promise
78
+ */
79
+ static getStreamersForGame<T>(game_name: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
65
80
  }
66
81
  export default TwitchReporting;
package/dist/esm/index.js CHANGED
@@ -15633,6 +15633,14 @@ var TwitchReportingRoute = /** @class */ (function () {
15633
15633
  url: '/reporting/twitch/streamers/{twitch_streamer_id}/streaming-schedule',
15634
15634
  method: HTTP_METHODS.GET
15635
15635
  },
15636
+ getStreamerGameHistory: {
15637
+ url: '/reporting/twitch/streamers/{twitch_streamer_id}/games',
15638
+ method: HTTP_METHODS.GET
15639
+ },
15640
+ getStreamersForGame: {
15641
+ url: '/reporting/twitch/games/{game_name}/streamers',
15642
+ method: HTTP_METHODS.GET
15643
+ },
15636
15644
  };
15637
15645
  return TwitchReportingRoute;
15638
15646
  }());
@@ -15713,6 +15721,25 @@ var TwitchReporting = /** @class */ (function () {
15713
15721
  TwitchReporting.getCreatorStreamingSchedule = function (twitch_streamer_id) {
15714
15722
  return Requests.processRoute(TwitchReportingRoute.routes.getCreatorStreamingSchedule, undefined, { twitch_streamer_id: twitch_streamer_id });
15715
15723
  };
15724
+ /**
15725
+ * Get a list of games played by a specific streamer.
15726
+ *
15727
+ * @param twitch_streamer_id The ID of the Twitch streamer.
15728
+ * @returns promise
15729
+ */
15730
+ TwitchReporting.getStreamerGameHistory = function (twitch_streamer_id) {
15731
+ return Requests.processRoute(TwitchReportingRoute.routes.getStreamerGameHistory, undefined, { twitch_streamer_id: twitch_streamer_id });
15732
+ };
15733
+ /**
15734
+ * Get a paginated list of streamers who played a specific game.
15735
+ *
15736
+ * @param game_name The URL-encoded name of the game.
15737
+ * @param params Optional query parameters for pagination (e.g., page, per_page).
15738
+ * @returns promise
15739
+ */
15740
+ TwitchReporting.getStreamersForGame = function (game_name, params) {
15741
+ return Requests.processRoute(TwitchReportingRoute.routes.getStreamersForGame, undefined, { game_name: encodeURIComponent(game_name) }, params);
15742
+ };
15716
15743
  return TwitchReporting;
15717
15744
  }());
15718
15745