glitch-javascript-sdk 1.6.1 → 1.6.3

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
@@ -20608,6 +20608,7 @@ var UserRoutes = /** @class */ (function () {
20608
20608
  getFacebookPages: { url: "/users/facebookPages", method: HTTP_METHODS.GET },
20609
20609
  getSubreddits: { url: "/users/reddit/subreddits", method: HTTP_METHODS.GET },
20610
20610
  getSubredditFlairs: { url: "/users/reddit/redditflairs/{subreddit}", method: HTTP_METHODS.GET },
20611
+ search: { url: '/users/search', method: HTTP_METHODS.GET },
20611
20612
  };
20612
20613
  return UserRoutes;
20613
20614
  }());
@@ -21050,6 +21051,16 @@ var Users = /** @class */ (function () {
21050
21051
  Users.getSubredditFlairs = function (subreddit, params) {
21051
21052
  return Requests.processRoute(UserRoutes.routes.getSubredditFlairs, undefined, { subreddit: subreddit }, params);
21052
21053
  };
21054
+ /**
21055
+ * Search all the users with advanced meilisearch options
21056
+ *
21057
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userSearch
21058
+ *
21059
+ * @returns promise
21060
+ */
21061
+ Users.search = function (params) {
21062
+ return Requests.processRoute(UserRoutes.routes.search, undefined, undefined, params);
21063
+ };
21053
21064
  return Users;
21054
21065
  }());
21055
21066
 
@@ -24140,6 +24151,7 @@ var GamesRoutes = /** @class */ (function () {
24140
24151
  listGames: { url: '/games', method: HTTP_METHODS.GET },
24141
24152
  viewGame: { url: '/games/{game_id}', method: HTTP_METHODS.GET },
24142
24153
  createCampaignData: { url: '/games/{game_id}/generateCampaign', method: HTTP_METHODS.POST },
24154
+ createCampaignWithTitle: { url: '/games/{game_id}/generateCampaignWithTitle', method: HTTP_METHODS.POST },
24143
24155
  createGameTitle: { url: '/games/{game_id}/generateTitle', method: HTTP_METHODS.POST },
24144
24156
  createGameScheduler: { url: '/games/{game_id}/generateScheduler', method: HTTP_METHODS.POST },
24145
24157
  };
@@ -24179,6 +24191,14 @@ var Games = /** @class */ (function () {
24179
24191
  Games.createCampaignData = function (game_id, data, params) {
24180
24192
  return Requests.processRoute(GamesRoutes.routes.createCampaignData, data, { game_id: game_id }, params);
24181
24193
  };
24194
+ /**
24195
+ * Generates campaign data with a game title.
24196
+ *
24197
+ * @returns promise
24198
+ */
24199
+ Games.createCampaignWithTitle = function (game_id, data, params) {
24200
+ return Requests.processRoute(GamesRoutes.routes.createCampaignWithTitle, data, { game_id: game_id }, params);
24201
+ };
24182
24202
  /**
24183
24203
  * Generates game data for this game.
24184
24204
  *