glitch-javascript-sdk 0.5.9 → 0.6.0
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 +53 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Social.d.ts +16 -0
- package/dist/esm/api/Users.d.ts +9 -1
- package/dist/esm/api/index.d.ts +2 -0
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +53 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/routes/SocialRoute.d.ts +7 -0
- package/dist/index.d.ts +24 -1
- package/package.json +1 -1
- package/src/api/Social.ts +48 -0
- package/src/api/Users.ts +14 -2
- package/src/api/index.ts +2 -0
- package/src/index.ts +2 -1
- package/src/routes/SocialRoute.ts +13 -0
- package/src/routes/UserRoutes.ts +1 -0
package/dist/cjs/index.js
CHANGED
|
@@ -18692,6 +18692,7 @@ var UserRoutes = /** @class */ (function () {
|
|
|
18692
18692
|
aggregateMonthlyReceivedTips: { url: '/users/aggregateMonthlyReceivedTips', method: HTTP_METHODS.GET },
|
|
18693
18693
|
aggregateMonthlyGivenTips: { url: '/users/aggregateMonthlyGivenTips', method: HTTP_METHODS.GET },
|
|
18694
18694
|
getYoutubeChannels: { url: '/users/getYoutubeChannels', method: HTTP_METHODS.GET },
|
|
18695
|
+
getFacebookGroups: { url: '/users/getFacebookGroups', method: HTTP_METHODS.GET },
|
|
18695
18696
|
};
|
|
18696
18697
|
return UserRoutes;
|
|
18697
18698
|
}());
|
|
@@ -18891,6 +18892,16 @@ var Users = /** @class */ (function () {
|
|
|
18891
18892
|
Users.clearYoutubeAuth = function () {
|
|
18892
18893
|
return Requests.processRoute(UserRoutes.routes.clearYoutubeAuth, {});
|
|
18893
18894
|
};
|
|
18895
|
+
/**
|
|
18896
|
+
* Clear StreamElements authentication information from the current user.
|
|
18897
|
+
*
|
|
18898
|
+
* @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
|
|
18899
|
+
*
|
|
18900
|
+
* @returns promise
|
|
18901
|
+
*/
|
|
18902
|
+
Users.clearStreamElementsAuth = function () {
|
|
18903
|
+
return Requests.processRoute(UserRoutes.routes.clearStreamElementsAuth, {});
|
|
18904
|
+
};
|
|
18894
18905
|
/**
|
|
18895
18906
|
* Returns a list of tips received by the authenticated user for a given month and year
|
|
18896
18907
|
*
|
|
@@ -18938,8 +18949,8 @@ var Users = /** @class */ (function () {
|
|
|
18938
18949
|
*
|
|
18939
18950
|
* @returns promise
|
|
18940
18951
|
*/
|
|
18941
|
-
Users.
|
|
18942
|
-
return Requests.processRoute(UserRoutes.routes.
|
|
18952
|
+
Users.getFacebookGroups = function (params) {
|
|
18953
|
+
return Requests.processRoute(UserRoutes.routes.getFacebookGroups, undefined, undefined, params);
|
|
18943
18954
|
};
|
|
18944
18955
|
return Users;
|
|
18945
18956
|
}());
|
|
@@ -19898,6 +19909,45 @@ var Posts = /** @class */ (function () {
|
|
|
19898
19909
|
return Posts;
|
|
19899
19910
|
}());
|
|
19900
19911
|
|
|
19912
|
+
var SocialRoute = /** @class */ (function () {
|
|
19913
|
+
function SocialRoute() {
|
|
19914
|
+
}
|
|
19915
|
+
SocialRoute.routes = {
|
|
19916
|
+
postVideoToTikTok: { url: '/social/postVideoToTikTok', method: HTTP_METHODS.POST },
|
|
19917
|
+
postVideoToFacebookGroup: { url: '/social/postVideoToFacebookGroup', method: HTTP_METHODS.POST },
|
|
19918
|
+
};
|
|
19919
|
+
return SocialRoute;
|
|
19920
|
+
}());
|
|
19921
|
+
|
|
19922
|
+
var Social = /** @class */ (function () {
|
|
19923
|
+
function Social() {
|
|
19924
|
+
}
|
|
19925
|
+
/**
|
|
19926
|
+
* Give a tip to another user
|
|
19927
|
+
*
|
|
19928
|
+
* @see https://api.glitch.fun/api/documentation#/Authentication%20Route/authLogin
|
|
19929
|
+
*
|
|
19930
|
+
* @returns A promise
|
|
19931
|
+
*/
|
|
19932
|
+
Social.postVideoToTikTokFile = function (file, data, params) {
|
|
19933
|
+
var url = SocialRoute.routes.postVideoToTikTok.url;
|
|
19934
|
+
return Requests.uploadFile(url, 'video', file, data);
|
|
19935
|
+
};
|
|
19936
|
+
Social.postVideoToTikTokBlob = function (blob, data, params) {
|
|
19937
|
+
var url = SocialRoute.routes.postVideoToTikTok.url;
|
|
19938
|
+
return Requests.uploadBlob(url, 'video', blob, data);
|
|
19939
|
+
};
|
|
19940
|
+
Social.postVideoToFacebookGroupFile = function (file, data, params) {
|
|
19941
|
+
var url = SocialRoute.routes.postVideoToFacebookGroup.url;
|
|
19942
|
+
return Requests.uploadFile(url, 'video', file, data);
|
|
19943
|
+
};
|
|
19944
|
+
Social.postVideoToFacebookGroupBlob = function (blob, data, params) {
|
|
19945
|
+
var url = SocialRoute.routes.postVideoToFacebookGroup.url;
|
|
19946
|
+
return Requests.uploadBlob(url, 'video', blob, data);
|
|
19947
|
+
};
|
|
19948
|
+
return Social;
|
|
19949
|
+
}());
|
|
19950
|
+
|
|
19901
19951
|
var TemplatesRoute = /** @class */ (function () {
|
|
19902
19952
|
function TemplatesRoute() {
|
|
19903
19953
|
}
|
|
@@ -20664,6 +20714,7 @@ var Glitch = /** @class */ (function () {
|
|
|
20664
20714
|
Waitlists: Waitlists,
|
|
20665
20715
|
Utility: Utility,
|
|
20666
20716
|
Tips: Tips,
|
|
20717
|
+
Social: Social,
|
|
20667
20718
|
TipPackages: TipPackages,
|
|
20668
20719
|
TipEmojis: TipEmojis,
|
|
20669
20720
|
TipPackagePurchases: TipPackagePurchases
|