glitch-javascript-sdk 1.6.1 → 1.6.2

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