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.
@@ -25,6 +25,12 @@ declare class Games {
25
25
  * @returns promise
26
26
  */
27
27
  static createCampaignData<T>(game_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
28
+ /**
29
+ * Generates campaign data with a game title.
30
+ *
31
+ * @returns promise
32
+ */
33
+ static createCampaignWithTitle<T>(game_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
28
34
  /**
29
35
  * Generates game data for this game.
30
36
  *
@@ -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
 
@@ -10956,6 +10967,7 @@ var GamesRoutes = /** @class */ (function () {
10956
10967
  listGames: { url: '/games', method: HTTP_METHODS.GET },
10957
10968
  viewGame: { url: '/games/{game_id}', method: HTTP_METHODS.GET },
10958
10969
  createCampaignData: { url: '/games/{game_id}/generateCampaign', method: HTTP_METHODS.POST },
10970
+ createCampaignWithTitle: { url: '/games/{game_id}/generateCampaignWithTitle', method: HTTP_METHODS.POST },
10959
10971
  createGameTitle: { url: '/games/{game_id}/generateTitle', method: HTTP_METHODS.POST },
10960
10972
  createGameScheduler: { url: '/games/{game_id}/generateScheduler', method: HTTP_METHODS.POST },
10961
10973
  };
@@ -10995,6 +11007,14 @@ var Games = /** @class */ (function () {
10995
11007
  Games.createCampaignData = function (game_id, data, params) {
10996
11008
  return Requests.processRoute(GamesRoutes.routes.createCampaignData, data, { game_id: game_id }, params);
10997
11009
  };
11010
+ /**
11011
+ * Generates campaign data with a game title.
11012
+ *
11013
+ * @returns promise
11014
+ */
11015
+ Games.createCampaignWithTitle = function (game_id, data, params) {
11016
+ return Requests.processRoute(GamesRoutes.routes.createCampaignWithTitle, data, { game_id: game_id }, params);
11017
+ };
10998
11018
  /**
10999
11019
  * Generates game data for this game.
11000
11020
  *