glitch-javascript-sdk 2.2.9 → 2.3.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 +17 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/ShortLinks.d.ts +4 -0
- package/dist/esm/index.js +17 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/package.json +1 -1
- package/src/api/ShortLinks.ts +16 -0
- package/src/routes/ShortLinksRoute.ts +14 -8
package/dist/index.d.ts
CHANGED
|
@@ -6407,6 +6407,10 @@ declare class ShortLinks {
|
|
|
6407
6407
|
static clickHeatmap<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6408
6408
|
static botAnalysis<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6409
6409
|
static attributionReport<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6410
|
+
static socialPostDeepDive<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6411
|
+
static socialPostContentAnalysis<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6412
|
+
static socialPostEngagementBreakdown<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6413
|
+
static socialPostTrackingEffectiveness<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6410
6414
|
}
|
|
6411
6415
|
|
|
6412
6416
|
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;
|
|
@@ -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
|
|