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
|
@@ -353,5 +353,35 @@ declare class SocialPosts {
|
|
|
353
353
|
content: string;
|
|
354
354
|
title_id: string;
|
|
355
355
|
}): AxiosPromise<Response<T>>;
|
|
356
|
+
/**
|
|
357
|
+
* Get a report attributing game installs, wishlists, and purchases to specific social media posts.
|
|
358
|
+
*
|
|
359
|
+
* @param params Filter object:
|
|
360
|
+
* - title_id: string (Required)
|
|
361
|
+
* - start_date?: string (YYYY-MM-DD)
|
|
362
|
+
* - end_date?: string (YYYY-MM-DD)
|
|
363
|
+
* - confidence_threshold?: number (0-100)
|
|
364
|
+
*/
|
|
365
|
+
static getSocialPostAttribution<T>(params: {
|
|
366
|
+
title_id: string;
|
|
367
|
+
start_date?: string;
|
|
368
|
+
end_date?: string;
|
|
369
|
+
confidence_threshold?: number;
|
|
370
|
+
}): AxiosPromise<Response<T>>;
|
|
371
|
+
/**
|
|
372
|
+
* Get a report attributing game installs and revenue to specific UTM sources and campaigns.
|
|
373
|
+
*
|
|
374
|
+
* @param params Filter object:
|
|
375
|
+
* - title_id: string (Required)
|
|
376
|
+
* - start_date?: string (YYYY-MM-DD)
|
|
377
|
+
* - end_date?: string (YYYY-MM-DD)
|
|
378
|
+
* - confidence_threshold?: number (0-100)
|
|
379
|
+
*/
|
|
380
|
+
static getUtmAttribution<T>(params: {
|
|
381
|
+
title_id: string;
|
|
382
|
+
start_date?: string;
|
|
383
|
+
end_date?: string;
|
|
384
|
+
confidence_threshold?: number;
|
|
385
|
+
}): AxiosPromise<Response<T>>;
|
|
356
386
|
}
|
|
357
387
|
export default SocialPosts;
|
package/dist/esm/api/Titles.d.ts
CHANGED
|
@@ -698,5 +698,7 @@ declare class Titles {
|
|
|
698
698
|
static wishlistAds<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
699
699
|
static wishlistUtms<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
700
700
|
static wishlistConversions<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
701
|
+
static wishlistGeo<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
702
|
+
static wishlistDevices<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
701
703
|
}
|
|
702
704
|
export default Titles;
|
package/dist/esm/index.js
CHANGED
|
@@ -11279,6 +11279,22 @@ var SocialPostsRoute = /** @class */ (function () {
|
|
|
11279
11279
|
getSocialPostAttributionReport: { url: '/reports/fingerprinting/social-post-attribution', method: HTTP_METHODS.GET },
|
|
11280
11280
|
getLinkSummary: { url: '/socialposts/{post_id}/link-summary', method: HTTP_METHODS.GET },
|
|
11281
11281
|
syncHistory: { url: '/social/sync-history/{platform}', method: HTTP_METHODS.POST },
|
|
11282
|
+
/**
|
|
11283
|
+
* Get social media posts correlated with installs, wishlists, and purchases.
|
|
11284
|
+
* GET /reports/fingerprinting/social-post-attribution
|
|
11285
|
+
*/
|
|
11286
|
+
socialPostAttribution: {
|
|
11287
|
+
url: '/reports/fingerprinting/social-post-attribution',
|
|
11288
|
+
method: HTTP_METHODS.GET
|
|
11289
|
+
},
|
|
11290
|
+
/**
|
|
11291
|
+
* Get UTM performance correlated with installs and revenue.
|
|
11292
|
+
* GET /reports/fingerprinting/utm-attribution
|
|
11293
|
+
*/
|
|
11294
|
+
utmAttribution: {
|
|
11295
|
+
url: '/reports/fingerprinting/utm-attribution',
|
|
11296
|
+
method: HTTP_METHODS.GET
|
|
11297
|
+
},
|
|
11282
11298
|
performAction: { url: '/socialposts/{post_id}/action', method: HTTP_METHODS.POST },
|
|
11283
11299
|
performCommentAction: { url: '/socialposts/comments/{comment_id}/action', method: HTTP_METHODS.POST },
|
|
11284
11300
|
creativePerformance: { url: '/socialposts/creative-performance', method: HTTP_METHODS.GET },
|
|
@@ -11732,6 +11748,30 @@ var SocialPosts = /** @class */ (function () {
|
|
|
11732
11748
|
SocialPosts.optimizeRedditPost = function (data) {
|
|
11733
11749
|
return Requests.processRoute(SocialPostsRoute.routes.optimizeRedditPost, data);
|
|
11734
11750
|
};
|
|
11751
|
+
/**
|
|
11752
|
+
* Get a report attributing game installs, wishlists, and purchases to specific social media posts.
|
|
11753
|
+
*
|
|
11754
|
+
* @param params Filter object:
|
|
11755
|
+
* - title_id: string (Required)
|
|
11756
|
+
* - start_date?: string (YYYY-MM-DD)
|
|
11757
|
+
* - end_date?: string (YYYY-MM-DD)
|
|
11758
|
+
* - confidence_threshold?: number (0-100)
|
|
11759
|
+
*/
|
|
11760
|
+
SocialPosts.getSocialPostAttribution = function (params) {
|
|
11761
|
+
return Requests.processRoute(SocialPostsRoute.routes.socialPostAttribution, {}, undefined, params);
|
|
11762
|
+
};
|
|
11763
|
+
/**
|
|
11764
|
+
* Get a report attributing game installs and revenue to specific UTM sources and campaigns.
|
|
11765
|
+
*
|
|
11766
|
+
* @param params Filter object:
|
|
11767
|
+
* - title_id: string (Required)
|
|
11768
|
+
* - start_date?: string (YYYY-MM-DD)
|
|
11769
|
+
* - end_date?: string (YYYY-MM-DD)
|
|
11770
|
+
* - confidence_threshold?: number (0-100)
|
|
11771
|
+
*/
|
|
11772
|
+
SocialPosts.getUtmAttribution = function (params) {
|
|
11773
|
+
return Requests.processRoute(SocialPostsRoute.routes.utmAttribution, {}, undefined, params);
|
|
11774
|
+
};
|
|
11735
11775
|
return SocialPosts;
|
|
11736
11776
|
}());
|
|
11737
11777
|
|
|
@@ -11995,6 +12035,8 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
11995
12035
|
wishlistAds: { url: '/titles/{title_id}/wishlist/ads', method: HTTP_METHODS.GET },
|
|
11996
12036
|
wishlistUtms: { url: '/titles/{title_id}/wishlist/utms', method: HTTP_METHODS.GET },
|
|
11997
12037
|
wishlistConversions: { url: '/titles/{title_id}/wishlist/conversions', method: HTTP_METHODS.GET },
|
|
12038
|
+
wishlistGeo: { url: '/titles/{title_id}/wishlist/geo', method: HTTP_METHODS.GET },
|
|
12039
|
+
wishlistDevices: { url: '/titles/{title_id}/wishlist/devices', method: HTTP_METHODS.GET },
|
|
11998
12040
|
};
|
|
11999
12041
|
return TitlesRoute;
|
|
12000
12042
|
}());
|
|
@@ -12919,6 +12961,12 @@ var Titles = /** @class */ (function () {
|
|
|
12919
12961
|
Titles.wishlistConversions = function (title_id, params) {
|
|
12920
12962
|
return Requests.processRoute(TitlesRoute.routes.wishlistConversions, undefined, { title_id: title_id }, params);
|
|
12921
12963
|
};
|
|
12964
|
+
Titles.wishlistGeo = function (title_id, params) {
|
|
12965
|
+
return Requests.processRoute(TitlesRoute.routes.wishlistGeo, undefined, { title_id: title_id }, params);
|
|
12966
|
+
};
|
|
12967
|
+
Titles.wishlistDevices = function (title_id, params) {
|
|
12968
|
+
return Requests.processRoute(TitlesRoute.routes.wishlistDevices, undefined, { title_id: title_id }, params);
|
|
12969
|
+
};
|
|
12922
12970
|
return Titles;
|
|
12923
12971
|
}());
|
|
12924
12972
|
|