glitch-javascript-sdk 0.5.8 → 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 +5527 -3925
- 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 +14810 -13786
- 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 +16 -15
- 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
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Response from "../util/Response";
|
|
2
|
+
import { AxiosPromise } from "axios";
|
|
3
|
+
declare class Social {
|
|
4
|
+
/**
|
|
5
|
+
* Give a tip to another user
|
|
6
|
+
*
|
|
7
|
+
* @see https://api.glitch.fun/api/documentation#/Authentication%20Route/authLogin
|
|
8
|
+
*
|
|
9
|
+
* @returns A promise
|
|
10
|
+
*/
|
|
11
|
+
static postVideoToTikTokFile<T>(file: File, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
12
|
+
static postVideoToTikTokBlob<T>(blob: Blob, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
13
|
+
static postVideoToFacebookGroupFile<T>(file: File, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
14
|
+
static postVideoToFacebookGroupBlob<T>(blob: Blob, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
15
|
+
}
|
|
16
|
+
export default Social;
|
package/dist/esm/api/Users.d.ts
CHANGED
|
@@ -159,6 +159,14 @@ declare class Users {
|
|
|
159
159
|
* @returns promise
|
|
160
160
|
*/
|
|
161
161
|
static clearYoutubeAuth<T>(): AxiosPromise<Response<T>>;
|
|
162
|
+
/**
|
|
163
|
+
* Clear StreamElements authentication information from the current user.
|
|
164
|
+
*
|
|
165
|
+
* @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
|
|
166
|
+
*
|
|
167
|
+
* @returns promise
|
|
168
|
+
*/
|
|
169
|
+
static clearStreamElementsAuth<T>(): AxiosPromise<Response<T>>;
|
|
162
170
|
/**
|
|
163
171
|
* Returns a list of tips received by the authenticated user for a given month and year
|
|
164
172
|
*
|
|
@@ -198,6 +206,6 @@ declare class Users {
|
|
|
198
206
|
*
|
|
199
207
|
* @returns promise
|
|
200
208
|
*/
|
|
201
|
-
static
|
|
209
|
+
static getFacebookGroups<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
202
210
|
}
|
|
203
211
|
export default Users;
|
package/dist/esm/api/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import Events from "./Events";
|
|
|
6
6
|
import Teams from "./Teams";
|
|
7
7
|
import Waitlists from "./Waitlist";
|
|
8
8
|
import Posts from "./Posts";
|
|
9
|
+
import Social from "./Social";
|
|
9
10
|
import Templates from "./Templates";
|
|
10
11
|
import Utility from "./Utility";
|
|
11
12
|
import Tips from "./Tips";
|
|
@@ -20,6 +21,7 @@ export { Events };
|
|
|
20
21
|
export { Teams };
|
|
21
22
|
export { Waitlists };
|
|
22
23
|
export { Posts };
|
|
24
|
+
export { Social };
|
|
23
25
|
export { Templates };
|
|
24
26
|
export { Utility };
|
|
25
27
|
export { Tips };
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Config } from "./config";
|
|
2
2
|
import Auth from "./api/Auth";
|
|
3
3
|
import Competitions from "./api/Competitions";
|
|
4
|
-
import { Communities } from "./api";
|
|
4
|
+
import { Communities, Social } from "./api";
|
|
5
5
|
import { Users } from "./api";
|
|
6
6
|
import { Events } from "./api";
|
|
7
7
|
import { Teams } from "./api";
|
|
@@ -43,6 +43,7 @@ declare class Glitch {
|
|
|
43
43
|
Waitlists: typeof Waitlists;
|
|
44
44
|
Utility: typeof Utility;
|
|
45
45
|
Tips: typeof Tips;
|
|
46
|
+
Social: typeof Social;
|
|
46
47
|
TipPackages: typeof TipPackages;
|
|
47
48
|
TipEmojis: typeof TipEmojis;
|
|
48
49
|
TipPackagePurchases: typeof TipPackagePurchases;
|