glitch-javascript-sdk 0.5.9 → 0.6.1

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
@@ -18686,12 +18686,15 @@ var UserRoutes = /** @class */ (function () {
18686
18686
  clearStripeAuth: { url: '/users/clearStripeAuth', method: HTTP_METHODS.DELETE },
18687
18687
  clearTikTokAuth: { url: '/users/clearTikTokAuth', method: HTTP_METHODS.DELETE },
18688
18688
  clearYoutubeAuth: { url: '/users/clearYoutubeAuth', method: HTTP_METHODS.DELETE },
18689
+ clearRedditAuth: { url: '/users/clearRedditAuth', method: HTTP_METHODS.DELETE },
18690
+ clearTwitterAuth: { url: '/users/clearTwitterAuth', method: HTTP_METHODS.DELETE },
18689
18691
  clearStreamElementsAuth: { url: '/users/clearStreamElementsAuth', method: HTTP_METHODS.DELETE },
18690
18692
  getTipsReceivedForMonth: { url: '/users/getTipsReceivedForMonth', method: HTTP_METHODS.GET },
18691
18693
  getTipsGivenForMonth: { url: '/users/getTipsGivenForMonth', method: HTTP_METHODS.GET },
18692
18694
  aggregateMonthlyReceivedTips: { url: '/users/aggregateMonthlyReceivedTips', method: HTTP_METHODS.GET },
18693
18695
  aggregateMonthlyGivenTips: { url: '/users/aggregateMonthlyGivenTips', method: HTTP_METHODS.GET },
18694
18696
  getYoutubeChannels: { url: '/users/getYoutubeChannels', method: HTTP_METHODS.GET },
18697
+ getFacebookGroups: { url: '/users/getFacebookGroups', method: HTTP_METHODS.GET },
18695
18698
  };
18696
18699
  return UserRoutes;
18697
18700
  }());
@@ -18891,6 +18894,36 @@ var Users = /** @class */ (function () {
18891
18894
  Users.clearYoutubeAuth = function () {
18892
18895
  return Requests.processRoute(UserRoutes.routes.clearYoutubeAuth, {});
18893
18896
  };
18897
+ /**
18898
+ * Clear Reddit authentication information from the current user.
18899
+ *
18900
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
18901
+ *
18902
+ * @returns promise
18903
+ */
18904
+ Users.clearRedditAuth = function () {
18905
+ return Requests.processRoute(UserRoutes.routes.clearRedditAuth, {});
18906
+ };
18907
+ /**
18908
+ * Clear Twitter authentication information from the current user.
18909
+ *
18910
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
18911
+ *
18912
+ * @returns promise
18913
+ */
18914
+ Users.clearTwitterAuth = function () {
18915
+ return Requests.processRoute(UserRoutes.routes.clearTwitterAuth, {});
18916
+ };
18917
+ /**
18918
+ * Clear StreamElements authentication information from the current user.
18919
+ *
18920
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
18921
+ *
18922
+ * @returns promise
18923
+ */
18924
+ Users.clearStreamElementsAuth = function () {
18925
+ return Requests.processRoute(UserRoutes.routes.clearStreamElementsAuth, {});
18926
+ };
18894
18927
  /**
18895
18928
  * Returns a list of tips received by the authenticated user for a given month and year
18896
18929
  *
@@ -18938,8 +18971,8 @@ var Users = /** @class */ (function () {
18938
18971
  *
18939
18972
  * @returns promise
18940
18973
  */
18941
- Users.getYoutubeChannels = function (params) {
18942
- return Requests.processRoute(UserRoutes.routes.getYoutubeChannels, undefined, undefined, params);
18974
+ Users.getFacebookGroups = function (params) {
18975
+ return Requests.processRoute(UserRoutes.routes.getFacebookGroups, undefined, undefined, params);
18943
18976
  };
18944
18977
  return Users;
18945
18978
  }());
@@ -19898,6 +19931,45 @@ var Posts = /** @class */ (function () {
19898
19931
  return Posts;
19899
19932
  }());
19900
19933
 
19934
+ var SocialRoute = /** @class */ (function () {
19935
+ function SocialRoute() {
19936
+ }
19937
+ SocialRoute.routes = {
19938
+ postVideoToTikTok: { url: '/social/postVideoToTikTok', method: HTTP_METHODS.POST },
19939
+ postVideoToFacebookGroup: { url: '/social/postVideoToFacebookGroup', method: HTTP_METHODS.POST },
19940
+ };
19941
+ return SocialRoute;
19942
+ }());
19943
+
19944
+ var Social = /** @class */ (function () {
19945
+ function Social() {
19946
+ }
19947
+ /**
19948
+ * Give a tip to another user
19949
+ *
19950
+ * @see https://api.glitch.fun/api/documentation#/Authentication%20Route/authLogin
19951
+ *
19952
+ * @returns A promise
19953
+ */
19954
+ Social.postVideoToTikTokFile = function (file, data, params) {
19955
+ var url = SocialRoute.routes.postVideoToTikTok.url;
19956
+ return Requests.uploadFile(url, 'video', file, data);
19957
+ };
19958
+ Social.postVideoToTikTokBlob = function (blob, data, params) {
19959
+ var url = SocialRoute.routes.postVideoToTikTok.url;
19960
+ return Requests.uploadBlob(url, 'video', blob, data);
19961
+ };
19962
+ Social.postVideoToFacebookGroupFile = function (file, data, params) {
19963
+ var url = SocialRoute.routes.postVideoToFacebookGroup.url;
19964
+ return Requests.uploadFile(url, 'video', file, data);
19965
+ };
19966
+ Social.postVideoToFacebookGroupBlob = function (blob, data, params) {
19967
+ var url = SocialRoute.routes.postVideoToFacebookGroup.url;
19968
+ return Requests.uploadBlob(url, 'video', blob, data);
19969
+ };
19970
+ return Social;
19971
+ }());
19972
+
19901
19973
  var TemplatesRoute = /** @class */ (function () {
19902
19974
  function TemplatesRoute() {
19903
19975
  }
@@ -20664,6 +20736,7 @@ var Glitch = /** @class */ (function () {
20664
20736
  Waitlists: Waitlists,
20665
20737
  Utility: Utility,
20666
20738
  Tips: Tips,
20739
+ Social: Social,
20667
20740
  TipPackages: TipPackages,
20668
20741
  TipEmojis: TipEmojis,
20669
20742
  TipPackagePurchases: TipPackagePurchases