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.
@@ -358,5 +358,13 @@ declare class Users {
358
358
  * @returns Promise resolving to the list of flairs
359
359
  */
360
360
  static getSubredditFlairs<T>(subreddit: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
361
+ /**
362
+ * Search all the users with advanced meilisearch options
363
+ *
364
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userSearch
365
+ *
366
+ * @returns promise
367
+ */
368
+ static search<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
361
369
  }
362
370
  export default Users;
package/dist/esm/index.js CHANGED
@@ -7424,6 +7424,7 @@ var UserRoutes = /** @class */ (function () {
7424
7424
  getFacebookPages: { url: "/users/facebookPages", method: HTTP_METHODS.GET },
7425
7425
  getSubreddits: { url: "/users/reddit/subreddits", method: HTTP_METHODS.GET },
7426
7426
  getSubredditFlairs: { url: "/users/reddit/redditflairs/{subreddit}", method: HTTP_METHODS.GET },
7427
+ search: { url: '/users/search', method: HTTP_METHODS.GET },
7427
7428
  };
7428
7429
  return UserRoutes;
7429
7430
  }());
@@ -7866,6 +7867,16 @@ var Users = /** @class */ (function () {
7866
7867
  Users.getSubredditFlairs = function (subreddit, params) {
7867
7868
  return Requests.processRoute(UserRoutes.routes.getSubredditFlairs, undefined, { subreddit: subreddit }, params);
7868
7869
  };
7870
+ /**
7871
+ * Search all the users with advanced meilisearch options
7872
+ *
7873
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userSearch
7874
+ *
7875
+ * @returns promise
7876
+ */
7877
+ Users.search = function (params) {
7878
+ return Requests.processRoute(UserRoutes.routes.search, undefined, undefined, params);
7879
+ };
7869
7880
  return Users;
7870
7881
  }());
7871
7882