glitch-javascript-sdk 3.1.0 → 3.1.2
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 +10 -1189
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/SocialPosts.d.ts +6 -0
- package/dist/esm/api/Titles.d.ts +1 -1
- package/dist/esm/index.js +9 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +7 -1
- package/package.json +1 -1
- package/src/api/SocialPosts.ts +9 -0
- package/src/api/Titles.ts +2 -2
- package/src/routes/SocialPostsRoute.ts +5 -0
package/dist/index.d.ts
CHANGED
|
@@ -3950,6 +3950,12 @@ declare class SocialPosts {
|
|
|
3950
3950
|
end_date?: string;
|
|
3951
3951
|
confidence_threshold?: number;
|
|
3952
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>>;
|
|
3953
3959
|
}
|
|
3954
3960
|
|
|
3955
3961
|
declare class Titles {
|
|
@@ -4452,7 +4458,7 @@ declare class Titles {
|
|
|
4452
4458
|
/**
|
|
4453
4459
|
* Get the total earnings and playtime summary for a title.
|
|
4454
4460
|
*/
|
|
4455
|
-
static getDeveloperPayoutSummary<T>(title_id: string): AxiosPromise<Response<T>>;
|
|
4461
|
+
static getDeveloperPayoutSummary<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4456
4462
|
/**
|
|
4457
4463
|
* The Aegis Handshake: Verify if a player is allowed to play.
|
|
4458
4464
|
*
|
package/package.json
CHANGED
package/src/api/SocialPosts.ts
CHANGED
|
@@ -522,6 +522,15 @@ class SocialPosts {
|
|
|
522
522
|
}): AxiosPromise<Response<T>> {
|
|
523
523
|
return Requests.processRoute(SocialPostsRoute.routes.utmAttribution, {}, undefined, params);
|
|
524
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
|
+
}
|
|
525
534
|
}
|
|
526
535
|
|
|
527
536
|
export default SocialPosts;
|
package/src/api/Titles.ts
CHANGED
|
@@ -973,8 +973,8 @@ class Titles {
|
|
|
973
973
|
/**
|
|
974
974
|
* Get the total earnings and playtime summary for a title.
|
|
975
975
|
*/
|
|
976
|
-
public static getDeveloperPayoutSummary<T>(title_id: string): AxiosPromise<Response<T>> {
|
|
977
|
-
return Requests.processRoute(TitlesRoute.routes.developerPayoutSummary, {}, { title_id });
|
|
976
|
+
public static getDeveloperPayoutSummary<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
977
|
+
return Requests.processRoute(TitlesRoute.routes.developerPayoutSummary, {}, { title_id }, params);
|
|
978
978
|
}
|
|
979
979
|
|
|
980
980
|
/**
|
|
@@ -45,6 +45,11 @@ class SocialPostsRoute {
|
|
|
45
45
|
method: HTTP_METHODS.GET
|
|
46
46
|
},
|
|
47
47
|
|
|
48
|
+
influencerAttribution: {
|
|
49
|
+
url: '/reports/fingerprinting/influencer-attribution',
|
|
50
|
+
method: HTTP_METHODS.GET
|
|
51
|
+
},
|
|
52
|
+
|
|
48
53
|
/**
|
|
49
54
|
* Get UTM performance correlated with installs and revenue.
|
|
50
55
|
* GET /reports/fingerprinting/utm-attribution
|