glitch-javascript-sdk 2.3.1 → 2.3.4
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 +11 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/SocialPosts.d.ts +7 -0
- package/dist/esm/index.js +11 -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 +1 -0
- package/src/api/SocialPosts.ts +10 -0
- package/src/routes/ShortLinksRoute.ts +1 -0
- package/src/routes/SocialPostsRoute.ts +1 -0
|
@@ -226,5 +226,12 @@ declare class SocialPosts {
|
|
|
226
226
|
* @returns A promise
|
|
227
227
|
*/
|
|
228
228
|
static getSocialPostAttributionReport<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
229
|
+
/**
|
|
230
|
+
* Get a summary of clicks for each short link in a post.
|
|
231
|
+
*
|
|
232
|
+
* @param post_id The ID of the social media post.
|
|
233
|
+
* @returns A promise
|
|
234
|
+
*/
|
|
235
|
+
static getLinkSummary<T>(post_id: string): AxiosPromise<Response<T>>;
|
|
229
236
|
}
|
|
230
237
|
export default SocialPosts;
|
package/dist/esm/index.js
CHANGED
|
@@ -10949,6 +10949,7 @@ var SocialPostsRoute = /** @class */ (function () {
|
|
|
10949
10949
|
createComment: { url: '/socialposts/{post_id}/comments', method: HTTP_METHODS.POST },
|
|
10950
10950
|
getPostAttribution: { url: '/socialposts/{post_id}/attribution', method: HTTP_METHODS.GET },
|
|
10951
10951
|
getSocialPostAttributionReport: { url: '/reports/fingerprinting/social-post-attribution', method: HTTP_METHODS.GET },
|
|
10952
|
+
getLinkSummary: { url: '/socialposts/{post_id}/link-summary', method: HTTP_METHODS.GET },
|
|
10952
10953
|
};
|
|
10953
10954
|
return SocialPostsRoute;
|
|
10954
10955
|
}());
|
|
@@ -11233,6 +11234,15 @@ var SocialPosts = /** @class */ (function () {
|
|
|
11233
11234
|
SocialPosts.getSocialPostAttributionReport = function (params) {
|
|
11234
11235
|
return Requests.processRoute(SocialPostsRoute.routes.getSocialPostAttributionReport, undefined, undefined, params);
|
|
11235
11236
|
};
|
|
11237
|
+
/**
|
|
11238
|
+
* Get a summary of clicks for each short link in a post.
|
|
11239
|
+
*
|
|
11240
|
+
* @param post_id The ID of the social media post.
|
|
11241
|
+
* @returns A promise
|
|
11242
|
+
*/
|
|
11243
|
+
SocialPosts.getLinkSummary = function (post_id) {
|
|
11244
|
+
return Requests.processRoute(SocialPostsRoute.routes.getLinkSummary, undefined, { post_id: post_id });
|
|
11245
|
+
};
|
|
11236
11246
|
return SocialPosts;
|
|
11237
11247
|
}());
|
|
11238
11248
|
|
|
@@ -15309,6 +15319,7 @@ var ShortLinksRoute = /** @class */ (function () {
|
|
|
15309
15319
|
clickHeatmap: { url: '/shortlinks/reports/click-heatmap', method: HTTP_METHODS.GET },
|
|
15310
15320
|
botAnalysis: { url: '/shortlinks/reports/bot-analysis', method: HTTP_METHODS.GET },
|
|
15311
15321
|
attributionReport: { url: '/shortlinks/reports/attribution', method: HTTP_METHODS.GET },
|
|
15322
|
+
getLinkSummary: { url: '/socialposts/{post_id}/link-summary', method: HTTP_METHODS.GET },
|
|
15312
15323
|
// Social Media Post Reports
|
|
15313
15324
|
socialPostDeepDive: { url: '/shortlinks/reports/social-post-deep-dive', method: HTTP_METHODS.GET },
|
|
15314
15325
|
socialPostContentAnalysis: { url: '/shortlinks/reports/social-post-content-analysis', method: HTTP_METHODS.GET },
|