glitch-javascript-sdk 2.2.7 → 2.2.9
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 +55 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/ShortLinks.d.ts +7 -0
- package/dist/esm/api/TwitchReporting.d.ts +15 -0
- package/dist/esm/index.js +55 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +22 -0
- package/package.json +1 -1
- package/src/api/ShortLinks.ts +70 -42
- package/src/api/TwitchReporting.ts +21 -0
- package/src/routes/ShortLinksRoute.ts +8 -0
- package/src/routes/TwitchReportingRoute.ts +8 -0
|
@@ -37,5 +37,12 @@ declare class ShortLinks {
|
|
|
37
37
|
* - Example usage: ShortLinks.referrerReport({ short_link_id: 'uuid-here' })
|
|
38
38
|
*/
|
|
39
39
|
static referrerReport<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
40
|
+
static campaignPerformance<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
41
|
+
static influencerPerformance<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
42
|
+
static socialPostPerformance<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
43
|
+
static conversionFunnel<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
44
|
+
static clickHeatmap<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
45
|
+
static botAnalysis<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
46
|
+
static attributionReport<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
40
47
|
}
|
|
41
48
|
export default ShortLinks;
|
|
@@ -62,5 +62,20 @@ declare class TwitchReporting {
|
|
|
62
62
|
* @returns promise
|
|
63
63
|
*/
|
|
64
64
|
static getCreatorStreamingSchedule<T>(twitch_streamer_id: string): AxiosPromise<Response<T>>;
|
|
65
|
+
/**
|
|
66
|
+
* Get a list of games played by a specific streamer.
|
|
67
|
+
*
|
|
68
|
+
* @param twitch_streamer_id The ID of the Twitch streamer.
|
|
69
|
+
* @returns promise
|
|
70
|
+
*/
|
|
71
|
+
static getStreamerGameHistory<T>(twitch_streamer_id: string): AxiosPromise<Response<T>>;
|
|
72
|
+
/**
|
|
73
|
+
* Get a paginated list of streamers who played a specific game.
|
|
74
|
+
*
|
|
75
|
+
* @param game_name The URL-encoded name of the game.
|
|
76
|
+
* @param params Optional query parameters for pagination (e.g., page, per_page).
|
|
77
|
+
* @returns promise
|
|
78
|
+
*/
|
|
79
|
+
static getStreamersForGame<T>(game_name: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
65
80
|
}
|
|
66
81
|
export default TwitchReporting;
|
package/dist/esm/index.js
CHANGED
|
@@ -15281,6 +15281,13 @@ var ShortLinksRoute = /** @class */ (function () {
|
|
|
15281
15281
|
geoDeviceBreakdown: { url: '/shortlinks/reports/geo-device', method: HTTP_METHODS.GET },
|
|
15282
15282
|
timeSeries: { url: '/shortlinks/reports/time-series', method: HTTP_METHODS.GET },
|
|
15283
15283
|
referrerReport: { url: '/shortlinks/reports/referrer', method: HTTP_METHODS.GET },
|
|
15284
|
+
campaignPerformance: { url: '/shortlinks/reports/campaign-performance', method: HTTP_METHODS.GET },
|
|
15285
|
+
influencerPerformance: { url: '/shortlinks/reports/influencer-performance', method: HTTP_METHODS.GET },
|
|
15286
|
+
socialPostPerformance: { url: '/shortlinks/reports/social-post-performance', method: HTTP_METHODS.GET },
|
|
15287
|
+
conversionFunnel: { url: '/shortlinks/reports/conversion-funnel', method: HTTP_METHODS.GET },
|
|
15288
|
+
clickHeatmap: { url: '/shortlinks/reports/click-heatmap', method: HTTP_METHODS.GET },
|
|
15289
|
+
botAnalysis: { url: '/shortlinks/reports/bot-analysis', method: HTTP_METHODS.GET },
|
|
15290
|
+
attributionReport: { url: '/shortlinks/reports/attribution', method: HTTP_METHODS.GET },
|
|
15284
15291
|
};
|
|
15285
15292
|
return ShortLinksRoute;
|
|
15286
15293
|
}());
|
|
@@ -15344,6 +15351,27 @@ var ShortLinks = /** @class */ (function () {
|
|
|
15344
15351
|
ShortLinks.referrerReport = function (params) {
|
|
15345
15352
|
return Requests.processRoute(ShortLinksRoute.routes.referrerReport, undefined, undefined, params);
|
|
15346
15353
|
};
|
|
15354
|
+
ShortLinks.campaignPerformance = function (params) {
|
|
15355
|
+
return Requests.processRoute(ShortLinksRoute.routes.campaignPerformance, undefined, undefined, params);
|
|
15356
|
+
};
|
|
15357
|
+
ShortLinks.influencerPerformance = function (params) {
|
|
15358
|
+
return Requests.processRoute(ShortLinksRoute.routes.influencerPerformance, undefined, undefined, params);
|
|
15359
|
+
};
|
|
15360
|
+
ShortLinks.socialPostPerformance = function (params) {
|
|
15361
|
+
return Requests.processRoute(ShortLinksRoute.routes.socialPostPerformance, undefined, undefined, params);
|
|
15362
|
+
};
|
|
15363
|
+
ShortLinks.conversionFunnel = function (params) {
|
|
15364
|
+
return Requests.processRoute(ShortLinksRoute.routes.conversionFunnel, undefined, undefined, params);
|
|
15365
|
+
};
|
|
15366
|
+
ShortLinks.clickHeatmap = function (params) {
|
|
15367
|
+
return Requests.processRoute(ShortLinksRoute.routes.clickHeatmap, undefined, undefined, params);
|
|
15368
|
+
};
|
|
15369
|
+
ShortLinks.botAnalysis = function (params) {
|
|
15370
|
+
return Requests.processRoute(ShortLinksRoute.routes.botAnalysis, undefined, undefined, params);
|
|
15371
|
+
};
|
|
15372
|
+
ShortLinks.attributionReport = function (params) {
|
|
15373
|
+
return Requests.processRoute(ShortLinksRoute.routes.attributionReport, undefined, undefined, params);
|
|
15374
|
+
};
|
|
15347
15375
|
return ShortLinks;
|
|
15348
15376
|
}());
|
|
15349
15377
|
|
|
@@ -15633,6 +15661,14 @@ var TwitchReportingRoute = /** @class */ (function () {
|
|
|
15633
15661
|
url: '/reporting/twitch/streamers/{twitch_streamer_id}/streaming-schedule',
|
|
15634
15662
|
method: HTTP_METHODS.GET
|
|
15635
15663
|
},
|
|
15664
|
+
getStreamerGameHistory: {
|
|
15665
|
+
url: '/reporting/twitch/streamers/{twitch_streamer_id}/games',
|
|
15666
|
+
method: HTTP_METHODS.GET
|
|
15667
|
+
},
|
|
15668
|
+
getStreamersForGame: {
|
|
15669
|
+
url: '/reporting/twitch/games/{game_name}/streamers',
|
|
15670
|
+
method: HTTP_METHODS.GET
|
|
15671
|
+
},
|
|
15636
15672
|
};
|
|
15637
15673
|
return TwitchReportingRoute;
|
|
15638
15674
|
}());
|
|
@@ -15713,6 +15749,25 @@ var TwitchReporting = /** @class */ (function () {
|
|
|
15713
15749
|
TwitchReporting.getCreatorStreamingSchedule = function (twitch_streamer_id) {
|
|
15714
15750
|
return Requests.processRoute(TwitchReportingRoute.routes.getCreatorStreamingSchedule, undefined, { twitch_streamer_id: twitch_streamer_id });
|
|
15715
15751
|
};
|
|
15752
|
+
/**
|
|
15753
|
+
* Get a list of games played by a specific streamer.
|
|
15754
|
+
*
|
|
15755
|
+
* @param twitch_streamer_id The ID of the Twitch streamer.
|
|
15756
|
+
* @returns promise
|
|
15757
|
+
*/
|
|
15758
|
+
TwitchReporting.getStreamerGameHistory = function (twitch_streamer_id) {
|
|
15759
|
+
return Requests.processRoute(TwitchReportingRoute.routes.getStreamerGameHistory, undefined, { twitch_streamer_id: twitch_streamer_id });
|
|
15760
|
+
};
|
|
15761
|
+
/**
|
|
15762
|
+
* Get a paginated list of streamers who played a specific game.
|
|
15763
|
+
*
|
|
15764
|
+
* @param game_name The URL-encoded name of the game.
|
|
15765
|
+
* @param params Optional query parameters for pagination (e.g., page, per_page).
|
|
15766
|
+
* @returns promise
|
|
15767
|
+
*/
|
|
15768
|
+
TwitchReporting.getStreamersForGame = function (game_name, params) {
|
|
15769
|
+
return Requests.processRoute(TwitchReportingRoute.routes.getStreamersForGame, undefined, { game_name: encodeURIComponent(game_name) }, params);
|
|
15770
|
+
};
|
|
15716
15771
|
return TwitchReporting;
|
|
15717
15772
|
}());
|
|
15718
15773
|
|