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