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.
@@ -226,5 +226,12 @@ declare class SocialPosts {
226
226
  * @returns A promise
227
227
  */
228
228
  static getSocialPostAttributionReport<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
229
+ /**
230
+ * Get a summary of clicks for each short link in a post.
231
+ *
232
+ * @param post_id The ID of the social media post.
233
+ * @returns A promise
234
+ */
235
+ static getLinkSummary<T>(post_id: string): AxiosPromise<Response<T>>;
229
236
  }
230
237
  export default SocialPosts;
package/dist/esm/index.js CHANGED
@@ -11233,6 +11233,15 @@ var SocialPosts = /** @class */ (function () {
11233
11233
  SocialPosts.getSocialPostAttributionReport = function (params) {
11234
11234
  return Requests.processRoute(SocialPostsRoute.routes.getSocialPostAttributionReport, undefined, undefined, params);
11235
11235
  };
11236
+ /**
11237
+ * Get a summary of clicks for each short link in a post.
11238
+ *
11239
+ * @param post_id The ID of the social media post.
11240
+ * @returns A promise
11241
+ */
11242
+ SocialPosts.getLinkSummary = function (post_id) {
11243
+ return Requests.processRoute(SocialPostsRoute.routes.getLinkSummary, undefined, { post_id: post_id });
11244
+ };
11236
11245
  return SocialPosts;
11237
11246
  }());
11238
11247
 
@@ -15309,6 +15318,7 @@ var ShortLinksRoute = /** @class */ (function () {
15309
15318
  clickHeatmap: { url: '/shortlinks/reports/click-heatmap', method: HTTP_METHODS.GET },
15310
15319
  botAnalysis: { url: '/shortlinks/reports/bot-analysis', method: HTTP_METHODS.GET },
15311
15320
  attributionReport: { url: '/shortlinks/reports/attribution', method: HTTP_METHODS.GET },
15321
+ getLinkSummary: { url: '/socialposts/{post_id}/link-summary', method: HTTP_METHODS.GET },
15312
15322
  // Social Media Post Reports
15313
15323
  socialPostDeepDive: { url: '/shortlinks/reports/social-post-deep-dive', method: HTTP_METHODS.GET },
15314
15324
  socialPostContentAnalysis: { url: '/shortlinks/reports/social-post-content-analysis', method: HTTP_METHODS.GET },