glitch-javascript-sdk 1.6.6 → 1.6.7
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 +12 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/SocialPosts.d.ts +8 -0
- package/dist/esm/index.js +12 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
- package/src/api/Hashtags.ts +1 -1
- package/src/api/SocialPosts.ts +11 -0
- package/src/routes/SocialPostsRoute.ts +1 -0
package/dist/cjs/index.js
CHANGED
|
@@ -22621,6 +22621,7 @@ var SocialPostsRoute = /** @class */ (function () {
|
|
|
22621
22621
|
reschedule: { url: '/socialposts/{post_id}/reschedule', method: HTTP_METHODS.POST },
|
|
22622
22622
|
reports: { url: '/socialposts/{post_id}/reports', method: HTTP_METHODS.GET },
|
|
22623
22623
|
updatePostImpressions: { url: '/socialposts/{post_id}/impressions', method: HTTP_METHODS.PUT },
|
|
22624
|
+
shortLinkReports: { url: '/socialposts/shortlinks/reports', method: HTTP_METHODS.GET },
|
|
22624
22625
|
};
|
|
22625
22626
|
return SocialPostsRoute;
|
|
22626
22627
|
}());
|
|
@@ -22780,6 +22781,16 @@ var SocialPosts = /** @class */ (function () {
|
|
|
22780
22781
|
SocialPosts.updatePostImpressions = function (post_id, data, params) {
|
|
22781
22782
|
return Requests.processRoute(SocialPostsRoute.routes.updatePostImpressions, data, { post_id: post_id }, params);
|
|
22782
22783
|
};
|
|
22784
|
+
/**
|
|
22785
|
+
* Get reports on all the the short links
|
|
22786
|
+
*
|
|
22787
|
+
* @see https://api.glitch.fun/api/documentation#/Post%20Route/resourcePostList
|
|
22788
|
+
*
|
|
22789
|
+
* @returns promise
|
|
22790
|
+
*/
|
|
22791
|
+
SocialPosts.shortLinkReports = function (params) {
|
|
22792
|
+
return Requests.processRoute(SocialPostsRoute.routes.shortLinkReports, undefined, undefined, params);
|
|
22793
|
+
};
|
|
22783
22794
|
return SocialPosts;
|
|
22784
22795
|
}());
|
|
22785
22796
|
|
|
@@ -25329,7 +25340,7 @@ var Hashtags = /** @class */ (function () {
|
|
|
25329
25340
|
* @returns AxiosPromise of an array of aggregated hashtags
|
|
25330
25341
|
*/
|
|
25331
25342
|
Hashtags.top = function (data, params) {
|
|
25332
|
-
return Requests.processRoute(HashtagRoute.routes.
|
|
25343
|
+
return Requests.processRoute(HashtagRoute.routes.top, data, {}, params);
|
|
25333
25344
|
};
|
|
25334
25345
|
return Hashtags;
|
|
25335
25346
|
}());
|