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
|
@@ -19,6 +19,12 @@ declare class RedditSubreddits {
|
|
|
19
19
|
* @see https://api.glitch.fun/api/documentation#/Reddit%20Subreddit%20Intelligence/matchRedditSubreddits
|
|
20
20
|
*/
|
|
21
21
|
static match<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
22
|
+
/**
|
|
23
|
+
* Match one of the authenticated user's administered titles to Reddit communities.
|
|
24
|
+
*
|
|
25
|
+
* @see https://api.glitch.fun/api/documentation#/Reddit%20Subreddit%20Intelligence/titleRedditSubredditMatches
|
|
26
|
+
*/
|
|
27
|
+
static matchTitle<T>(title_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
22
28
|
/**
|
|
23
29
|
* Admin-only ingestion of subreddit metadata and rules.
|
|
24
30
|
*
|
package/dist/esm/index.js
CHANGED
|
@@ -16401,6 +16401,7 @@ var RedditSubredditsRoute = /** @class */ (function () {
|
|
|
16401
16401
|
list: { url: '/reddit/subreddits', method: HTTP_METHODS.GET },
|
|
16402
16402
|
show: { url: '/reddit/subreddits/{subreddit}', method: HTTP_METHODS.GET },
|
|
16403
16403
|
match: { url: '/reddit/subreddits/match', method: HTTP_METHODS.POST },
|
|
16404
|
+
matchTitle: { url: '/titles/{title_id}/reddit/subreddit-matches', method: HTTP_METHODS.POST },
|
|
16404
16405
|
ingest: { url: '/admin/reddit/subreddits/ingest', method: HTTP_METHODS.POST },
|
|
16405
16406
|
refresh: { url: '/admin/reddit/subreddits/{subreddit}/refresh', method: HTTP_METHODS.POST },
|
|
16406
16407
|
};
|
|
@@ -16434,6 +16435,15 @@ var RedditSubreddits = /** @class */ (function () {
|
|
|
16434
16435
|
RedditSubreddits.match = function (data, params) {
|
|
16435
16436
|
return Requests.processRoute(RedditSubredditsRoute.routes.match, data, undefined, params);
|
|
16436
16437
|
};
|
|
16438
|
+
/**
|
|
16439
|
+
* Match one of the authenticated user's administered titles to Reddit communities.
|
|
16440
|
+
*
|
|
16441
|
+
* @see https://api.glitch.fun/api/documentation#/Reddit%20Subreddit%20Intelligence/titleRedditSubredditMatches
|
|
16442
|
+
*/
|
|
16443
|
+
RedditSubreddits.matchTitle = function (title_id, data, params) {
|
|
16444
|
+
if (data === void 0) { data = {}; }
|
|
16445
|
+
return Requests.processRoute(RedditSubredditsRoute.routes.matchTitle, data, { title_id: title_id }, params);
|
|
16446
|
+
};
|
|
16437
16447
|
/**
|
|
16438
16448
|
* Admin-only ingestion of subreddit metadata and rules.
|
|
16439
16449
|
*
|