glitch-javascript-sdk 0.6.0 → 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 +22 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Users.d.ts +16 -0
- package/dist/esm/index.js +22 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +16 -0
- package/package.json +1 -1
- package/src/api/Users.ts +24 -0
- package/src/routes/UserRoutes.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -1029,6 +1029,22 @@ declare class Users {
|
|
|
1029
1029
|
* @returns promise
|
|
1030
1030
|
*/
|
|
1031
1031
|
static clearYoutubeAuth<T>(): AxiosPromise<Response<T>>;
|
|
1032
|
+
/**
|
|
1033
|
+
* Clear Reddit authentication information from the current user.
|
|
1034
|
+
*
|
|
1035
|
+
* @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
|
|
1036
|
+
*
|
|
1037
|
+
* @returns promise
|
|
1038
|
+
*/
|
|
1039
|
+
static clearRedditAuth<T>(): AxiosPromise<Response<T>>;
|
|
1040
|
+
/**
|
|
1041
|
+
* Clear Twitter authentication information from the current user.
|
|
1042
|
+
*
|
|
1043
|
+
* @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
|
|
1044
|
+
*
|
|
1045
|
+
* @returns promise
|
|
1046
|
+
*/
|
|
1047
|
+
static clearTwitterAuth<T>(): AxiosPromise<Response<T>>;
|
|
1032
1048
|
/**
|
|
1033
1049
|
* Clear StreamElements authentication information from the current user.
|
|
1034
1050
|
*
|
package/package.json
CHANGED
package/src/api/Users.ts
CHANGED
|
@@ -231,6 +231,30 @@ class Users {
|
|
|
231
231
|
return Requests.processRoute(UserRoutes.routes.clearYoutubeAuth, {});
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
+
/**
|
|
235
|
+
* Clear Reddit authentication information from the current user.
|
|
236
|
+
*
|
|
237
|
+
* @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
|
|
238
|
+
*
|
|
239
|
+
* @returns promise
|
|
240
|
+
*/
|
|
241
|
+
public static clearRedditAuth<T>(): AxiosPromise<Response<T>> {
|
|
242
|
+
|
|
243
|
+
return Requests.processRoute(UserRoutes.routes.clearRedditAuth, {});
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Clear Twitter authentication information from the current user.
|
|
248
|
+
*
|
|
249
|
+
* @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
|
|
250
|
+
*
|
|
251
|
+
* @returns promise
|
|
252
|
+
*/
|
|
253
|
+
public static clearTwitterAuth<T>(): AxiosPromise<Response<T>> {
|
|
254
|
+
|
|
255
|
+
return Requests.processRoute(UserRoutes.routes.clearTwitterAuth, {});
|
|
256
|
+
}
|
|
257
|
+
|
|
234
258
|
/**
|
|
235
259
|
* Clear StreamElements authentication information from the current user.
|
|
236
260
|
*
|
package/src/routes/UserRoutes.ts
CHANGED
|
@@ -19,6 +19,8 @@ class UserRoutes {
|
|
|
19
19
|
clearStripeAuth : { url: '/users/clearStripeAuth', method: HTTP_METHODS.DELETE },
|
|
20
20
|
clearTikTokAuth : { url: '/users/clearTikTokAuth', method: HTTP_METHODS.DELETE },
|
|
21
21
|
clearYoutubeAuth : { url: '/users/clearYoutubeAuth', method: HTTP_METHODS.DELETE },
|
|
22
|
+
clearRedditAuth : { url: '/users/clearRedditAuth', method: HTTP_METHODS.DELETE },
|
|
23
|
+
clearTwitterAuth : { url: '/users/clearTwitterAuth', method: HTTP_METHODS.DELETE },
|
|
22
24
|
clearStreamElementsAuth : { url: '/users/clearStreamElementsAuth', method: HTTP_METHODS.DELETE },
|
|
23
25
|
getTipsReceivedForMonth : { url: '/users/getTipsReceivedForMonth', method: HTTP_METHODS.GET },
|
|
24
26
|
getTipsGivenForMonth : { url: '/users/getTipsGivenForMonth', method: HTTP_METHODS.GET },
|