glitch-javascript-sdk 3.0.9 → 3.1.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/index.d.ts CHANGED
@@ -3920,6 +3920,42 @@ 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>>;
3953
+ static getInfluencerAttribution<T>(params: {
3954
+ title_id: string;
3955
+ start_date?: string;
3956
+ end_date?: string;
3957
+ confidence_threshold?: number;
3958
+ }): AxiosPromise<Response<T>>;
3923
3959
  }
3924
3960
 
3925
3961
  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.1",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -486,6 +486,51 @@ 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
+ }
525
+
526
+ public static getInfluencerAttribution<T>(params: {
527
+ title_id: string,
528
+ start_date?: string,
529
+ end_date?: string,
530
+ confidence_threshold?: number
531
+ }): AxiosPromise<Response<T>> {
532
+ return Requests.processRoute(SocialPostsRoute.routes.influencerAttribution, {}, undefined, params);
533
+ }
489
534
  }
490
535
 
491
536
  export default SocialPosts;
@@ -35,6 +35,29 @@ 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
+ influencerAttribution: {
49
+ url: '/reports/fingerprinting/influencer-attribution',
50
+ method: HTTP_METHODS.GET
51
+ },
52
+
53
+ /**
54
+ * Get UTM performance correlated with installs and revenue.
55
+ * GET /reports/fingerprinting/utm-attribution
56
+ */
57
+ utmAttribution: {
58
+ url: '/reports/fingerprinting/utm-attribution',
59
+ method: HTTP_METHODS.GET
60
+ },
38
61
 
39
62
  performAction: { url: '/socialposts/{post_id}/action', method: HTTP_METHODS.POST },
40
63
  performCommentAction: { url: '/socialposts/comments/{comment_id}/action', method: HTTP_METHODS.POST },