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
|
@@ -44,5 +44,9 @@ declare class ShortLinks {
|
|
|
44
44
|
static clickHeatmap<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
45
45
|
static botAnalysis<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
46
46
|
static attributionReport<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
47
|
+
static socialPostDeepDive<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
48
|
+
static socialPostContentAnalysis<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
49
|
+
static socialPostEngagementBreakdown<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
50
|
+
static socialPostTrackingEffectiveness<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
47
51
|
}
|
|
48
52
|
export default ShortLinks;
|
|
@@ -211,5 +211,20 @@ 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>>;
|
|
214
229
|
}
|
|
215
230
|
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,25 @@ 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
|
+
};
|
|
11215
11236
|
return SocialPosts;
|
|
11216
11237
|
}());
|
|
11217
11238
|
|
|
@@ -15288,6 +15309,11 @@ var ShortLinksRoute = /** @class */ (function () {
|
|
|
15288
15309
|
clickHeatmap: { url: '/shortlinks/reports/click-heatmap', method: HTTP_METHODS.GET },
|
|
15289
15310
|
botAnalysis: { url: '/shortlinks/reports/bot-analysis', method: HTTP_METHODS.GET },
|
|
15290
15311
|
attributionReport: { url: '/shortlinks/reports/attribution', method: HTTP_METHODS.GET },
|
|
15312
|
+
// Social Media Post Reports
|
|
15313
|
+
socialPostDeepDive: { url: '/shortlinks/reports/social-post-deep-dive', method: HTTP_METHODS.GET },
|
|
15314
|
+
socialPostContentAnalysis: { url: '/shortlinks/reports/social-post-content-analysis', method: HTTP_METHODS.GET },
|
|
15315
|
+
socialPostEngagementBreakdown: { url: '/shortlinks/reports/social-post-engagement-breakdown', method: HTTP_METHODS.GET },
|
|
15316
|
+
socialPostTrackingEffectiveness: { url: '/shortlinks/reports/social-post-tracking-effectiveness', method: HTTP_METHODS.GET },
|
|
15291
15317
|
};
|
|
15292
15318
|
return ShortLinksRoute;
|
|
15293
15319
|
}());
|
|
@@ -15372,6 +15398,18 @@ var ShortLinks = /** @class */ (function () {
|
|
|
15372
15398
|
ShortLinks.attributionReport = function (params) {
|
|
15373
15399
|
return Requests.processRoute(ShortLinksRoute.routes.attributionReport, undefined, undefined, params);
|
|
15374
15400
|
};
|
|
15401
|
+
ShortLinks.socialPostDeepDive = function (params) {
|
|
15402
|
+
return Requests.processRoute(ShortLinksRoute.routes.socialPostDeepDive, undefined, undefined, params);
|
|
15403
|
+
};
|
|
15404
|
+
ShortLinks.socialPostContentAnalysis = function (params) {
|
|
15405
|
+
return Requests.processRoute(ShortLinksRoute.routes.socialPostContentAnalysis, undefined, undefined, params);
|
|
15406
|
+
};
|
|
15407
|
+
ShortLinks.socialPostEngagementBreakdown = function (params) {
|
|
15408
|
+
return Requests.processRoute(ShortLinksRoute.routes.socialPostEngagementBreakdown, undefined, undefined, params);
|
|
15409
|
+
};
|
|
15410
|
+
ShortLinks.socialPostTrackingEffectiveness = function (params) {
|
|
15411
|
+
return Requests.processRoute(ShortLinksRoute.routes.socialPostTrackingEffectiveness, undefined, undefined, params);
|
|
15412
|
+
};
|
|
15375
15413
|
return ShortLinks;
|
|
15376
15414
|
}());
|
|
15377
15415
|
|