glitch-javascript-sdk 3.0.6 → 3.0.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 CHANGED
@@ -25165,6 +25165,20 @@ 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 },
25173
+ developerPayoutConsolidatedSummary: {
25174
+ url: '/titles/{title_id}/payouts/consolidated-summary',
25175
+ method: HTTP_METHODS.GET
25176
+ },
25177
+ wishlistHistory: { url: '/titles/{title_id}/wishlist/history', method: HTTP_METHODS.GET },
25178
+ wishlistInfluencers: { url: '/titles/{title_id}/wishlist/influencers', method: HTTP_METHODS.GET },
25179
+ wishlistAds: { url: '/titles/{title_id}/wishlist/ads', method: HTTP_METHODS.GET },
25180
+ wishlistUtms: { url: '/titles/{title_id}/wishlist/utms', method: HTTP_METHODS.GET },
25181
+ wishlistConversions: { url: '/titles/{title_id}/wishlist/conversions', method: HTTP_METHODS.GET },
25168
25182
  };
25169
25183
  return TitlesRoute;
25170
25184
  }());
@@ -26047,6 +26061,48 @@ var Titles = /** @class */ (function () {
26047
26061
  Titles.getDiscoveryQueue = function (params) {
26048
26062
  return Requests.processRoute(TitlesRoute.routes.discoveryQueue, {}, {}, params);
26049
26063
  };
26064
+ /**
26065
+ * Get a curated, playable feed for the Swipe interface.
26066
+ * This route ensures games have builds and images, and supports seeded randomization.
26067
+ *
26068
+ * @see https://api.glitch.fun/api/documentation#/Discovery/getSwipeFeed
26069
+ *
26070
+ * @param params Object of query params:
26071
+ * - seed?: number (For consistent randomization)
26072
+ * - genres?: string[] (Filter by genre names)
26073
+ * - models?: string[] (premium, rental, subscription, free)
26074
+ * - excluded_ids?: string[] (UUIDs to skip)
26075
+ * - page?: number
26076
+ * - per_page?: number
26077
+ */
26078
+ Titles.swipeFeed = function (params) {
26079
+ return Requests.processRoute(TitlesRoute.routes.swipeFeed, {}, undefined, params);
26080
+ };
26081
+ /**
26082
+ * Get a consolidated report of all earnings for a title, including
26083
+ * playtime payouts, direct premium purchases, and rentals (minus refunds).
26084
+ *
26085
+ * @param title_id The UUID of the title.
26086
+ * @returns AxiosPromise containing the consolidated financial data.
26087
+ */
26088
+ Titles.getDeveloperPayoutConsolidatedSummary = function (title_id) {
26089
+ return Requests.processRoute(TitlesRoute.routes.developerPayoutConsolidatedSummary, {}, { title_id: title_id });
26090
+ };
26091
+ Titles.wishlistHistory = function (title_id, params) {
26092
+ return Requests.processRoute(TitlesRoute.routes.wishlistHistory, undefined, { title_id: title_id }, params);
26093
+ };
26094
+ Titles.wishlistInfluencers = function (title_id, params) {
26095
+ return Requests.processRoute(TitlesRoute.routes.wishlistInfluencers, undefined, { title_id: title_id }, params);
26096
+ };
26097
+ Titles.wishlistAds = function (title_id, params) {
26098
+ return Requests.processRoute(TitlesRoute.routes.wishlistAds, undefined, { title_id: title_id }, params);
26099
+ };
26100
+ Titles.wishlistUtms = function (title_id, params) {
26101
+ return Requests.processRoute(TitlesRoute.routes.wishlistUtms, undefined, { title_id: title_id }, params);
26102
+ };
26103
+ Titles.wishlistConversions = function (title_id, params) {
26104
+ return Requests.processRoute(TitlesRoute.routes.wishlistConversions, undefined, { title_id: title_id }, params);
26105
+ };
26050
26106
  return Titles;
26051
26107
  }());
26052
26108