glitch-javascript-sdk 2.3.0 → 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 CHANGED
@@ -24131,6 +24131,8 @@ var SocialPostsRoute = /** @class */ (function () {
24131
24131
  getCommentThread: { url: '/socialposts/comments/{comment_id}/thread', method: HTTP_METHODS.GET },
24132
24132
  updateCommentMetrics: { url: '/socialposts/comments/{comment_id}/update-metrics', method: HTTP_METHODS.PUT },
24133
24133
  createComment: { url: '/socialposts/{post_id}/comments', method: HTTP_METHODS.POST },
24134
+ getPostAttribution: { url: '/socialposts/{post_id}/attribution', method: HTTP_METHODS.GET },
24135
+ getSocialPostAttributionReport: { url: '/reports/fingerprinting/social-post-attribution', method: HTTP_METHODS.GET },
24134
24136
  };
24135
24137
  return SocialPostsRoute;
24136
24138
  }());
@@ -24396,6 +24398,34 @@ var SocialPosts = /** @class */ (function () {
24396
24398
  SocialPosts.createComment = function (post_id, data) {
24397
24399
  return Requests.processRoute(SocialPostsRoute.routes.createComment, data, { post_id: post_id });
24398
24400
  };
24401
+ /**
24402
+ * Get game install attribution data for a specific social media post.
24403
+ *
24404
+ * @param post_id The ID of the social media post.
24405
+ * @param params Optional query parameters (start_date, end_date, confidence_threshold).
24406
+ * @returns A promise
24407
+ */
24408
+ SocialPosts.getPostAttribution = function (post_id, params) {
24409
+ return Requests.processRoute(SocialPostsRoute.routes.getPostAttribution, undefined, { post_id: post_id }, params);
24410
+ };
24411
+ /**
24412
+ * Get a report of all social media posts for a title that are converting to game installs.
24413
+ *
24414
+ * @param params Query parameters (title_id, start_date, end_date, confidence_threshold).
24415
+ * @returns A promise
24416
+ */
24417
+ SocialPosts.getSocialPostAttributionReport = function (params) {
24418
+ return Requests.processRoute(SocialPostsRoute.routes.getSocialPostAttributionReport, undefined, undefined, params);
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
+ };
24399
24429
  return SocialPosts;
24400
24430
  }());
24401
24431
 
@@ -28472,6 +28502,7 @@ var ShortLinksRoute = /** @class */ (function () {
28472
28502
  clickHeatmap: { url: '/shortlinks/reports/click-heatmap', method: HTTP_METHODS.GET },
28473
28503
  botAnalysis: { url: '/shortlinks/reports/bot-analysis', method: HTTP_METHODS.GET },
28474
28504
  attributionReport: { url: '/shortlinks/reports/attribution', method: HTTP_METHODS.GET },
28505
+ getLinkSummary: { url: '/socialposts/{post_id}/link-summary', method: HTTP_METHODS.GET },
28475
28506
  // Social Media Post Reports
28476
28507
  socialPostDeepDive: { url: '/shortlinks/reports/social-post-deep-dive', method: HTTP_METHODS.GET },
28477
28508
  socialPostContentAnalysis: { url: '/shortlinks/reports/social-post-content-analysis', method: HTTP_METHODS.GET },