glitch-javascript-sdk 2.3.0 → 2.3.1

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,25 @@ 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
+ };
24399
24420
  return SocialPosts;
24400
24421
  }());
24401
24422