glitch-javascript-sdk 1.5.2 → 1.5.3
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 +13 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/SocialPosts.d.ts +10 -0
- package/dist/esm/index.js +13 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +10 -0
- package/package.json +1 -1
- package/src/api/SocialPosts.ts +14 -0
- package/src/routes/SocialPostsRoute.ts +1 -0
package/dist/cjs/index.js
CHANGED
|
@@ -22546,6 +22546,7 @@ var SocialPostsRoute = /** @class */ (function () {
|
|
|
22546
22546
|
removeMedia: { url: '/socialposts/{post_id}/removeMedia/{media_id}', method: HTTP_METHODS.DELETE },
|
|
22547
22547
|
reschedule: { url: '/socialposts/{post_id}/reschedule', method: HTTP_METHODS.POST },
|
|
22548
22548
|
reports: { url: '/socialposts/{post_id}/reports', method: HTTP_METHODS.GET },
|
|
22549
|
+
updatePostImpressions: { url: '/socialposts/{post_id}/impressions', method: HTTP_METHODS.PUT },
|
|
22549
22550
|
};
|
|
22550
22551
|
return SocialPostsRoute;
|
|
22551
22552
|
}());
|
|
@@ -22681,6 +22682,18 @@ var SocialPosts = /** @class */ (function () {
|
|
|
22681
22682
|
SocialPosts.reports = function (params) {
|
|
22682
22683
|
return Requests.processRoute(SocialPostsRoute.routes.reports, undefined, undefined, params);
|
|
22683
22684
|
};
|
|
22685
|
+
/**
|
|
22686
|
+
* Update the information about a post impressions, for posts who API do not give view counts.
|
|
22687
|
+
*
|
|
22688
|
+
* @see https://api.glitch.fun/api/documentation#/Post%20Route/showPostStorage
|
|
22689
|
+
*
|
|
22690
|
+
* @param post_id The id fo the post to retrieve.
|
|
22691
|
+
*
|
|
22692
|
+
* @returns promise
|
|
22693
|
+
*/
|
|
22694
|
+
SocialPosts.updatePostImpressions = function (post_id, data, params) {
|
|
22695
|
+
return Requests.processRoute(SocialPostsRoute.routes.updatePostImpressions, data, { post_id: post_id }, params);
|
|
22696
|
+
};
|
|
22684
22697
|
return SocialPosts;
|
|
22685
22698
|
}());
|
|
22686
22699
|
|