glitch-javascript-sdk 2.9.6 → 2.9.7

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
@@ -25017,6 +25017,8 @@ var TitlesRoute = /** @class */ (function () {
25017
25017
  progressionPlayerStats: { url: '/titles/{title_id}/installs/{install_id}/stats', method: HTTP_METHODS.GET },
25018
25018
  progressionPlayerAchievements: { url: '/titles/{title_id}/installs/{install_id}/achievements', method: HTTP_METHODS.GET },
25019
25019
  progressionLeaderboardView: { url: '/titles/{title_id}/leaderboards/{api_key}', method: HTTP_METHODS.GET },
25020
+ communityActivity: { url: '/titles/activity/trending', method: HTTP_METHODS.GET },
25021
+ socialTrending: { url: '/titles/activity/social', method: HTTP_METHODS.GET },
25020
25022
  };
25021
25023
  return TitlesRoute;
25022
25024
  }());
@@ -25868,6 +25870,37 @@ var Titles = /** @class */ (function () {
25868
25870
  Titles.getTechnicalEventSummary = function (title_id, params) {
25869
25871
  return Requests.processRoute(TitlesRoute.routes.getTechnicalEventSummary, {}, { title_id: title_id }, params);
25870
25872
  };
25873
+ /**
25874
+ * Get games ranked by community activity (active players).
25875
+ *
25876
+ * @param params
25877
+ * - window: number (hours, default 24)
25878
+ * - limit: number (default 10)
25879
+ */
25880
+ Titles.getCommunityActivity = function (params) {
25881
+ return Requests.processRoute(TitlesRoute.routes.communityActivity, {}, {}, params);
25882
+ };
25883
+ /**
25884
+ * Get games trending on social media.
25885
+ *
25886
+ * @param params
25887
+ * - type: 'influencer' (campaigns) or 'organic' (non-paid)
25888
+ * - window: number (hours, default 168)
25889
+ * - limit: number (default 10)
25890
+ */
25891
+ Titles.getSocialTrending = function (params) {
25892
+ return Requests.processRoute(TitlesRoute.routes.socialTrending, {}, {}, params);
25893
+ };
25894
+ /**
25895
+ * Get a personalized discovery queue of games.
25896
+ *
25897
+ * @param params
25898
+ * - limit: number (default 12)
25899
+ * - device_id: string (highly recommended for guest tracking)
25900
+ */
25901
+ Titles.getDiscoveryQueue = function (params) {
25902
+ return Requests.processRoute(TitlesRoute.routes.discoveryQueue, {}, {}, params);
25903
+ };
25871
25904
  return Titles;
25872
25905
  }());
25873
25906