glitch-javascript-sdk 3.0.9 → 3.1.0

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/index.d.ts CHANGED
@@ -3920,6 +3920,36 @@ declare class SocialPosts {
3920
3920
  content: string;
3921
3921
  title_id: string;
3922
3922
  }): AxiosPromise<Response<T>>;
3923
+ /**
3924
+ * Get a report attributing game installs, wishlists, and purchases to specific social media posts.
3925
+ *
3926
+ * @param params Filter object:
3927
+ * - title_id: string (Required)
3928
+ * - start_date?: string (YYYY-MM-DD)
3929
+ * - end_date?: string (YYYY-MM-DD)
3930
+ * - confidence_threshold?: number (0-100)
3931
+ */
3932
+ static getSocialPostAttribution<T>(params: {
3933
+ title_id: string;
3934
+ start_date?: string;
3935
+ end_date?: string;
3936
+ confidence_threshold?: number;
3937
+ }): AxiosPromise<Response<T>>;
3938
+ /**
3939
+ * Get a report attributing game installs and revenue to specific UTM sources and campaigns.
3940
+ *
3941
+ * @param params Filter object:
3942
+ * - title_id: string (Required)
3943
+ * - start_date?: string (YYYY-MM-DD)
3944
+ * - end_date?: string (YYYY-MM-DD)
3945
+ * - confidence_threshold?: number (0-100)
3946
+ */
3947
+ static getUtmAttribution<T>(params: {
3948
+ title_id: string;
3949
+ start_date?: string;
3950
+ end_date?: string;
3951
+ confidence_threshold?: number;
3952
+ }): AxiosPromise<Response<T>>;
3923
3953
  }
3924
3954
 
3925
3955
  declare class Titles {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "3.0.9",
3
+ "version": "3.1.0",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -486,6 +486,42 @@ class SocialPosts {
486
486
  public static optimizeRedditPost<T>(data: { subreddit: string, content: string, title_id: string }): AxiosPromise<Response<T>> {
487
487
  return Requests.processRoute(SocialPostsRoute.routes.optimizeRedditPost, data);
488
488
  }
489
+
490
+ /**
491
+ * Get a report attributing game installs, wishlists, and purchases to specific social media posts.
492
+ *
493
+ * @param params Filter object:
494
+ * - title_id: string (Required)
495
+ * - start_date?: string (YYYY-MM-DD)
496
+ * - end_date?: string (YYYY-MM-DD)
497
+ * - confidence_threshold?: number (0-100)
498
+ */
499
+ public static getSocialPostAttribution<T>(params: {
500
+ title_id: string,
501
+ start_date?: string,
502
+ end_date?: string,
503
+ confidence_threshold?: number
504
+ }): AxiosPromise<Response<T>> {
505
+ return Requests.processRoute(SocialPostsRoute.routes.socialPostAttribution, {}, undefined, params);
506
+ }
507
+
508
+ /**
509
+ * Get a report attributing game installs and revenue to specific UTM sources and campaigns.
510
+ *
511
+ * @param params Filter object:
512
+ * - title_id: string (Required)
513
+ * - start_date?: string (YYYY-MM-DD)
514
+ * - end_date?: string (YYYY-MM-DD)
515
+ * - confidence_threshold?: number (0-100)
516
+ */
517
+ public static getUtmAttribution<T>(params: {
518
+ title_id: string,
519
+ start_date?: string,
520
+ end_date?: string,
521
+ confidence_threshold?: number
522
+ }): AxiosPromise<Response<T>> {
523
+ return Requests.processRoute(SocialPostsRoute.routes.utmAttribution, {}, undefined, params);
524
+ }
489
525
  }
490
526
 
491
527
  export default SocialPosts;
@@ -35,6 +35,24 @@ class SocialPostsRoute {
35
35
  getSocialPostAttributionReport: { url: '/reports/fingerprinting/social-post-attribution', method: HTTP_METHODS.GET },
36
36
  getLinkSummary: { url: '/socialposts/{post_id}/link-summary', method: HTTP_METHODS.GET },
37
37
  syncHistory: { url: '/social/sync-history/{platform}', method: HTTP_METHODS.POST },
38
+
39
+ /**
40
+ * Get social media posts correlated with installs, wishlists, and purchases.
41
+ * GET /reports/fingerprinting/social-post-attribution
42
+ */
43
+ socialPostAttribution: {
44
+ url: '/reports/fingerprinting/social-post-attribution',
45
+ method: HTTP_METHODS.GET
46
+ },
47
+
48
+ /**
49
+ * Get UTM performance correlated with installs and revenue.
50
+ * GET /reports/fingerprinting/utm-attribution
51
+ */
52
+ utmAttribution: {
53
+ url: '/reports/fingerprinting/utm-attribution',
54
+ method: HTTP_METHODS.GET
55
+ },
38
56
 
39
57
  performAction: { url: '/socialposts/{post_id}/action', method: HTTP_METHODS.POST },
40
58
  performCommentAction: { url: '/socialposts/comments/{comment_id}/action', method: HTTP_METHODS.POST },