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.
@@ -635,5 +635,40 @@ declare class Titles {
635
635
  */
636
636
  static getProgressionLeaderboard<T>(title_id: string, api_key: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
637
637
  static getTechnicalEventSummary<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
638
+ /**
639
+ * Get games ranked by community activity (active players).
640
+ *
641
+ * @param params
642
+ * - window: number (hours, default 24)
643
+ * - limit: number (default 10)
644
+ */
645
+ static getCommunityActivity<T>(params?: {
646
+ window?: number;
647
+ limit?: number;
648
+ }): AxiosPromise<Response<T>>;
649
+ /**
650
+ * Get games trending on social media.
651
+ *
652
+ * @param params
653
+ * - type: 'influencer' (campaigns) or 'organic' (non-paid)
654
+ * - window: number (hours, default 168)
655
+ * - limit: number (default 10)
656
+ */
657
+ static getSocialTrending<T>(params: {
658
+ type: 'influencer' | 'organic';
659
+ window?: number;
660
+ limit?: number;
661
+ }): AxiosPromise<Response<T>>;
662
+ /**
663
+ * Get a personalized discovery queue of games.
664
+ *
665
+ * @param params
666
+ * - limit: number (default 12)
667
+ * - device_id: string (highly recommended for guest tracking)
668
+ */
669
+ static getDiscoveryQueue<T>(params?: {
670
+ limit?: number;
671
+ device_id?: string;
672
+ }): AxiosPromise<Response<T>>;
638
673
  }
639
674
  export default Titles;
package/dist/esm/index.js CHANGED
@@ -11833,6 +11833,8 @@ var TitlesRoute = /** @class */ (function () {
11833
11833
  progressionPlayerStats: { url: '/titles/{title_id}/installs/{install_id}/stats', method: HTTP_METHODS.GET },
11834
11834
  progressionPlayerAchievements: { url: '/titles/{title_id}/installs/{install_id}/achievements', method: HTTP_METHODS.GET },
11835
11835
  progressionLeaderboardView: { url: '/titles/{title_id}/leaderboards/{api_key}', method: HTTP_METHODS.GET },
11836
+ communityActivity: { url: '/titles/activity/trending', method: HTTP_METHODS.GET },
11837
+ socialTrending: { url: '/titles/activity/social', method: HTTP_METHODS.GET },
11836
11838
  };
11837
11839
  return TitlesRoute;
11838
11840
  }());
@@ -12684,6 +12686,37 @@ var Titles = /** @class */ (function () {
12684
12686
  Titles.getTechnicalEventSummary = function (title_id, params) {
12685
12687
  return Requests.processRoute(TitlesRoute.routes.getTechnicalEventSummary, {}, { title_id: title_id }, params);
12686
12688
  };
12689
+ /**
12690
+ * Get games ranked by community activity (active players).
12691
+ *
12692
+ * @param params
12693
+ * - window: number (hours, default 24)
12694
+ * - limit: number (default 10)
12695
+ */
12696
+ Titles.getCommunityActivity = function (params) {
12697
+ return Requests.processRoute(TitlesRoute.routes.communityActivity, {}, {}, params);
12698
+ };
12699
+ /**
12700
+ * Get games trending on social media.
12701
+ *
12702
+ * @param params
12703
+ * - type: 'influencer' (campaigns) or 'organic' (non-paid)
12704
+ * - window: number (hours, default 168)
12705
+ * - limit: number (default 10)
12706
+ */
12707
+ Titles.getSocialTrending = function (params) {
12708
+ return Requests.processRoute(TitlesRoute.routes.socialTrending, {}, {}, params);
12709
+ };
12710
+ /**
12711
+ * Get a personalized discovery queue of games.
12712
+ *
12713
+ * @param params
12714
+ * - limit: number (default 12)
12715
+ * - device_id: string (highly recommended for guest tracking)
12716
+ */
12717
+ Titles.getDiscoveryQueue = function (params) {
12718
+ return Requests.processRoute(TitlesRoute.routes.discoveryQueue, {}, {}, params);
12719
+ };
12687
12720
  return Titles;
12688
12721
  }());
12689
12722