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