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 +21 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/SocialPosts.d.ts +15 -0
- package/dist/esm/index.js +21 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +15 -0
- package/package.json +1 -1
- package/src/api/SocialPosts.ts +21 -0
- package/src/routes/SocialPostsRoute.ts +11 -9
|
@@ -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
|
|