glitch-javascript-sdk 2.0.2 → 2.0.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
@@ -21777,13 +21777,16 @@ var UserRoutes = /** @class */ (function () {
21777
21777
  addType: { url: '/users/addType', method: HTTP_METHODS.POST },
21778
21778
  removeType: { url: '/users/removeType/{type_id}', method: HTTP_METHODS.DELETE },
21779
21779
  getCampaignInvites: { url: '/users/getCampaignInvites', method: HTTP_METHODS.GET },
21780
- getPayouts: { url: '/users/payouts', method: HTTP_METHODS.GET },
21780
+ getPayouts: { url: '/users/getCampaignPayouts', method: HTTP_METHODS.GET },
21781
21781
  verifyAccount: { url: '/users/verify', method: HTTP_METHODS.POST },
21782
21782
  getInstagramAccounts: { url: '/users/instagramAccounts', method: HTTP_METHODS.GET },
21783
21783
  getFacebookPages: { url: "/users/facebookPages", method: HTTP_METHODS.GET },
21784
21784
  getSubreddits: { url: "/users/reddit/subreddits", method: HTTP_METHODS.GET },
21785
21785
  getSubredditFlairs: { url: "/users/reddit/redditflairs/{subreddit}", method: HTTP_METHODS.GET },
21786
21786
  search: { url: '/users/search', method: HTTP_METHODS.GET },
21787
+ resendVerificationEmail: { url: '/users/resendVerificationEmail', method: HTTP_METHODS.POST },
21788
+ clearInstagramAuth: { url: '/users/clearInstagramAuth', method: HTTP_METHODS.DELETE },
21789
+ getSubredditRules: { url: "/users/reddit/redditrules/{subreddit}", method: HTTP_METHODS.GET },
21787
21790
  };
21788
21791
  return UserRoutes;
21789
21792
  }());
@@ -22236,6 +22239,37 @@ var Users = /** @class */ (function () {
22236
22239
  Users.search = function (params) {
22237
22240
  return Requests.processRoute(UserRoutes.routes.search, undefined, undefined, params);
22238
22241
  };
22242
+ /**
22243
+ * Resends the verification email to the authenticated user.
22244
+ *
22245
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/resendVerificationEmail
22246
+ *
22247
+ * @returns Promise
22248
+ */
22249
+ Users.resendVerificationEmail = function () {
22250
+ return Requests.processRoute(UserRoutes.routes.resendVerificationEmail, {});
22251
+ };
22252
+ /**
22253
+ * Clear Instagram authentication information from the current user.
22254
+ *
22255
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/clearInstagramAuth
22256
+ *
22257
+ * @returns promise
22258
+ */
22259
+ Users.clearInstagramAuth = function () {
22260
+ return Requests.processRoute(UserRoutes.routes.clearInstagramAuth, {});
22261
+ };
22262
+ /**
22263
+ * Gets the rules for a specific subreddit.
22264
+ *
22265
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/getSubredditRules
22266
+ *
22267
+ * @param subreddit The name of the subreddit to get rules for.
22268
+ * @returns Promise resolving to the list of rules
22269
+ */
22270
+ Users.getSubredditRules = function (subreddit, params) {
22271
+ return Requests.processRoute(UserRoutes.routes.getSubredditRules, undefined, { subreddit: subreddit }, params);
22272
+ };
22239
22273
  return Users;
22240
22274
  }());
22241
22275