glitch-javascript-sdk 2.3.3 → 2.3.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 +28 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Scheduler.d.ts +11 -0
- package/dist/esm/api/SocialPosts.d.ts +10 -0
- package/dist/esm/index.js +28 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +21 -0
- package/package.json +1 -1
- package/src/api/Scheduler.ts +14 -0
- package/src/api/ShortLinks.ts +1 -0
- package/src/api/SocialPosts.ts +13 -0
- package/src/routes/SchedulerRoute.ts +2 -0
- package/src/routes/SocialPostsRoute.ts +2 -0
package/dist/cjs/index.js
CHANGED
|
@@ -24133,6 +24133,8 @@ var SocialPostsRoute = /** @class */ (function () {
|
|
|
24133
24133
|
createComment: { url: '/socialposts/{post_id}/comments', method: HTTP_METHODS.POST },
|
|
24134
24134
|
getPostAttribution: { url: '/socialposts/{post_id}/attribution', method: HTTP_METHODS.GET },
|
|
24135
24135
|
getSocialPostAttributionReport: { url: '/reports/fingerprinting/social-post-attribution', method: HTTP_METHODS.GET },
|
|
24136
|
+
getLinkSummary: { url: '/socialposts/{post_id}/link-summary', method: HTTP_METHODS.GET },
|
|
24137
|
+
syncHistory: { url: '/social/sync-history/{platform}', method: HTTP_METHODS.POST },
|
|
24136
24138
|
};
|
|
24137
24139
|
return SocialPostsRoute;
|
|
24138
24140
|
}());
|
|
@@ -24426,6 +24428,18 @@ var SocialPosts = /** @class */ (function () {
|
|
|
24426
24428
|
SocialPosts.getLinkSummary = function (post_id) {
|
|
24427
24429
|
return Requests.processRoute(SocialPostsRoute.routes.getLinkSummary, undefined, { post_id: post_id });
|
|
24428
24430
|
};
|
|
24431
|
+
/**
|
|
24432
|
+
* Trigger a historical sync for a specific platform for the current user.
|
|
24433
|
+
*
|
|
24434
|
+
* @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/syncHistory
|
|
24435
|
+
*
|
|
24436
|
+
* @param platform The platform to sync (e.g., 'twitter', 'youtube', 'bluesky').
|
|
24437
|
+
*
|
|
24438
|
+
* @returns promise
|
|
24439
|
+
*/
|
|
24440
|
+
SocialPosts.syncHistory = function (platform, params) {
|
|
24441
|
+
return Requests.processRoute(SocialPostsRoute.routes.syncHistory, {}, { platform: platform }, params);
|
|
24442
|
+
};
|
|
24429
24443
|
return SocialPosts;
|
|
24430
24444
|
}());
|
|
24431
24445
|
|
|
@@ -27271,6 +27285,7 @@ var SchedulerRoute = /** @class */ (function () {
|
|
|
27271
27285
|
getSchedulerPostsWithComments: { url: '/schedulers/{scheduler_id}/posts-with-comments', method: HTTP_METHODS.GET },
|
|
27272
27286
|
syncAllSchedulerComments: { url: '/schedulers/{scheduler_id}/sync-all-comments', method: HTTP_METHODS.POST },
|
|
27273
27287
|
getConversionActions: { url: '/schedulers/{scheduler_id}/conversion-actions', method: HTTP_METHODS.GET },
|
|
27288
|
+
syncHistory: { url: '/schedulers/{scheduler_id}/sync-history/{platform}', method: HTTP_METHODS.POST },
|
|
27274
27289
|
};
|
|
27275
27290
|
return SchedulerRoute;
|
|
27276
27291
|
}());
|
|
@@ -27937,6 +27952,19 @@ var Scheduler = /** @class */ (function () {
|
|
|
27937
27952
|
Scheduler.getConversionActions = function (scheduler_id, params) {
|
|
27938
27953
|
return Requests.processRoute(SchedulerRoute.routes.getConversionActions, {}, { scheduler_id: scheduler_id }, params);
|
|
27939
27954
|
};
|
|
27955
|
+
/**
|
|
27956
|
+
* Trigger a historical sync for a specific platform on a scheduler.
|
|
27957
|
+
*
|
|
27958
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/syncHistory
|
|
27959
|
+
*
|
|
27960
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
27961
|
+
* @param platform The platform to sync (e.g., 'twitter', 'youtube', 'bluesky').
|
|
27962
|
+
*
|
|
27963
|
+
* @returns promise
|
|
27964
|
+
*/
|
|
27965
|
+
Scheduler.syncHistory = function (scheduler_id, platform, params) {
|
|
27966
|
+
return Requests.processRoute(SchedulerRoute.routes.syncHistory, {}, { scheduler_id: scheduler_id, platform: platform }, params);
|
|
27967
|
+
};
|
|
27940
27968
|
return Scheduler;
|
|
27941
27969
|
}());
|
|
27942
27970
|
|