glitch-javascript-sdk 2.2.9 → 2.3.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/cjs/index.js +38 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/ShortLinks.d.ts +4 -0
- package/dist/esm/api/SocialPosts.d.ts +15 -0
- package/dist/esm/index.js +38 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +19 -0
- package/package.json +1 -1
- package/src/api/ShortLinks.ts +16 -0
- package/src/api/SocialPosts.ts +21 -0
- package/src/routes/ShortLinksRoute.ts +14 -8
- package/src/routes/SocialPostsRoute.ts +11 -9
package/dist/index.d.ts
CHANGED
|
@@ -3588,6 +3588,21 @@ declare class SocialPosts {
|
|
|
3588
3588
|
* @returns A promise
|
|
3589
3589
|
*/
|
|
3590
3590
|
static createComment<T>(post_id: string, data: object): AxiosPromise<Response<T>>;
|
|
3591
|
+
/**
|
|
3592
|
+
* Get game install attribution data for a specific social media post.
|
|
3593
|
+
*
|
|
3594
|
+
* @param post_id The ID of the social media post.
|
|
3595
|
+
* @param params Optional query parameters (start_date, end_date, confidence_threshold).
|
|
3596
|
+
* @returns A promise
|
|
3597
|
+
*/
|
|
3598
|
+
static getPostAttribution<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
3599
|
+
/**
|
|
3600
|
+
* Get a report of all social media posts for a title that are converting to game installs.
|
|
3601
|
+
*
|
|
3602
|
+
* @param params Query parameters (title_id, start_date, end_date, confidence_threshold).
|
|
3603
|
+
* @returns A promise
|
|
3604
|
+
*/
|
|
3605
|
+
static getSocialPostAttributionReport<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
3591
3606
|
}
|
|
3592
3607
|
|
|
3593
3608
|
declare class Titles {
|
|
@@ -6407,6 +6422,10 @@ declare class ShortLinks {
|
|
|
6407
6422
|
static clickHeatmap<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6408
6423
|
static botAnalysis<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6409
6424
|
static attributionReport<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6425
|
+
static socialPostDeepDive<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6426
|
+
static socialPostContentAnalysis<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6427
|
+
static socialPostEngagementBreakdown<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6428
|
+
static socialPostTrackingEffectiveness<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6410
6429
|
}
|
|
6411
6430
|
|
|
6412
6431
|
declare class AIUsage {
|
package/package.json
CHANGED
package/src/api/ShortLinks.ts
CHANGED
|
@@ -116,6 +116,22 @@ class ShortLinks {
|
|
|
116
116
|
public static attributionReport<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
117
117
|
return Requests.processRoute(ShortLinksRoute.routes.attributionReport, undefined, undefined, params);
|
|
118
118
|
}
|
|
119
|
+
|
|
120
|
+
public static socialPostDeepDive<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
121
|
+
return Requests.processRoute(ShortLinksRoute.routes.socialPostDeepDive, undefined, undefined, params);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
public static socialPostContentAnalysis<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
125
|
+
return Requests.processRoute(ShortLinksRoute.routes.socialPostContentAnalysis, undefined, undefined, params);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
public static socialPostEngagementBreakdown<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
129
|
+
return Requests.processRoute(ShortLinksRoute.routes.socialPostEngagementBreakdown, undefined, undefined, params);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
public static socialPostTrackingEffectiveness<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
133
|
+
return Requests.processRoute(ShortLinksRoute.routes.socialPostTrackingEffectiveness, undefined, undefined, params);
|
|
134
|
+
}
|
|
119
135
|
}
|
|
120
136
|
|
|
121
137
|
export default ShortLinks;
|
package/src/api/SocialPosts.ts
CHANGED
|
@@ -297,6 +297,27 @@ class SocialPosts {
|
|
|
297
297
|
return Requests.processRoute(SocialPostsRoute.routes.createComment, data, { post_id });
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
+
/**
|
|
301
|
+
* Get game install attribution data for a specific social media post.
|
|
302
|
+
*
|
|
303
|
+
* @param post_id The ID of the social media post.
|
|
304
|
+
* @param params Optional query parameters (start_date, end_date, confidence_threshold).
|
|
305
|
+
* @returns A promise
|
|
306
|
+
*/
|
|
307
|
+
public static getPostAttribution<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
308
|
+
return Requests.processRoute(SocialPostsRoute.routes.getPostAttribution, undefined, { post_id }, params);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Get a report of all social media posts for a title that are converting to game installs.
|
|
313
|
+
*
|
|
314
|
+
* @param params Query parameters (title_id, start_date, end_date, confidence_threshold).
|
|
315
|
+
* @returns A promise
|
|
316
|
+
*/
|
|
317
|
+
public static getSocialPostAttributionReport<T>(params: Record<string, any>): AxiosPromise<Response<T>> {
|
|
318
|
+
return Requests.processRoute(SocialPostsRoute.routes.getSocialPostAttributionReport, undefined, undefined, params);
|
|
319
|
+
}
|
|
320
|
+
|
|
300
321
|
}
|
|
301
322
|
|
|
302
323
|
export default SocialPosts;
|
|
@@ -3,17 +3,17 @@ import HTTP_METHODS from "../constants/HttpMethods";
|
|
|
3
3
|
|
|
4
4
|
class ShortLinksRoute {
|
|
5
5
|
public static routes: { [key: string]: Route } = {
|
|
6
|
-
listShortLinks:
|
|
7
|
-
createShortLink:
|
|
8
|
-
viewShortLink:
|
|
9
|
-
updateShortLink:
|
|
6
|
+
listShortLinks: { url: '/shortlinks', method: HTTP_METHODS.GET },
|
|
7
|
+
createShortLink: { url: '/shortlinks', method: HTTP_METHODS.POST },
|
|
8
|
+
viewShortLink: { url: '/shortlinks/{id}', method: HTTP_METHODS.GET },
|
|
9
|
+
updateShortLink: { url: '/shortlinks/{id}', method: HTTP_METHODS.PUT },
|
|
10
10
|
// Delete can be added if supported
|
|
11
11
|
// deleteShortLink: { url: '/shortlinks/{id}', method: HTTP_METHODS.DELETE }
|
|
12
12
|
|
|
13
|
-
clickSummary:
|
|
14
|
-
geoDeviceBreakdown:{ url: '/shortlinks/reports/geo-device',
|
|
15
|
-
timeSeries:
|
|
16
|
-
referrerReport:
|
|
13
|
+
clickSummary: { url: '/shortlinks/reports/click-summary', method: HTTP_METHODS.GET },
|
|
14
|
+
geoDeviceBreakdown: { url: '/shortlinks/reports/geo-device', method: HTTP_METHODS.GET },
|
|
15
|
+
timeSeries: { url: '/shortlinks/reports/time-series', method: HTTP_METHODS.GET },
|
|
16
|
+
referrerReport: { url: '/shortlinks/reports/referrer', method: HTTP_METHODS.GET },
|
|
17
17
|
|
|
18
18
|
campaignPerformance: { url: '/shortlinks/reports/campaign-performance', method: HTTP_METHODS.GET },
|
|
19
19
|
influencerPerformance: { url: '/shortlinks/reports/influencer-performance', method: HTTP_METHODS.GET },
|
|
@@ -22,6 +22,12 @@ class ShortLinksRoute {
|
|
|
22
22
|
clickHeatmap: { url: '/shortlinks/reports/click-heatmap', method: HTTP_METHODS.GET },
|
|
23
23
|
botAnalysis: { url: '/shortlinks/reports/bot-analysis', method: HTTP_METHODS.GET },
|
|
24
24
|
attributionReport: { url: '/shortlinks/reports/attribution', method: HTTP_METHODS.GET },
|
|
25
|
+
|
|
26
|
+
// Social Media Post Reports
|
|
27
|
+
socialPostDeepDive: { url: '/shortlinks/reports/social-post-deep-dive', method: HTTP_METHODS.GET },
|
|
28
|
+
socialPostContentAnalysis: { url: '/shortlinks/reports/social-post-content-analysis', method: HTTP_METHODS.GET },
|
|
29
|
+
socialPostEngagementBreakdown: { url: '/shortlinks/reports/social-post-engagement-breakdown', method: HTTP_METHODS.GET },
|
|
30
|
+
socialPostTrackingEffectiveness: { url: '/shortlinks/reports/social-post-tracking-effectiveness', method: HTTP_METHODS.GET },
|
|
25
31
|
};
|
|
26
32
|
}
|
|
27
33
|
|
|
@@ -2,21 +2,21 @@ import Route from "./interface";
|
|
|
2
2
|
import HTTP_METHODS from "../constants/HttpMethods";
|
|
3
3
|
|
|
4
4
|
class SocialPostsRoute {
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
public static routes: { [key: string]: Route } = {
|
|
7
7
|
getPosts: { url: '/socialposts', method: HTTP_METHODS.GET },
|
|
8
8
|
createPost: { url: '/socialposts', method: HTTP_METHODS.POST },
|
|
9
|
-
retrievePost
|
|
10
|
-
updatePost
|
|
11
|
-
deletePost
|
|
9
|
+
retrievePost: { url: '/socialposts/{post_id}', method: HTTP_METHODS.GET },
|
|
10
|
+
updatePost: { url: '/socialposts/{post_id}', method: HTTP_METHODS.PUT },
|
|
11
|
+
deletePost: { url: '/socialposts/{post_id}', method: HTTP_METHODS.DELETE },
|
|
12
12
|
dispute: { url: '/social/{post_id}/dispute', method: HTTP_METHODS.POST },
|
|
13
|
-
history
|
|
14
|
-
progression
|
|
13
|
+
history: { url: '/socialposts/{post_id}/history', method: HTTP_METHODS.GET },
|
|
14
|
+
progression: { url: '/socialposts/progression', method: HTTP_METHODS.GET },
|
|
15
15
|
addMedia: { url: '/socialposts/{post_id}/addMedia', method: HTTP_METHODS.POST },
|
|
16
16
|
removeMedia: { url: '/socialposts/{post_id}/removeMedia/{media_id}', method: HTTP_METHODS.DELETE },
|
|
17
17
|
reschedule: { url: '/socialposts/{post_id}/reschedule', method: HTTP_METHODS.POST },
|
|
18
18
|
reports: { url: '/socialposts/{post_id}/reports', method: HTTP_METHODS.GET },
|
|
19
|
-
updatePostImpressions
|
|
19
|
+
updatePostImpressions: { url: '/socialposts/{post_id}/impressions', method: HTTP_METHODS.PUT },
|
|
20
20
|
shortLinkReports: { url: '/socialposts/shortlinks/reports', method: HTTP_METHODS.GET },
|
|
21
21
|
|
|
22
22
|
// New Comment Routes
|
|
@@ -31,9 +31,11 @@ class SocialPostsRoute {
|
|
|
31
31
|
updateCommentMetrics: { url: '/socialposts/comments/{comment_id}/update-metrics', method: HTTP_METHODS.PUT },
|
|
32
32
|
createComment: { url: '/socialposts/{post_id}/comments', method: HTTP_METHODS.POST },
|
|
33
33
|
|
|
34
|
+
getPostAttribution: { url: '/socialposts/{post_id}/attribution', method: HTTP_METHODS.GET },
|
|
35
|
+
getSocialPostAttributionReport: { url: '/reports/fingerprinting/social-post-attribution', method: HTTP_METHODS.GET },
|
|
34
36
|
|
|
35
37
|
};
|
|
36
38
|
|
|
37
|
-
|
|
39
|
+
}
|
|
38
40
|
|
|
39
|
-
|
|
41
|
+
export default SocialPostsRoute;
|