glitch-javascript-sdk 3.0.8 → 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/cjs/index.js +48 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/SocialPosts.d.ts +30 -0
- package/dist/esm/api/Titles.d.ts +2 -0
- package/dist/esm/index.js +48 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +32 -0
- package/package.json +1 -1
- package/src/api/SocialPosts.ts +36 -0
- package/src/api/Titles.ts +8 -0
- package/src/routes/SocialPostsRoute.ts +18 -0
- package/src/routes/TitlesRoute.ts +2 -0
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 {
|
|
@@ -4620,6 +4650,8 @@ declare class Titles {
|
|
|
4620
4650
|
static wishlistAds<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4621
4651
|
static wishlistUtms<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4622
4652
|
static wishlistConversions<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4653
|
+
static wishlistGeo<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4654
|
+
static wishlistDevices<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4623
4655
|
}
|
|
4624
4656
|
|
|
4625
4657
|
declare class Campaigns {
|
package/package.json
CHANGED
package/src/api/SocialPosts.ts
CHANGED
|
@@ -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;
|
package/src/api/Titles.ts
CHANGED
|
@@ -1306,6 +1306,14 @@ class Titles {
|
|
|
1306
1306
|
public static wishlistConversions<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
1307
1307
|
return Requests.processRoute(TitlesRoute.routes.wishlistConversions, undefined, { title_id }, params);
|
|
1308
1308
|
}
|
|
1309
|
+
|
|
1310
|
+
public static wishlistGeo<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
1311
|
+
return Requests.processRoute(TitlesRoute.routes.wishlistGeo, undefined, { title_id }, params);
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
public static wishlistDevices<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
1315
|
+
return Requests.processRoute(TitlesRoute.routes.wishlistDevices, undefined, { title_id }, params);
|
|
1316
|
+
}
|
|
1309
1317
|
}
|
|
1310
1318
|
|
|
1311
1319
|
export default Titles;
|
|
@@ -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 },
|
|
@@ -298,6 +298,8 @@ class TitlesRoute {
|
|
|
298
298
|
wishlistAds: { url: '/titles/{title_id}/wishlist/ads', method: HTTP_METHODS.GET },
|
|
299
299
|
wishlistUtms: { url: '/titles/{title_id}/wishlist/utms', method: HTTP_METHODS.GET },
|
|
300
300
|
wishlistConversions: { url: '/titles/{title_id}/wishlist/conversions', method: HTTP_METHODS.GET },
|
|
301
|
+
wishlistGeo: { url: '/titles/{title_id}/wishlist/geo', method: HTTP_METHODS.GET },
|
|
302
|
+
wishlistDevices: { url: '/titles/{title_id}/wishlist/devices', method: HTTP_METHODS.GET },
|
|
301
303
|
|
|
302
304
|
};
|
|
303
305
|
|