glitch-javascript-sdk 2.6.0 → 2.6.2
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 +50 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Education.d.ts +1 -0
- package/dist/esm/api/SocialPosts.d.ts +35 -0
- package/dist/esm/index.js +50 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +36 -0
- package/package.json +1 -1
- package/src/api/Education.ts +4 -1
- package/src/api/SocialPosts.ts +46 -0
- package/src/routes/SocialPostsRoute.ts +7 -0
package/dist/cjs/index.js
CHANGED
|
@@ -24145,6 +24145,12 @@ var SocialPostsRoute = /** @class */ (function () {
|
|
|
24145
24145
|
getConversationMessages: { url: '/social/conversations/{conversation_id}/messages', method: HTTP_METHODS.GET },
|
|
24146
24146
|
sendSocialMessage: { url: '/social/messages', method: HTTP_METHODS.POST },
|
|
24147
24147
|
replyViaDm: { url: '/socialposts/comments/{comment_id}/reply-via-dm', method: HTTP_METHODS.POST },
|
|
24148
|
+
// Reddit Sales Engine (Admin Only)
|
|
24149
|
+
listRedditQuestions: { url: '/admin/reddit/questions', method: HTTP_METHODS.GET },
|
|
24150
|
+
viewRedditQuestion: { url: '/admin/reddit/questions/{id}', method: HTTP_METHODS.GET },
|
|
24151
|
+
updateRedditQuestion: { url: '/admin/reddit/questions/{id}', method: HTTP_METHODS.PUT },
|
|
24152
|
+
deleteRedditQuestion: { url: '/admin/reddit/questions/{id}', method: HTTP_METHODS.DELETE },
|
|
24153
|
+
optimizeRedditPost: { url: '/admin/reddit/optimize', method: HTTP_METHODS.POST },
|
|
24148
24154
|
};
|
|
24149
24155
|
return SocialPostsRoute;
|
|
24150
24156
|
}());
|
|
@@ -24541,6 +24547,47 @@ var SocialPosts = /** @class */ (function () {
|
|
|
24541
24547
|
SocialPosts.replyViaDm = function (comment_id, data) {
|
|
24542
24548
|
return Requests.processRoute(SocialPostsRoute.routes.replyViaDm, data, { comment_id: comment_id });
|
|
24543
24549
|
};
|
|
24550
|
+
/**
|
|
24551
|
+
* List all discovered Reddit questions (Admin Only).
|
|
24552
|
+
*
|
|
24553
|
+
* @param params Query parameters: status, subreddit, is_question.
|
|
24554
|
+
*/
|
|
24555
|
+
SocialPosts.listRedditQuestions = function (params) {
|
|
24556
|
+
return Requests.processRoute(SocialPostsRoute.routes.listRedditQuestions, undefined, undefined, params);
|
|
24557
|
+
};
|
|
24558
|
+
/**
|
|
24559
|
+
* Retrieve details for a specific discovered Reddit question (Admin Only).
|
|
24560
|
+
*
|
|
24561
|
+
* @param id The UUID of the question.
|
|
24562
|
+
*/
|
|
24563
|
+
SocialPosts.viewRedditQuestion = function (id, params) {
|
|
24564
|
+
return Requests.processRoute(SocialPostsRoute.routes.viewRedditQuestion, {}, { id: id }, params);
|
|
24565
|
+
};
|
|
24566
|
+
/**
|
|
24567
|
+
* Update a Reddit question's status or metadata (Admin Only).
|
|
24568
|
+
*
|
|
24569
|
+
* @param id The UUID of the question.
|
|
24570
|
+
* @param data { status: 'pending'|'answered'|'ignored', metadata?: object }
|
|
24571
|
+
*/
|
|
24572
|
+
SocialPosts.updateRedditQuestion = function (id, data, params) {
|
|
24573
|
+
return Requests.processRoute(SocialPostsRoute.routes.updateRedditQuestion, data, { id: id }, params);
|
|
24574
|
+
};
|
|
24575
|
+
/**
|
|
24576
|
+
* Delete a discovered Reddit question (Admin Only).
|
|
24577
|
+
*
|
|
24578
|
+
* @param id The UUID of the question.
|
|
24579
|
+
*/
|
|
24580
|
+
SocialPosts.deleteRedditQuestion = function (id, params) {
|
|
24581
|
+
return Requests.processRoute(SocialPostsRoute.routes.deleteRedditQuestion, {}, { id: id }, params);
|
|
24582
|
+
};
|
|
24583
|
+
/**
|
|
24584
|
+
* Optimize a Reddit post for a specific subreddit using the AI engine (Admin Only).
|
|
24585
|
+
*
|
|
24586
|
+
* @param data { subreddit: string, content: string, title_id: string }
|
|
24587
|
+
*/
|
|
24588
|
+
SocialPosts.optimizeRedditPost = function (data) {
|
|
24589
|
+
return Requests.processRoute(SocialPostsRoute.routes.optimizeRedditPost, data);
|
|
24590
|
+
};
|
|
24544
24591
|
return SocialPosts;
|
|
24545
24592
|
}());
|
|
24546
24593
|
|
|
@@ -29867,6 +29914,9 @@ var Education = /** @class */ (function () {
|
|
|
29867
29914
|
Education.getPreviewSecureVideo = function (uuid) {
|
|
29868
29915
|
return Requests.processRoute(EducationRoute.routes.getPreviewSecureVideo, undefined, { uuid: uuid });
|
|
29869
29916
|
};
|
|
29917
|
+
Education.listAllProgress = function (params) {
|
|
29918
|
+
return Requests.processRoute(EducationRoute.routes.listAllProgress, undefined, undefined, params);
|
|
29919
|
+
};
|
|
29870
29920
|
// --- 4. TRACK CONTENT (PIVOT) ---
|
|
29871
29921
|
Education.listTrackContent = function (track_id) {
|
|
29872
29922
|
return Requests.processRoute(EducationRoute.routes.listTrackContent, undefined, { track_id: track_id });
|