glitch-javascript-sdk 2.9.5 → 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 +40 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Titles.d.ts +36 -0
- package/dist/esm/index.js +40 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +36 -0
- package/package.json +1 -1
- package/src/api/Titles.ts +39 -1
- package/src/routes/TitlesRoute.ts +8 -0
package/dist/cjs/index.js
CHANGED
|
@@ -24998,6 +24998,10 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
24998
24998
|
url: '/titles/{title_id}/matchmaker/session/release',
|
|
24999
24999
|
method: HTTP_METHODS.POST
|
|
25000
25000
|
},
|
|
25001
|
+
getTechnicalEventSummary: {
|
|
25002
|
+
url: '/titles/{title_id}/analytics/events-summary',
|
|
25003
|
+
method: HTTP_METHODS.GET
|
|
25004
|
+
},
|
|
25001
25005
|
// --- Title Progression Definitions (Developer API) ---
|
|
25002
25006
|
progressionStatsList: { url: '/titles/{title_id}/progression/stats', method: HTTP_METHODS.GET },
|
|
25003
25007
|
progressionStatsStore: { url: '/titles/{title_id}/progression/stats', method: HTTP_METHODS.POST },
|
|
@@ -25013,6 +25017,8 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
25013
25017
|
progressionPlayerStats: { url: '/titles/{title_id}/installs/{install_id}/stats', method: HTTP_METHODS.GET },
|
|
25014
25018
|
progressionPlayerAchievements: { url: '/titles/{title_id}/installs/{install_id}/achievements', method: HTTP_METHODS.GET },
|
|
25015
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 },
|
|
25016
25022
|
};
|
|
25017
25023
|
return TitlesRoute;
|
|
25018
25024
|
}());
|
|
@@ -25861,6 +25867,40 @@ var Titles = /** @class */ (function () {
|
|
|
25861
25867
|
Titles.getProgressionLeaderboard = function (title_id, api_key, params) {
|
|
25862
25868
|
return Requests.processRoute(TitlesRoute.routes.progressionLeaderboardView, undefined, { title_id: title_id, api_key: api_key }, params);
|
|
25863
25869
|
};
|
|
25870
|
+
Titles.getTechnicalEventSummary = function (title_id, params) {
|
|
25871
|
+
return Requests.processRoute(TitlesRoute.routes.getTechnicalEventSummary, {}, { title_id: title_id }, params);
|
|
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
|
+
};
|
|
25864
25904
|
return Titles;
|
|
25865
25905
|
}());
|
|
25866
25906
|
|