glitch-javascript-sdk 3.0.6 → 3.0.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 +22 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Titles.d.ts +15 -0
- package/dist/esm/index.js +22 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +15 -0
- package/package.json +1 -1
- package/src/api/Titles.ts +18 -0
- package/src/routes/TitlesRoute.ts +6 -0
package/dist/cjs/index.js
CHANGED
|
@@ -25165,6 +25165,11 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
25165
25165
|
communityActivity: { url: '/titles/activity/trending', method: HTTP_METHODS.GET },
|
|
25166
25166
|
socialTrending: { url: '/titles/activity/social', method: HTTP_METHODS.GET },
|
|
25167
25167
|
discoveryQueue: { url: '/titles/discovery/queue', method: HTTP_METHODS.GET },
|
|
25168
|
+
/**
|
|
25169
|
+
* Curated, playable feed for the Swipe interface.
|
|
25170
|
+
* GET /titles/discovery/swipe
|
|
25171
|
+
*/
|
|
25172
|
+
swipeFeed: { url: '/titles/discovery/swipe', method: HTTP_METHODS.GET },
|
|
25168
25173
|
};
|
|
25169
25174
|
return TitlesRoute;
|
|
25170
25175
|
}());
|
|
@@ -26047,6 +26052,23 @@ var Titles = /** @class */ (function () {
|
|
|
26047
26052
|
Titles.getDiscoveryQueue = function (params) {
|
|
26048
26053
|
return Requests.processRoute(TitlesRoute.routes.discoveryQueue, {}, {}, params);
|
|
26049
26054
|
};
|
|
26055
|
+
/**
|
|
26056
|
+
* Get a curated, playable feed for the Swipe interface.
|
|
26057
|
+
* This route ensures games have builds and images, and supports seeded randomization.
|
|
26058
|
+
*
|
|
26059
|
+
* @see https://api.glitch.fun/api/documentation#/Discovery/getSwipeFeed
|
|
26060
|
+
*
|
|
26061
|
+
* @param params Object of query params:
|
|
26062
|
+
* - seed?: number (For consistent randomization)
|
|
26063
|
+
* - genres?: string[] (Filter by genre names)
|
|
26064
|
+
* - models?: string[] (premium, rental, subscription, free)
|
|
26065
|
+
* - excluded_ids?: string[] (UUIDs to skip)
|
|
26066
|
+
* - page?: number
|
|
26067
|
+
* - per_page?: number
|
|
26068
|
+
*/
|
|
26069
|
+
Titles.swipeFeed = function (params) {
|
|
26070
|
+
return Requests.processRoute(TitlesRoute.routes.swipeFeed, {}, undefined, params);
|
|
26071
|
+
};
|
|
26050
26072
|
return Titles;
|
|
26051
26073
|
}());
|
|
26052
26074
|
|