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
|
@@ -107,5 +107,15 @@ declare class SocialPosts {
|
|
|
107
107
|
* @returns promise
|
|
108
108
|
*/
|
|
109
109
|
static reports<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
110
|
+
/**
|
|
111
|
+
* Update the information about a post impressions, for posts who API do not give view counts.
|
|
112
|
+
*
|
|
113
|
+
* @see https://api.glitch.fun/api/documentation#/Post%20Route/showPostStorage
|
|
114
|
+
*
|
|
115
|
+
* @param post_id The id fo the post to retrieve.
|
|
116
|
+
*
|
|
117
|
+
* @returns promise
|
|
118
|
+
*/
|
|
119
|
+
static updatePostImpressions<T>(post_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
110
120
|
}
|
|
111
121
|
export default SocialPosts;
|
package/dist/esm/index.js
CHANGED
|
@@ -9362,6 +9362,7 @@ var SocialPostsRoute = /** @class */ (function () {
|
|
|
9362
9362
|
removeMedia: { url: '/socialposts/{post_id}/removeMedia/{media_id}', method: HTTP_METHODS.DELETE },
|
|
9363
9363
|
reschedule: { url: '/socialposts/{post_id}/reschedule', method: HTTP_METHODS.POST },
|
|
9364
9364
|
reports: { url: '/socialposts/{post_id}/reports', method: HTTP_METHODS.GET },
|
|
9365
|
+
updatePostImpressions: { url: '/socialposts/{post_id}/impressions', method: HTTP_METHODS.PUT },
|
|
9365
9366
|
};
|
|
9366
9367
|
return SocialPostsRoute;
|
|
9367
9368
|
}());
|
|
@@ -9497,6 +9498,18 @@ var SocialPosts = /** @class */ (function () {
|
|
|
9497
9498
|
SocialPosts.reports = function (params) {
|
|
9498
9499
|
return Requests.processRoute(SocialPostsRoute.routes.reports, undefined, undefined, params);
|
|
9499
9500
|
};
|
|
9501
|
+
/**
|
|
9502
|
+
* Update the information about a post impressions, for posts who API do not give view counts.
|
|
9503
|
+
*
|
|
9504
|
+
* @see https://api.glitch.fun/api/documentation#/Post%20Route/showPostStorage
|
|
9505
|
+
*
|
|
9506
|
+
* @param post_id The id fo the post to retrieve.
|
|
9507
|
+
*
|
|
9508
|
+
* @returns promise
|
|
9509
|
+
*/
|
|
9510
|
+
SocialPosts.updatePostImpressions = function (post_id, data, params) {
|
|
9511
|
+
return Requests.processRoute(SocialPostsRoute.routes.updatePostImpressions, data, { post_id: post_id }, params);
|
|
9512
|
+
};
|
|
9500
9513
|
return SocialPosts;
|
|
9501
9514
|
}());
|
|
9502
9515
|
|