glitch-javascript-sdk 2.2.7 → 2.2.9

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
@@ -28465,6 +28465,13 @@ var ShortLinksRoute = /** @class */ (function () {
28465
28465
  geoDeviceBreakdown: { url: '/shortlinks/reports/geo-device', method: HTTP_METHODS.GET },
28466
28466
  timeSeries: { url: '/shortlinks/reports/time-series', method: HTTP_METHODS.GET },
28467
28467
  referrerReport: { url: '/shortlinks/reports/referrer', method: HTTP_METHODS.GET },
28468
+ campaignPerformance: { url: '/shortlinks/reports/campaign-performance', method: HTTP_METHODS.GET },
28469
+ influencerPerformance: { url: '/shortlinks/reports/influencer-performance', method: HTTP_METHODS.GET },
28470
+ socialPostPerformance: { url: '/shortlinks/reports/social-post-performance', method: HTTP_METHODS.GET },
28471
+ conversionFunnel: { url: '/shortlinks/reports/conversion-funnel', method: HTTP_METHODS.GET },
28472
+ clickHeatmap: { url: '/shortlinks/reports/click-heatmap', method: HTTP_METHODS.GET },
28473
+ botAnalysis: { url: '/shortlinks/reports/bot-analysis', method: HTTP_METHODS.GET },
28474
+ attributionReport: { url: '/shortlinks/reports/attribution', method: HTTP_METHODS.GET },
28468
28475
  };
28469
28476
  return ShortLinksRoute;
28470
28477
  }());
@@ -28528,6 +28535,27 @@ var ShortLinks = /** @class */ (function () {
28528
28535
  ShortLinks.referrerReport = function (params) {
28529
28536
  return Requests.processRoute(ShortLinksRoute.routes.referrerReport, undefined, undefined, params);
28530
28537
  };
28538
+ ShortLinks.campaignPerformance = function (params) {
28539
+ return Requests.processRoute(ShortLinksRoute.routes.campaignPerformance, undefined, undefined, params);
28540
+ };
28541
+ ShortLinks.influencerPerformance = function (params) {
28542
+ return Requests.processRoute(ShortLinksRoute.routes.influencerPerformance, undefined, undefined, params);
28543
+ };
28544
+ ShortLinks.socialPostPerformance = function (params) {
28545
+ return Requests.processRoute(ShortLinksRoute.routes.socialPostPerformance, undefined, undefined, params);
28546
+ };
28547
+ ShortLinks.conversionFunnel = function (params) {
28548
+ return Requests.processRoute(ShortLinksRoute.routes.conversionFunnel, undefined, undefined, params);
28549
+ };
28550
+ ShortLinks.clickHeatmap = function (params) {
28551
+ return Requests.processRoute(ShortLinksRoute.routes.clickHeatmap, undefined, undefined, params);
28552
+ };
28553
+ ShortLinks.botAnalysis = function (params) {
28554
+ return Requests.processRoute(ShortLinksRoute.routes.botAnalysis, undefined, undefined, params);
28555
+ };
28556
+ ShortLinks.attributionReport = function (params) {
28557
+ return Requests.processRoute(ShortLinksRoute.routes.attributionReport, undefined, undefined, params);
28558
+ };
28531
28559
  return ShortLinks;
28532
28560
  }());
28533
28561
 
@@ -28817,6 +28845,14 @@ var TwitchReportingRoute = /** @class */ (function () {
28817
28845
  url: '/reporting/twitch/streamers/{twitch_streamer_id}/streaming-schedule',
28818
28846
  method: HTTP_METHODS.GET
28819
28847
  },
28848
+ getStreamerGameHistory: {
28849
+ url: '/reporting/twitch/streamers/{twitch_streamer_id}/games',
28850
+ method: HTTP_METHODS.GET
28851
+ },
28852
+ getStreamersForGame: {
28853
+ url: '/reporting/twitch/games/{game_name}/streamers',
28854
+ method: HTTP_METHODS.GET
28855
+ },
28820
28856
  };
28821
28857
  return TwitchReportingRoute;
28822
28858
  }());
@@ -28897,6 +28933,25 @@ var TwitchReporting = /** @class */ (function () {
28897
28933
  TwitchReporting.getCreatorStreamingSchedule = function (twitch_streamer_id) {
28898
28934
  return Requests.processRoute(TwitchReportingRoute.routes.getCreatorStreamingSchedule, undefined, { twitch_streamer_id: twitch_streamer_id });
28899
28935
  };
28936
+ /**
28937
+ * Get a list of games played by a specific streamer.
28938
+ *
28939
+ * @param twitch_streamer_id The ID of the Twitch streamer.
28940
+ * @returns promise
28941
+ */
28942
+ TwitchReporting.getStreamerGameHistory = function (twitch_streamer_id) {
28943
+ return Requests.processRoute(TwitchReportingRoute.routes.getStreamerGameHistory, undefined, { twitch_streamer_id: twitch_streamer_id });
28944
+ };
28945
+ /**
28946
+ * Get a paginated list of streamers who played a specific game.
28947
+ *
28948
+ * @param game_name The URL-encoded name of the game.
28949
+ * @param params Optional query parameters for pagination (e.g., page, per_page).
28950
+ * @returns promise
28951
+ */
28952
+ TwitchReporting.getStreamersForGame = function (game_name, params) {
28953
+ return Requests.processRoute(TwitchReportingRoute.routes.getStreamersForGame, undefined, { game_name: encodeURIComponent(game_name) }, params);
28954
+ };
28900
28955
  return TwitchReporting;
28901
28956
  }());
28902
28957