glitch-javascript-sdk 2.3.1 → 2.3.3
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/SocialPosts.d.ts +7 -0
- package/dist/esm/index.js +10 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +7 -0
- package/package.json +1 -1
- package/src/api/SocialPosts.ts +10 -0
- package/src/routes/ShortLinksRoute.ts +1 -0
package/dist/cjs/index.js
CHANGED
|
@@ -24417,6 +24417,15 @@ var SocialPosts = /** @class */ (function () {
|
|
|
24417
24417
|
SocialPosts.getSocialPostAttributionReport = function (params) {
|
|
24418
24418
|
return Requests.processRoute(SocialPostsRoute.routes.getSocialPostAttributionReport, undefined, undefined, params);
|
|
24419
24419
|
};
|
|
24420
|
+
/**
|
|
24421
|
+
* Get a summary of clicks for each short link in a post.
|
|
24422
|
+
*
|
|
24423
|
+
* @param post_id The ID of the social media post.
|
|
24424
|
+
* @returns A promise
|
|
24425
|
+
*/
|
|
24426
|
+
SocialPosts.getLinkSummary = function (post_id) {
|
|
24427
|
+
return Requests.processRoute(SocialPostsRoute.routes.getLinkSummary, undefined, { post_id: post_id });
|
|
24428
|
+
};
|
|
24420
24429
|
return SocialPosts;
|
|
24421
24430
|
}());
|
|
24422
24431
|
|
|
@@ -28493,6 +28502,7 @@ var ShortLinksRoute = /** @class */ (function () {
|
|
|
28493
28502
|
clickHeatmap: { url: '/shortlinks/reports/click-heatmap', method: HTTP_METHODS.GET },
|
|
28494
28503
|
botAnalysis: { url: '/shortlinks/reports/bot-analysis', method: HTTP_METHODS.GET },
|
|
28495
28504
|
attributionReport: { url: '/shortlinks/reports/attribution', method: HTTP_METHODS.GET },
|
|
28505
|
+
getLinkSummary: { url: '/socialposts/{post_id}/link-summary', method: HTTP_METHODS.GET },
|
|
28496
28506
|
// Social Media Post Reports
|
|
28497
28507
|
socialPostDeepDive: { url: '/shortlinks/reports/social-post-deep-dive', method: HTTP_METHODS.GET },
|
|
28498
28508
|
socialPostContentAnalysis: { url: '/shortlinks/reports/social-post-content-analysis', method: HTTP_METHODS.GET },
|