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 +31 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/SocialPosts.d.ts +22 -0
- package/dist/esm/index.js +31 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +22 -0
- package/package.json +1 -1
- package/src/api/SocialPosts.ts +31 -0
- package/src/routes/ShortLinksRoute.ts +1 -0
- package/src/routes/SocialPostsRoute.ts +11 -9
|
@@ -211,5 +211,27 @@ declare class SocialPosts {
|
|
|
211
211
|
* @returns A promise
|
|
212
212
|
*/
|
|
213
213
|
static createComment<T>(post_id: string, data: object): AxiosPromise<Response<T>>;
|
|
214
|
+
/**
|
|
215
|
+
* Get game install attribution data for a specific social media post.
|
|
216
|
+
*
|
|
217
|
+
* @param post_id The ID of the social media post.
|
|
218
|
+
* @param params Optional query parameters (start_date, end_date, confidence_threshold).
|
|
219
|
+
* @returns A promise
|
|
220
|
+
*/
|
|
221
|
+
static getPostAttribution<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
222
|
+
/**
|
|
223
|
+
* Get a report of all social media posts for a title that are converting to game installs.
|
|
224
|
+
*
|
|
225
|
+
* @param params Query parameters (title_id, start_date, end_date, confidence_threshold).
|
|
226
|
+
* @returns A promise
|
|
227
|
+
*/
|
|
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>>;
|
|
214
236
|
}
|
|
215
237
|
export default SocialPosts;
|
package/dist/esm/index.js
CHANGED
|
@@ -10947,6 +10947,8 @@ var SocialPostsRoute = /** @class */ (function () {
|
|
|
10947
10947
|
getCommentThread: { url: '/socialposts/comments/{comment_id}/thread', method: HTTP_METHODS.GET },
|
|
10948
10948
|
updateCommentMetrics: { url: '/socialposts/comments/{comment_id}/update-metrics', method: HTTP_METHODS.PUT },
|
|
10949
10949
|
createComment: { url: '/socialposts/{post_id}/comments', method: HTTP_METHODS.POST },
|
|
10950
|
+
getPostAttribution: { url: '/socialposts/{post_id}/attribution', method: HTTP_METHODS.GET },
|
|
10951
|
+
getSocialPostAttributionReport: { url: '/reports/fingerprinting/social-post-attribution', method: HTTP_METHODS.GET },
|
|
10950
10952
|
};
|
|
10951
10953
|
return SocialPostsRoute;
|
|
10952
10954
|
}());
|
|
@@ -11212,6 +11214,34 @@ var SocialPosts = /** @class */ (function () {
|
|
|
11212
11214
|
SocialPosts.createComment = function (post_id, data) {
|
|
11213
11215
|
return Requests.processRoute(SocialPostsRoute.routes.createComment, data, { post_id: post_id });
|
|
11214
11216
|
};
|
|
11217
|
+
/**
|
|
11218
|
+
* Get game install attribution data for a specific social media post.
|
|
11219
|
+
*
|
|
11220
|
+
* @param post_id The ID of the social media post.
|
|
11221
|
+
* @param params Optional query parameters (start_date, end_date, confidence_threshold).
|
|
11222
|
+
* @returns A promise
|
|
11223
|
+
*/
|
|
11224
|
+
SocialPosts.getPostAttribution = function (post_id, params) {
|
|
11225
|
+
return Requests.processRoute(SocialPostsRoute.routes.getPostAttribution, undefined, { post_id: post_id }, params);
|
|
11226
|
+
};
|
|
11227
|
+
/**
|
|
11228
|
+
* Get a report of all social media posts for a title that are converting to game installs.
|
|
11229
|
+
*
|
|
11230
|
+
* @param params Query parameters (title_id, start_date, end_date, confidence_threshold).
|
|
11231
|
+
* @returns A promise
|
|
11232
|
+
*/
|
|
11233
|
+
SocialPosts.getSocialPostAttributionReport = function (params) {
|
|
11234
|
+
return Requests.processRoute(SocialPostsRoute.routes.getSocialPostAttributionReport, undefined, undefined, params);
|
|
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
|
+
};
|
|
11215
11245
|
return SocialPosts;
|
|
11216
11246
|
}());
|
|
11217
11247
|
|
|
@@ -15288,6 +15318,7 @@ var ShortLinksRoute = /** @class */ (function () {
|
|
|
15288
15318
|
clickHeatmap: { url: '/shortlinks/reports/click-heatmap', method: HTTP_METHODS.GET },
|
|
15289
15319
|
botAnalysis: { url: '/shortlinks/reports/bot-analysis', method: HTTP_METHODS.GET },
|
|
15290
15320
|
attributionReport: { url: '/shortlinks/reports/attribution', method: HTTP_METHODS.GET },
|
|
15321
|
+
getLinkSummary: { url: '/socialposts/{post_id}/link-summary', method: HTTP_METHODS.GET },
|
|
15291
15322
|
// Social Media Post Reports
|
|
15292
15323
|
socialPostDeepDive: { url: '/shortlinks/reports/social-post-deep-dive', method: HTTP_METHODS.GET },
|
|
15293
15324
|
socialPostContentAnalysis: { url: '/shortlinks/reports/social-post-content-analysis', method: HTTP_METHODS.GET },
|