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/esm/api/Titles.d.ts
CHANGED
|
@@ -634,5 +634,41 @@ declare class Titles {
|
|
|
634
634
|
* @param params Optional filters like { around_me: true, install_id: 'uuid', season_id: 'uuid' }
|
|
635
635
|
*/
|
|
636
636
|
static getProgressionLeaderboard<T>(title_id: string, api_key: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
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>>;
|
|
637
673
|
}
|
|
638
674
|
export default Titles;
|
package/dist/esm/index.js
CHANGED
|
@@ -11814,6 +11814,10 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
11814
11814
|
url: '/titles/{title_id}/matchmaker/session/release',
|
|
11815
11815
|
method: HTTP_METHODS.POST
|
|
11816
11816
|
},
|
|
11817
|
+
getTechnicalEventSummary: {
|
|
11818
|
+
url: '/titles/{title_id}/analytics/events-summary',
|
|
11819
|
+
method: HTTP_METHODS.GET
|
|
11820
|
+
},
|
|
11817
11821
|
// --- Title Progression Definitions (Developer API) ---
|
|
11818
11822
|
progressionStatsList: { url: '/titles/{title_id}/progression/stats', method: HTTP_METHODS.GET },
|
|
11819
11823
|
progressionStatsStore: { url: '/titles/{title_id}/progression/stats', method: HTTP_METHODS.POST },
|
|
@@ -11829,6 +11833,8 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
11829
11833
|
progressionPlayerStats: { url: '/titles/{title_id}/installs/{install_id}/stats', method: HTTP_METHODS.GET },
|
|
11830
11834
|
progressionPlayerAchievements: { url: '/titles/{title_id}/installs/{install_id}/achievements', method: HTTP_METHODS.GET },
|
|
11831
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 },
|
|
11832
11838
|
};
|
|
11833
11839
|
return TitlesRoute;
|
|
11834
11840
|
}());
|
|
@@ -12677,6 +12683,40 @@ var Titles = /** @class */ (function () {
|
|
|
12677
12683
|
Titles.getProgressionLeaderboard = function (title_id, api_key, params) {
|
|
12678
12684
|
return Requests.processRoute(TitlesRoute.routes.progressionLeaderboardView, undefined, { title_id: title_id, api_key: api_key }, params);
|
|
12679
12685
|
};
|
|
12686
|
+
Titles.getTechnicalEventSummary = function (title_id, params) {
|
|
12687
|
+
return Requests.processRoute(TitlesRoute.routes.getTechnicalEventSummary, {}, { title_id: title_id }, params);
|
|
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
|
+
};
|
|
12680
12720
|
return Titles;
|
|
12681
12721
|
}());
|
|
12682
12722
|
|