glitch-javascript-sdk 2.2.8 → 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 +28 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/ShortLinks.d.ts +7 -0
- package/dist/esm/index.js +28 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +7 -0
- package/package.json +1 -1
- package/src/api/ShortLinks.ts +70 -42
- package/src/routes/ShortLinksRoute.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;
|
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
|
|