glitch-javascript-sdk 3.2.4 → 3.2.5
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 +10 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/RedditSubreddits.d.ts +6 -0
- package/dist/esm/index.js +10 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/package.json +1 -1
- package/src/api/RedditSubreddits.ts +9 -0
- package/src/routes/RedditSubredditsRoute.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -7207,6 +7207,12 @@ declare class RedditSubreddits {
|
|
|
7207
7207
|
* @see https://api.glitch.fun/api/documentation#/Reddit%20Subreddit%20Intelligence/matchRedditSubreddits
|
|
7208
7208
|
*/
|
|
7209
7209
|
static match<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
7210
|
+
/**
|
|
7211
|
+
* Match one of the authenticated user's administered titles to Reddit communities.
|
|
7212
|
+
*
|
|
7213
|
+
* @see https://api.glitch.fun/api/documentation#/Reddit%20Subreddit%20Intelligence/titleRedditSubredditMatches
|
|
7214
|
+
*/
|
|
7215
|
+
static matchTitle<T>(title_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
7210
7216
|
/**
|
|
7211
7217
|
* Admin-only ingestion of subreddit metadata and rules.
|
|
7212
7218
|
*
|
package/package.json
CHANGED
|
@@ -31,6 +31,15 @@ class RedditSubreddits {
|
|
|
31
31
|
return Requests.processRoute(RedditSubredditsRoute.routes.match, data, undefined, params);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Match one of the authenticated user's administered titles to Reddit communities.
|
|
36
|
+
*
|
|
37
|
+
* @see https://api.glitch.fun/api/documentation#/Reddit%20Subreddit%20Intelligence/titleRedditSubredditMatches
|
|
38
|
+
*/
|
|
39
|
+
public static matchTitle<T>(title_id: string, data: object = {}, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
40
|
+
return Requests.processRoute(RedditSubredditsRoute.routes.matchTitle, data, { title_id }, params);
|
|
41
|
+
}
|
|
42
|
+
|
|
34
43
|
/**
|
|
35
44
|
* Admin-only ingestion of subreddit metadata and rules.
|
|
36
45
|
*
|
|
@@ -6,6 +6,7 @@ class RedditSubredditsRoute {
|
|
|
6
6
|
list: { url: '/reddit/subreddits', method: HTTP_METHODS.GET },
|
|
7
7
|
show: { url: '/reddit/subreddits/{subreddit}', method: HTTP_METHODS.GET },
|
|
8
8
|
match: { url: '/reddit/subreddits/match', method: HTTP_METHODS.POST },
|
|
9
|
+
matchTitle: { url: '/titles/{title_id}/reddit/subreddit-matches', method: HTTP_METHODS.POST },
|
|
9
10
|
ingest: { url: '/admin/reddit/subreddits/ingest', method: HTTP_METHODS.POST },
|
|
10
11
|
refresh: { url: '/admin/reddit/subreddits/{subreddit}/refresh', method: HTTP_METHODS.POST },
|
|
11
12
|
};
|