glitch-javascript-sdk 2.9.6 → 2.9.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.
@@ -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,9 @@ 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 },
11838
+ discoveryQueue: { url: '/titles/discovery/queue', method: HTTP_METHODS.GET },
11836
11839
  };
11837
11840
  return TitlesRoute;
11838
11841
  }());
@@ -12684,6 +12687,37 @@ var Titles = /** @class */ (function () {
12684
12687
  Titles.getTechnicalEventSummary = function (title_id, params) {
12685
12688
  return Requests.processRoute(TitlesRoute.routes.getTechnicalEventSummary, {}, { title_id: title_id }, params);
12686
12689
  };
12690
+ /**
12691
+ * Get games ranked by community activity (active players).
12692
+ *
12693
+ * @param params
12694
+ * - window: number (hours, default 24)
12695
+ * - limit: number (default 10)
12696
+ */
12697
+ Titles.getCommunityActivity = function (params) {
12698
+ return Requests.processRoute(TitlesRoute.routes.communityActivity, {}, {}, params);
12699
+ };
12700
+ /**
12701
+ * Get games trending on social media.
12702
+ *
12703
+ * @param params
12704
+ * - type: 'influencer' (campaigns) or 'organic' (non-paid)
12705
+ * - window: number (hours, default 168)
12706
+ * - limit: number (default 10)
12707
+ */
12708
+ Titles.getSocialTrending = function (params) {
12709
+ return Requests.processRoute(TitlesRoute.routes.socialTrending, {}, {}, params);
12710
+ };
12711
+ /**
12712
+ * Get a personalized discovery queue of games.
12713
+ *
12714
+ * @param params
12715
+ * - limit: number (default 12)
12716
+ * - device_id: string (highly recommended for guest tracking)
12717
+ */
12718
+ Titles.getDiscoveryQueue = function (params) {
12719
+ return Requests.processRoute(TitlesRoute.routes.discoveryQueue, {}, {}, params);
12720
+ };
12687
12721
  return Titles;
12688
12722
  }());
12689
12723