glitch-javascript-sdk 2.2.9 → 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 +38 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/ShortLinks.d.ts +4 -0
- package/dist/esm/api/SocialPosts.d.ts +15 -0
- package/dist/esm/index.js +38 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +19 -0
- package/package.json +1 -1
- package/src/api/ShortLinks.ts +16 -0
- package/src/api/SocialPosts.ts +21 -0
- package/src/routes/ShortLinksRoute.ts +14 -8
- package/src/routes/SocialPostsRoute.ts +11 -9
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
|
|
|
@@ -28472,6 +28493,11 @@ var ShortLinksRoute = /** @class */ (function () {
|
|
|
28472
28493
|
clickHeatmap: { url: '/shortlinks/reports/click-heatmap', method: HTTP_METHODS.GET },
|
|
28473
28494
|
botAnalysis: { url: '/shortlinks/reports/bot-analysis', method: HTTP_METHODS.GET },
|
|
28474
28495
|
attributionReport: { url: '/shortlinks/reports/attribution', method: HTTP_METHODS.GET },
|
|
28496
|
+
// Social Media Post Reports
|
|
28497
|
+
socialPostDeepDive: { url: '/shortlinks/reports/social-post-deep-dive', method: HTTP_METHODS.GET },
|
|
28498
|
+
socialPostContentAnalysis: { url: '/shortlinks/reports/social-post-content-analysis', method: HTTP_METHODS.GET },
|
|
28499
|
+
socialPostEngagementBreakdown: { url: '/shortlinks/reports/social-post-engagement-breakdown', method: HTTP_METHODS.GET },
|
|
28500
|
+
socialPostTrackingEffectiveness: { url: '/shortlinks/reports/social-post-tracking-effectiveness', method: HTTP_METHODS.GET },
|
|
28475
28501
|
};
|
|
28476
28502
|
return ShortLinksRoute;
|
|
28477
28503
|
}());
|
|
@@ -28556,6 +28582,18 @@ var ShortLinks = /** @class */ (function () {
|
|
|
28556
28582
|
ShortLinks.attributionReport = function (params) {
|
|
28557
28583
|
return Requests.processRoute(ShortLinksRoute.routes.attributionReport, undefined, undefined, params);
|
|
28558
28584
|
};
|
|
28585
|
+
ShortLinks.socialPostDeepDive = function (params) {
|
|
28586
|
+
return Requests.processRoute(ShortLinksRoute.routes.socialPostDeepDive, undefined, undefined, params);
|
|
28587
|
+
};
|
|
28588
|
+
ShortLinks.socialPostContentAnalysis = function (params) {
|
|
28589
|
+
return Requests.processRoute(ShortLinksRoute.routes.socialPostContentAnalysis, undefined, undefined, params);
|
|
28590
|
+
};
|
|
28591
|
+
ShortLinks.socialPostEngagementBreakdown = function (params) {
|
|
28592
|
+
return Requests.processRoute(ShortLinksRoute.routes.socialPostEngagementBreakdown, undefined, undefined, params);
|
|
28593
|
+
};
|
|
28594
|
+
ShortLinks.socialPostTrackingEffectiveness = function (params) {
|
|
28595
|
+
return Requests.processRoute(ShortLinksRoute.routes.socialPostTrackingEffectiveness, undefined, undefined, params);
|
|
28596
|
+
};
|
|
28559
28597
|
return ShortLinks;
|
|
28560
28598
|
}());
|
|
28561
28599
|
|