glitch-javascript-sdk 2.3.7 → 2.3.9
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 +26 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Scheduler.d.ts +9 -0
- package/dist/esm/api/SocialPosts.d.ts +8 -0
- package/dist/esm/index.js +26 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +17 -0
- package/package.json +1 -1
- package/src/api/Scheduler.ts +29 -17
- package/src/routes/SchedulerRoute.ts +7 -2
|
@@ -537,5 +537,14 @@ declare class Scheduler {
|
|
|
537
537
|
* @returns promise
|
|
538
538
|
*/
|
|
539
539
|
static syncHistory<T>(scheduler_id: string, platform: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
540
|
+
/**
|
|
541
|
+
* Generate hashtags for content based on scheduler settings.
|
|
542
|
+
*
|
|
543
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
544
|
+
* @param data { content: string, platform?: string }
|
|
545
|
+
*
|
|
546
|
+
* @returns promise
|
|
547
|
+
*/
|
|
548
|
+
static generateHashtags<T>(scheduler_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
540
549
|
}
|
|
541
550
|
export default Scheduler;
|
|
@@ -251,5 +251,13 @@ declare class SocialPosts {
|
|
|
251
251
|
* @returns promise
|
|
252
252
|
*/
|
|
253
253
|
static performAction<T>(post_id: string, action: 'like' | 'unlike' | 'repost' | 'unrepost' | 'vote_up' | 'vote_down' | 'unvote'): AxiosPromise<Response<T>>;
|
|
254
|
+
/**
|
|
255
|
+
* Perform a social action (Like, Repost, Vote) on a comment.
|
|
256
|
+
*
|
|
257
|
+
* @param comment_id The ID of the comment.
|
|
258
|
+
* @param action The action to perform.
|
|
259
|
+
* @returns promise
|
|
260
|
+
*/
|
|
261
|
+
static performCommentAction<T>(comment_id: string, action: 'like' | 'unlike' | 'repost' | 'unrepost' | 'vote_up' | 'vote_down' | 'unvote'): AxiosPromise<Response<T>>;
|
|
254
262
|
}
|
|
255
263
|
export default SocialPosts;
|
package/dist/esm/index.js
CHANGED
|
@@ -10952,6 +10952,7 @@ var SocialPostsRoute = /** @class */ (function () {
|
|
|
10952
10952
|
getLinkSummary: { url: '/socialposts/{post_id}/link-summary', method: HTTP_METHODS.GET },
|
|
10953
10953
|
syncHistory: { url: '/social/sync-history/{platform}', method: HTTP_METHODS.POST },
|
|
10954
10954
|
performAction: { url: '/socialposts/{post_id}/action', method: HTTP_METHODS.POST },
|
|
10955
|
+
performCommentAction: { url: '/socialposts/comments/{comment_id}/action', method: HTTP_METHODS.POST },
|
|
10955
10956
|
};
|
|
10956
10957
|
return SocialPostsRoute;
|
|
10957
10958
|
}());
|
|
@@ -11267,6 +11268,16 @@ var SocialPosts = /** @class */ (function () {
|
|
|
11267
11268
|
SocialPosts.performAction = function (post_id, action) {
|
|
11268
11269
|
return Requests.processRoute(SocialPostsRoute.routes.performAction, { action: action }, { post_id: post_id });
|
|
11269
11270
|
};
|
|
11271
|
+
/**
|
|
11272
|
+
* Perform a social action (Like, Repost, Vote) on a comment.
|
|
11273
|
+
*
|
|
11274
|
+
* @param comment_id The ID of the comment.
|
|
11275
|
+
* @param action The action to perform.
|
|
11276
|
+
* @returns promise
|
|
11277
|
+
*/
|
|
11278
|
+
SocialPosts.performCommentAction = function (comment_id, action) {
|
|
11279
|
+
return Requests.processRoute(SocialPostsRoute.routes.performCommentAction, { action: action }, { comment_id: comment_id });
|
|
11280
|
+
};
|
|
11270
11281
|
return SocialPosts;
|
|
11271
11282
|
}());
|
|
11272
11283
|
|
|
@@ -14113,6 +14124,10 @@ var SchedulerRoute = /** @class */ (function () {
|
|
|
14113
14124
|
syncAllSchedulerComments: { url: '/schedulers/{scheduler_id}/sync-all-comments', method: HTTP_METHODS.POST },
|
|
14114
14125
|
getConversionActions: { url: '/schedulers/{scheduler_id}/conversion-actions', method: HTTP_METHODS.GET },
|
|
14115
14126
|
syncHistory: { url: '/schedulers/{scheduler_id}/sync-history/{platform}', method: HTTP_METHODS.POST },
|
|
14127
|
+
generateHashtags: {
|
|
14128
|
+
url: '/schedulers/{scheduler_id}/generateHashtags',
|
|
14129
|
+
method: HTTP_METHODS.POST
|
|
14130
|
+
},
|
|
14116
14131
|
};
|
|
14117
14132
|
return SchedulerRoute;
|
|
14118
14133
|
}());
|
|
@@ -14792,6 +14807,17 @@ var Scheduler = /** @class */ (function () {
|
|
|
14792
14807
|
Scheduler.syncHistory = function (scheduler_id, platform, params) {
|
|
14793
14808
|
return Requests.processRoute(SchedulerRoute.routes.syncHistory, {}, { scheduler_id: scheduler_id, platform: platform }, params);
|
|
14794
14809
|
};
|
|
14810
|
+
/**
|
|
14811
|
+
* Generate hashtags for content based on scheduler settings.
|
|
14812
|
+
*
|
|
14813
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
14814
|
+
* @param data { content: string, platform?: string }
|
|
14815
|
+
*
|
|
14816
|
+
* @returns promise
|
|
14817
|
+
*/
|
|
14818
|
+
Scheduler.generateHashtags = function (scheduler_id, data, params) {
|
|
14819
|
+
return Requests.processRoute(SchedulerRoute.routes.generateHashtags, data, { scheduler_id: scheduler_id }, params);
|
|
14820
|
+
};
|
|
14795
14821
|
return Scheduler;
|
|
14796
14822
|
}());
|
|
14797
14823
|
|