glitch-javascript-sdk 1.8.6 → 1.8.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.
@@ -268,5 +268,12 @@ declare class Ads {
268
268
  * @returns The synced AdGroup resource
269
269
  */
270
270
  static syncGroup<T>(campaign_id: string, group_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
271
+ static listRedditAdPosts<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
272
+ /** Create a Reddit ad-style social-media post */
273
+ static createRedditAdPost<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
274
+ /** Retrieve a single Reddit ad-style social-media post */
275
+ static viewRedditAdPost<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
276
+ /** Update a Reddit ad-style social-media post */
277
+ static updateRedditAdPost<T>(post_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
271
278
  }
272
279
  export default Ads;
package/dist/esm/index.js CHANGED
@@ -6730,6 +6730,22 @@ var AdsRoute = /** @class */ (function () {
6730
6730
  url: "/ads/campaigns/{campaign_id}/groups/{group_id}/sync",
6731
6731
  method: HTTP_METHODS.POST,
6732
6732
  },
6733
+ getRedditAdPosts: {
6734
+ url: "/ads/posts/reddit",
6735
+ method: HTTP_METHODS.GET,
6736
+ },
6737
+ createRedditAdPost: {
6738
+ url: "/ads/posts/reddit",
6739
+ method: HTTP_METHODS.POST,
6740
+ },
6741
+ retrieveRedditAdPost: {
6742
+ url: "/ads/posts/reddit/{post_id}",
6743
+ method: HTTP_METHODS.GET,
6744
+ },
6745
+ updateRedditAdPost: {
6746
+ url: "/ads/posts/reddit/{post_id}",
6747
+ method: HTTP_METHODS.PUT,
6748
+ },
6733
6749
  };
6734
6750
  return AdsRoute;
6735
6751
  }());
@@ -7083,6 +7099,21 @@ var Ads = /** @class */ (function () {
7083
7099
  Ads.syncGroup = function (campaign_id, group_id, params) {
7084
7100
  return Requests.processRoute(AdsRoute.routes.syncGroup, undefined, { campaign_id: campaign_id, group_id: group_id }, params);
7085
7101
  };
7102
+ Ads.listRedditAdPosts = function (params) {
7103
+ return Requests.processRoute(AdsRoute.routes.getRedditAdPosts, undefined, undefined, params);
7104
+ };
7105
+ /** Create a Reddit ad-style social-media post */
7106
+ Ads.createRedditAdPost = function (data, params) {
7107
+ return Requests.processRoute(AdsRoute.routes.createRedditAdPost, data, {}, params);
7108
+ };
7109
+ /** Retrieve a single Reddit ad-style social-media post */
7110
+ Ads.viewRedditAdPost = function (post_id, params) {
7111
+ return Requests.processRoute(AdsRoute.routes.retrieveRedditAdPost, {}, { post_id: post_id }, params);
7112
+ };
7113
+ /** Update a Reddit ad-style social-media post */
7114
+ Ads.updateRedditAdPost = function (post_id, data, params) {
7115
+ return Requests.processRoute(AdsRoute.routes.updateRedditAdPost, data, { post_id: post_id }, params);
7116
+ };
7086
7117
  return Ads;
7087
7118
  }());
7088
7119